1 | %define SE_Src SmillaEnlarger_0.9.0_source/SmillaEnlargerSrc/ |
---|
2 | |
---|
3 | Name: smillaenlarger |
---|
4 | Version: 0.9.0 |
---|
5 | Release: 5%{?_dist_release} |
---|
6 | Summary: small graphical tool to resize based on Qt |
---|
7 | Summary(ja): Qt ベースのリサイズのための小さなグラフィカルツール |
---|
8 | |
---|
9 | Group: Applications/Graphics |
---|
10 | License: GPLv3 |
---|
11 | URL: http://sourceforge.net/projects/imageenlarger/ |
---|
12 | Source0: SmillaEnlarger_%{version}_source.zip |
---|
13 | Source1: %{name}.desktop |
---|
14 | Patch0: apply_environment.patch |
---|
15 | |
---|
16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
17 | |
---|
18 | BuildRequires: unzip |
---|
19 | BuildRequires: qt4-devel |
---|
20 | BuildRequires: qt4-designer |
---|
21 | |
---|
22 | Requires: qt4%{?_isa} >= %{_qt4_version} |
---|
23 | |
---|
24 | %description |
---|
25 | SmillaEnlarger is a small graphical tool (based on Qt) to resize, |
---|
26 | especially magnify bitmaps in high quality. |
---|
27 | |
---|
28 | %description -l ja |
---|
29 | SmillaEnlarger は、リサイズのための (Qtベースの) 小さなグラフィカルツールです。 |
---|
30 | 特に、ビットマップを高品質に拡大することができます。 |
---|
31 | |
---|
32 | %prep |
---|
33 | %setup -q -c -T |
---|
34 | %{_bindir}/unzip -oq %{SOURCE0} |
---|
35 | %patch0 -p1 |
---|
36 | |
---|
37 | %build |
---|
38 | pushd %{SE_Src} |
---|
39 | %{_libdir}/qt4/bin/qmake ImageEnlarger.pro |
---|
40 | make %{?_smp_mflags} |
---|
41 | popd |
---|
42 | |
---|
43 | %install |
---|
44 | pushd %{SE_Src} |
---|
45 | %__install -dm 755 %{buildroot}%{_bindir} |
---|
46 | %__install -m 755 SmillaEnlarger %{buildroot}%{_bindir} |
---|
47 | %__install -dm 755 %{buildroot}%{_datadir}/pixmaps/ |
---|
48 | %__install -m 644 smilla.png %{buildroot}%{_datadir}/pixmaps/smilla.png |
---|
49 | %__install -dm 755 %{buildroot}%{_datadir}/applications/ |
---|
50 | %__install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop |
---|
51 | popd |
---|
52 | |
---|
53 | %clean |
---|
54 | rm -rf %{buildroot} |
---|
55 | |
---|
56 | %post |
---|
57 | update-desktop-database %{_datadir}/applications>& /dev/null ||: |
---|
58 | |
---|
59 | %postun |
---|
60 | update-desktop-database %{_datadir}/applications>& /dev/null ||: |
---|
61 | |
---|
62 | %files |
---|
63 | %defattr(-,root,root,-) |
---|
64 | %doc %{SE_Src}docs/* |
---|
65 | %{_bindir}/SmillaEnlarger |
---|
66 | %{_datadir}/applications/*.desktop |
---|
67 | %{_datadir}/pixmaps/* |
---|
68 | |
---|
69 | %changelog |
---|
70 | * Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> 0.9.0-5 |
---|
71 | - rebuild with gcc-5.4.0 |
---|
72 | |
---|
73 | * Sun Mar 30 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9.0-4 |
---|
74 | - rebuilt with new toolchain |
---|
75 | |
---|
76 | * Sun Sep 30 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.0-3 |
---|
77 | - improved spec |
---|
78 | |
---|
79 | * Sat Feb 19 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.0-2 |
---|
80 | - included document files |
---|
81 | |
---|
82 | * Sun Jul 18 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.0-1 |
---|
83 | - initial build for VineSeed |
---|