moonshiner-vl.spec 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. Name: moonshiner
  2. Version: 1.1
  3. Release: 2.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. * Mon Jan 13 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.1-2.svn20120315
  55. - rebuilt with current toolchain
  56. * Tue Jul 03 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.1-1.svn20120315
  57. - new usprtream snapshot
  58. - added BuildRequires: gettext
  59. - used %%{python_sitelib} in %%files
  60. * Thu Feb 02 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-5
  61. - added BuildRequires: python-devel
  62. * Fri Feb 5 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-4
  63. - rebuilt with python-2.6.4
  64. - run gtk-update-icon-cache in %post, postun
  65. - fixed icon path in source1
  66. * Sat Nov 28 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-3
  67. - fixed html helpfile include again
  68. - probed install process
  69. - dropt Patch1
  70. * Sat Aug 1 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-2
  71. - fixed html helpfile include
  72. - added Patch1 (don't require root for build)
  73. * Thu Jun 25 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-1
  74. - initial build for VineSeed