moonshiner-vl.spec 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. %define _installdir $RPM_BUILD_ROOT/usr
  2. Name: moonshiner
  3. Version: 1.0
  4. Release: 4%{?_dist_release}
  5. Summary: graphical frontend for Ghostscript's PostScript-to-PDF converter
  6. Summary(ja): Ghostscript を使い Postscript から PDF へ変換するためのグラフィカルフロントエンド
  7. Group: Applications/Publishing
  8. License: GPLv3+
  9. URL: http://moonshiner.sourceforge.net/
  10. Source0: %{name}-%{version}.tar.gz
  11. Source1: %{name}.desktop
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildArch: noarch
  14. Requires: python >= 2.5
  15. Requires: pygtk2 >= 2.10
  16. Requires: ghostscript >= 8.60
  17. BuildRequires: desktop-file-utils
  18. %description
  19. Moonshiner is a graphical frontend (GUI) for Ghostscript's
  20. PostScript-to-PDF converter.
  21. %description -l ja
  22. Moonshiner は Ghostscript を使い Postscript から PDF へ変換するための
  23. グラフィカルフロントエンドです。
  24. %prep
  25. %setup -q
  26. %build
  27. python setup.py build
  28. %install
  29. rm -rf %{buildroot}
  30. python setup.py install --skip-build --root %{buildroot}
  31. desktop-file-install \
  32. --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1}
  33. %clean
  34. rm -rf $RPM_BUILD_ROOT
  35. %post
  36. touch --no-create %{_datadir}/icons/hicolor || :
  37. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  38. update-desktop-database %{_datadir}/applications
  39. %postun
  40. touch --no-create %{_datadir}/icons/hicolor || :
  41. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  42. update-desktop-database %{_datadir}/applications
  43. %files
  44. %defattr(-,root,root,-)
  45. %doc LICENSE CHANGES README PKG-INFO
  46. %doc %{_docdir}/%{name}/*
  47. %{_bindir}/%{name}
  48. %{_libdir}/python2.*/site-packages/*
  49. %{_datadir}/applications/*.desktop
  50. %changelog
  51. * Fri Feb 5 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-4
  52. - rebuilt with python-2.6.4
  53. - run gtk-update-icon-cache in %post, postun
  54. - fixed icon path in source1
  55. * Sat Nov 28 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-3
  56. - fixed html helpfile include again
  57. - probed install process
  58. - dropt Patch1
  59. * Sat Aug 1 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-2
  60. - fixed html helpfile include
  61. - added Patch1 (don't require root for build)
  62. * Thu Jun 25 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-1
  63. - initial build for VineSeed