source: projects/specs/branches/6/p/pdfchain/pdfchain-vl.spec @ 5841

Revision 5841, 3.2 KB checked in by kudoh, 12 years ago (diff)
Line 
1Name:           pdfchain
2Version:        0.123
3Release:        2%{?_dist_release}
4Summary:        A GUI for pdftk
5Summary(ja):    pdftk のグラフィカルユーザーインターフェイス
6
7Group:          Applications/Productivity
8License:        GPLv3
9URL:            http://sourceforge.net/projects/pdfchain
10Source0:        http://downloads.sourceforge.net/pdfchain/%{name}-%{version}.tar.gz
11BuildRoot:      %{_tmppath}/%{name}-%{version}-root
12# Patch to make desktop file conform to standards
13Patch0:         pdfchain-desktop.patch
14# Pacth from Debian
15Patch1:         fix_build_system
16Patch2:         do_not_restrict_to_ascii
17
18BuildRequires:  desktop-file-utils
19BuildRequires:  gettext
20BuildRequires:  glibmm-devel
21BuildRequires:  gtkmm2-devel
22BuildRequires:  intltool
23BuildRequires:  perl-XML-Parser
24
25# For dir ownership
26Requires:               hicolor-icon-theme
27Requires:               pdftk
28Requires(post):         desktop-file-utils
29Requires(postun):       desktop-file-utils
30
31%description
32PDF Chain is a GUI for pdftk written with gtkmm. You can merge some pdf files
33to one pdf file or split. There are also some options and tools.
34
35%description -l ja
36PDF 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
51make %{?_smp_mflags}
52
53%install
54rm -rf %{buildroot}
55make install DESTDIR=%{buildroot}
56# Remove doc dir
57rm -rf %{buildroot}%{_prefix}/doc/pdfchain
58# Validate desktop file
59desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
60
61%post
62# Update mime types
63update-desktop-database &> /dev/null || :
64# Update icon cache
65touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
66
67%postun
68# Update mime types
69update-desktop-database &> /dev/null || :
70
71# Update icon cache
72if [ $1 -eq 0 ] ; then
73        touch --no-create %{_datadir}/icons/hicolor &>/dev/null
74        gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
75fi
76
77%posttrans
78# Update icon cache
79gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
80
81%clean
82rm -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
93* Sun Mar 04 2012 Toshiahru Kudoh <toshi.kd2@gmail.com> - 0.123-2
94- rebuilt with Vine6 environment
95
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
Note: See TracBrowser for help on using the repository browser.