smillaenlarger-vl.spec 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. %define SE_Src SmillaEnlarger_0.9.0_source/SmillaEnlargerSrc/
  2. Name: smillaenlarger
  3. Version: 0.9.0
  4. Release: 3%{?_dist_release}
  5. Summary: small graphical tool to resize based on Qt
  6. Summary(ja): Qt ベースのリサイズのための小さなグラフィカルツール
  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. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: unzip
  15. BuildRequires: qt4-devel
  16. BuildRequires: qt4-designer
  17. Requires: qt4%{?_isa} >= %{_qt4_version}
  18. %description
  19. SmillaEnlarger is a small graphical tool (based on Qt) to resize,
  20. especially magnify bitmaps in high quality.
  21. %description -l ja
  22. SmillaEnlarger は、リサイズのための (Qtベースの) 小さなグラフィカルツールです。
  23. 特に、ビットマップを高品質に拡大することができます。
  24. %prep
  25. %setup -q -c -T
  26. %{_bindir}/unzip -oq %{SOURCE0}
  27. %patch0 -p1
  28. %build
  29. pushd %{SE_Src}
  30. %{_libdir}/qt4/bin/qmake ImageEnlarger.pro
  31. make %{?_smp_mflags}
  32. popd
  33. %install
  34. pushd %{SE_Src}
  35. %__install -dm 755 %{buildroot}%{_bindir}
  36. %__install -m 755 SmillaEnlarger %{buildroot}%{_bindir}
  37. %__install -dm 755 %{buildroot}%{_datadir}/pixmaps/
  38. %__install -m 644 smilla.png %{buildroot}%{_datadir}/pixmaps/smilla.png
  39. %__install -dm 755 %{buildroot}%{_datadir}/applications/
  40. %__install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
  41. popd
  42. %clean
  43. rm -rf %{buildroot}
  44. %post
  45. update-desktop-database %{_datadir}/applications>& /dev/null ||:
  46. %postun
  47. update-desktop-database %{_datadir}/applications>& /dev/null ||:
  48. %files
  49. %defattr(-,root,root,-)
  50. %doc %{SE_Src}docs/*
  51. %{_bindir}/SmillaEnlarger
  52. %{_datadir}/applications/*.desktop
  53. %{_datadir}/pixmaps/*
  54. %changelog
  55. * Sun Sep 30 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.0-3
  56. - improved spec
  57. * Sat Feb 19 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.0-2
  58. - included document files
  59. * Sun Jul 18 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.0-1
  60. - initial build for VineSeed