[6867] | 1 | %define SE_Src SmillaEnlarger_0.9.0_source/SmillaEnlargerSrc/ |
---|
[1487] | 2 | |
---|
[6867] | 3 | Name: smillaenlarger |
---|
| 4 | Version: 0.9.0 |
---|
[10771] | 5 | Release: 5%{?_dist_release} |
---|
[6867] | 6 | Summary: small graphical tool to resize based on Qt |
---|
| 7 | Summary(ja): Qt ベースのリサイズのための小さなグラフィカルツール |
---|
[1487] | 8 | |
---|
[6867] | 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 |
---|
[1487] | 15 | |
---|
[6867] | 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[1487] | 17 | |
---|
[6867] | 18 | BuildRequires: unzip |
---|
| 19 | BuildRequires: qt4-devel |
---|
| 20 | BuildRequires: qt4-designer |
---|
| 21 | |
---|
[1487] | 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 |
---|
[6867] | 38 | pushd %{SE_Src} |
---|
| 39 | %{_libdir}/qt4/bin/qmake ImageEnlarger.pro |
---|
[1487] | 40 | make %{?_smp_mflags} |
---|
[6867] | 41 | popd |
---|
[1487] | 42 | |
---|
| 43 | %install |
---|
[6867] | 44 | pushd %{SE_Src} |
---|
[1487] | 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 |
---|
[6867] | 51 | popd |
---|
[1487] | 52 | |
---|
| 53 | %clean |
---|
[6867] | 54 | rm -rf %{buildroot} |
---|
[1487] | 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,-) |
---|
[6867] | 64 | %doc %{SE_Src}docs/* |
---|
[1487] | 65 | %{_bindir}/SmillaEnlarger |
---|
| 66 | %{_datadir}/applications/*.desktop |
---|
| 67 | %{_datadir}/pixmaps/* |
---|
| 68 | |
---|
| 69 | %changelog |
---|
[10771] | 70 | * Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> 0.9.0-5 |
---|
| 71 | - rebuild with gcc-5.4.0 |
---|
| 72 | |
---|
[8326] | 73 | * Sun Mar 30 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9.0-4 |
---|
| 74 | - rebuilt with new toolchain |
---|
| 75 | |
---|
[6867] | 76 | * Sun Sep 30 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.0-3 |
---|
| 77 | - improved spec |
---|
| 78 | |
---|
[2720] | 79 | * Sat Feb 19 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.0-2 |
---|
| 80 | - included document files |
---|
| 81 | |
---|
[1487] | 82 | * Sun Jul 18 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.0-1 |
---|
| 83 | - initial build for VineSeed |
---|