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