smillaenlarger-vl.spec 2.0 KB

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