moonshiner-vl.spec 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. Name: moonshiner
  2. Version: 1.1
  3. Release: 1.svn20120315%{?_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}svn.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: gettext
  17. BuildRequires: desktop-file-utils
  18. BuildRequires: python-devel
  19. %description
  20. Moonshiner is a graphical frontend (GUI) for Ghostscript's
  21. PostScript-to-PDF converter.
  22. %description -l ja
  23. Moonshiner は Ghostscript を使い Postscript から PDF へ変換するための
  24. グラフィカルフロントエンドです。
  25. %prep
  26. %setup -qn %{name}-%{version}svn
  27. %build
  28. python setup.py build
  29. %install
  30. rm -rf %{buildroot}
  31. python setup.py install --skip-build --root %{buildroot}
  32. desktop-file-install \
  33. --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1}
  34. %find_lang %{name}
  35. %clean
  36. rm -rf $RPM_BUILD_ROOT
  37. %post
  38. touch --no-create %{_datadir}/icons/hicolor || :
  39. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  40. update-desktop-database %{_datadir}/applications
  41. %postun
  42. touch --no-create %{_datadir}/icons/hicolor || :
  43. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  44. update-desktop-database %{_datadir}/applications
  45. %files -f %{name}.lang
  46. %defattr(-,root,root,-)
  47. %doc LICENSE CHANGES README PKG-INFO
  48. %doc %{_docdir}/%{name}/*
  49. %{_bindir}/%{name}
  50. %{python_sitelib}/*
  51. %{_datadir}/applications/*.desktop
  52. %{_datadir}/icons/hicolor/
  53. %changelog
  54. * Tue Jul 03 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.1-1.svn20120315
  55. - new usprtream snapshot
  56. - added BuildRequires: gettext
  57. - used %%{python_sitelib} in %%files
  58. * Thu Feb 02 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-5
  59. - added BuildRequires: python-devel
  60. * Fri Feb 5 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-4
  61. - rebuilt with python-2.6.4
  62. - run gtk-update-icon-cache in %post, postun
  63. - fixed icon path in source1
  64. * Sat Nov 28 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-3
  65. - fixed html helpfile include again
  66. - probed install process
  67. - dropt Patch1
  68. * Sat Aug 1 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-2
  69. - fixed html helpfile include
  70. - added Patch1 (don't require root for build)
  71. * Thu Jun 25 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-1
  72. - initial build for VineSeed