source: projects/specs/branches/6/m/moonshiner/moonshiner-vl.spec @ 5558

Revision 5558, 2.3 KB checked in by kudoh, 12 years ago (diff)
Line 
1Name:           moonshiner
2Version:        1.0
3Release:        5%{?_dist_release}
4Summary:        graphical frontend for Ghostscript's PostScript-to-PDF converter
5Summary(ja):    Ghostscript を使い Postscript から PDF へ変換するためのグラフィカルフロントエンド
6
7Group:          Applications/Publishing
8License:        GPLv3+
9URL:            http://moonshiner.sourceforge.net/
10Source0:        %{name}-%{version}.tar.gz
11Source1:        %{name}.desktop
12BuildRoot:      %{_tmppath}/%{name}-%{version}-root
13BuildArch:      noarch
14
15Requires:       python >= 2.5
16Requires:       pygtk2 >= 2.10
17Requires:       ghostscript >= 8.60
18
19BuildRequires:  desktop-file-utils
20BuildRequires:  python-devel
21
22%description
23Moonshiner is a graphical frontend (GUI) for Ghostscript's
24PostScript-to-PDF converter.
25
26%description -l ja
27Moonshiner は Ghostscript を使い Postscript から PDF へ変換するための
28グラフィカルフロントエンドです。
29
30%prep
31%setup -q
32
33%build
34python setup.py build
35
36%install
37rm -rf %{buildroot}
38python setup.py install --skip-build --root %{buildroot}
39
40desktop-file-install \
41        --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1}
42
43%clean
44rm -rf $RPM_BUILD_ROOT
45
46%post
47touch --no-create %{_datadir}/icons/hicolor || :
48%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
49update-desktop-database %{_datadir}/applications
50
51%postun
52touch --no-create %{_datadir}/icons/hicolor || :
53%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
54update-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
65* Thu Feb 02 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-5
66- added BuildRequires: python-devel
67
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
Note: See TracBrowser for help on using the repository browser.