moonshiner-vl.spec 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. Name: moonshiner
  2. Version: 1.0
  3. Release: 5%{?_dist_release}
  4. Summary: graphical frontend for Ghostscript's PostScript-to-PDF converter
  5. Summary(ja): Ghostscript を使い Postscript から PDF へ変換するためのグラフィカルフロントエンド
  6. Group: Applications/Publishing
  7. License: GPLv3+
  8. URL: http://moonshiner.sourceforge.net/
  9. Source0: %{name}-%{version}.tar.gz
  10. Source1: %{name}.desktop
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildArch: noarch
  13. Requires: python >= 2.5
  14. Requires: pygtk2 >= 2.10
  15. Requires: ghostscript >= 8.60
  16. BuildRequires: desktop-file-utils
  17. BuildRequires: python-devel
  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. * Thu Feb 02 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-5
  52. - added BuildRequires: python-devel
  53. * Fri Feb 5 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-4
  54. - rebuilt with python-2.6.4
  55. - run gtk-update-icon-cache in %post, postun
  56. - fixed icon path in source1
  57. * Sat Nov 28 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-3
  58. - fixed html helpfile include again
  59. - probed install process
  60. - dropt Patch1
  61. * Sat Aug 1 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-2
  62. - fixed html helpfile include
  63. - added Patch1 (don't require root for build)
  64. * Thu Jun 25 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-1
  65. - initial build for VineSeed