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