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