1 | Name: pdfchain |
---|
2 | Version: 0.4.4 |
---|
3 | Release: 2%{?_dist_release} |
---|
4 | Epoch: 1 |
---|
5 | Summary: A GUI for pdftk |
---|
6 | Summary(ja): pdftk のグラフィカルユーザーインターフェイス |
---|
7 | |
---|
8 | Group: Applications/Productivity |
---|
9 | License: GPLv3 |
---|
10 | URL: http://sourceforge.net/projects/pdfchain |
---|
11 | Source0: http://downloads.sourceforge.net/pdfchain/%{name}-%{version}.tar.gz |
---|
12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
13 | # Patch to make desktop file conform to standards |
---|
14 | #Patch0: pdfchain-desktop.patch |
---|
15 | |
---|
16 | BuildRequires: desktop-file-utils |
---|
17 | BuildRequires: gettext |
---|
18 | BuildRequires: glibmm-devel |
---|
19 | BuildRequires: gtkmm3-devel |
---|
20 | BuildRequires: intltool |
---|
21 | BuildRequires: perl-XML-Parser |
---|
22 | |
---|
23 | # For dir ownership |
---|
24 | Requires: hicolor-icon-theme |
---|
25 | Requires: pdftk |
---|
26 | Requires(post): desktop-file-utils |
---|
27 | Requires(postun): desktop-file-utils |
---|
28 | |
---|
29 | %description |
---|
30 | PDF Chain is a GUI for pdftk written with gtkmm. You can merge some pdf files |
---|
31 | to one pdf file or split. There are also some options and tools. |
---|
32 | |
---|
33 | %description -l ja |
---|
34 | PDF Chain は gtkmm で書かれた pdftk のグラフィカルユーザーインターフェイスです。 |
---|
35 | 複数の pdf ファイルを一つのファイルにマージしたり、分割したりすることができます。 |
---|
36 | また、幾つかのオプションとツールがあります。 |
---|
37 | |
---|
38 | %prep |
---|
39 | %setup -q |
---|
40 | #%patch0 -p1 |
---|
41 | #%patch1 -p1 |
---|
42 | #%patch2 -p1 |
---|
43 | # Stop if files acquire content |
---|
44 | #[ -s NEWS ] && exit 1 |
---|
45 | #[ -s README ] && exit 1 |
---|
46 | |
---|
47 | %build |
---|
48 | %configure |
---|
49 | make %{?_smp_mflags} |
---|
50 | |
---|
51 | %install |
---|
52 | rm -rf %{buildroot} |
---|
53 | make install DESTDIR=%{buildroot} |
---|
54 | # Remove doc dir |
---|
55 | rm -rf %{buildroot}%{_prefix}/doc/pdfchain |
---|
56 | # Validate desktop file |
---|
57 | desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop |
---|
58 | |
---|
59 | %post |
---|
60 | # Update mime types |
---|
61 | update-desktop-database &> /dev/null || : |
---|
62 | # Update icon cache |
---|
63 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : |
---|
64 | |
---|
65 | %postun |
---|
66 | # Update mime types |
---|
67 | update-desktop-database &> /dev/null || : |
---|
68 | |
---|
69 | # Update icon cache |
---|
70 | if [ $1 -eq 0 ] ; then |
---|
71 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null |
---|
72 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
73 | fi |
---|
74 | |
---|
75 | %posttrans |
---|
76 | # Update icon cache |
---|
77 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
78 | |
---|
79 | %clean |
---|
80 | rm -rf %{buildroot} |
---|
81 | |
---|
82 | %files |
---|
83 | %defattr(-,root,root,-) |
---|
84 | %doc %{_datadir}/doc/%{name}/* |
---|
85 | %{_bindir}/%{name} |
---|
86 | %{_datadir}/applications/%{name}.desktop |
---|
87 | %{_datadir}/icons/hicolor/*/apps/%{name}.png |
---|
88 | %{_datadir}/pixmaps/%{name}.png |
---|
89 | |
---|
90 | %changelog |
---|
91 | * Sun May 04 2014 Toshiahru Kudoh <toshi.kd2@gmail.com> - 0.4.4-2 |
---|
92 | - rebuilt with new toolchain |
---|
93 | |
---|
94 | * Sat Jul 20 2013 Toshiahru Kudoh <toshi.kd2@gmail.com> - 0.4.4-1 |
---|
95 | - new upstream release |
---|
96 | |
---|
97 | * Sun May 05 2013 Toshiahru Kudoh <toshi.kd2@gmail.com> - 0.4.0-1 |
---|
98 | - new upstream release |
---|
99 | - deleted Patch0 |
---|
100 | |
---|
101 | * Sat Dec 03 2011 Toshiahru Kudoh <toshi.kd2@gmail.com> - 0.3.3-1 |
---|
102 | - new upstream release |
---|
103 | - added Epoch:1 |
---|
104 | - dropt patch1,2 |
---|
105 | - changed BuildRequires: gtkmm2-devel to gtkmm3-devel |
---|
106 | |
---|
107 | * Sat Sep 18 2010 Toshiahru Kudoh <toshi.kd2@gmail.com> - 0.123-1 |
---|
108 | - initial build for VineSeed |
---|
109 | |
---|
110 | * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.123-2 |
---|
111 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
112 | |
---|
113 | * Thu Jul 16 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.123-1 |
---|
114 | - Update to 0.123. |
---|
115 | |
---|
116 | * Wed May 27 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.99-3 |
---|
117 | - Added missing BR: desktop-file-utils. |
---|
118 | - Set license as GPLv3 for now. |
---|
119 | |
---|
120 | * Wed May 27 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.99-2 |
---|
121 | - Clean up spec file for inclusion into Fedora. |
---|
122 | |
---|
123 | * Wed May 6 2009 Leigh Scott <leigh123linux@googlemail.com> - 0.99-1 |
---|
124 | - Initial build |
---|