1 | Summary: PDF document editor |
---|
2 | Summary(ja): PDF ドキュメントエディタ |
---|
3 | |
---|
4 | Name: pdfedit |
---|
5 | Version: 0.4.3 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | |
---|
8 | Group: Applications/Publishing |
---|
9 | License: GPLv2 |
---|
10 | URL: http://sourceforge.net/projects/pdfedit/ |
---|
11 | Source0: http://downloads.sourceforge.net/pdfedit/%{name}-%{version}.tar.bz2 |
---|
12 | Source1: pdfedit.desktop |
---|
13 | Patch0: pdfedit-destdir.patch |
---|
14 | Patch1: pdfedit-fix-includes.patch |
---|
15 | |
---|
16 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
17 | BuildRequires: libboost-devel, openMotif-devel, libpaper-devel |
---|
18 | BuildRequires: libXpm-devel, t1lib-devel |
---|
19 | BuildRequires: desktop-file-utils, doxygen |
---|
20 | BuildRequires: qt-devel |
---|
21 | |
---|
22 | Distribution: Vine Linux |
---|
23 | Vendor: Project Vine |
---|
24 | Packager: daisuke |
---|
25 | |
---|
26 | %description |
---|
27 | Free pdf editing using PdfEdit. Complete editing of pdf documents is made |
---|
28 | possible with PDFedit. You can change either raw pdf objects (for advanced |
---|
29 | users) or use predefined gui functions. Functions can be easily added as |
---|
30 | everything is based on a script. |
---|
31 | |
---|
32 | %description -l ja |
---|
33 | pdfedit はフリーなPDF編集ツールです。生のPDFオブジェクトを編集することや |
---|
34 | あらかじめ定義されたGUI機能を使うこともできます。 |
---|
35 | |
---|
36 | %prep |
---|
37 | %setup -q |
---|
38 | |
---|
39 | %patch0 -p1 -b .destdir |
---|
40 | %patch1 -p1 -b .fix-includes |
---|
41 | |
---|
42 | # fix paths to be relative to rpm build root |
---|
43 | sed -i 's/\(.path\s\+= \)/\1$(QMAKE_DESTDIR)\//' src/gui/pdfedit.pro |
---|
44 | |
---|
45 | %build |
---|
46 | export QMAKESPEC=linux-g++ |
---|
47 | # currently boost-iostreams causes an error when running configure |
---|
48 | %configure --without-boost-iostreams |
---|
49 | make %{?_smp_mflags} |
---|
50 | |
---|
51 | |
---|
52 | %install |
---|
53 | rm -rf $RPM_BUILD_ROOT |
---|
54 | # DESTDIR is reserved in qmake |
---|
55 | make install QMAKE_DESTDIR=$RPM_BUILD_ROOT |
---|
56 | |
---|
57 | # use rpm standard /usr/share/doc/%{name}-%{version} directory for doc files |
---|
58 | mv $RPM_BUILD_ROOT/usr/share/doc/pdfedit \ |
---|
59 | $RPM_BUILD_ROOT/usr/share/doc/pdfedit-%{version} |
---|
60 | |
---|
61 | # install desktop file |
---|
62 | desktop-file-install --vendor="fedora" \ |
---|
63 | --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ |
---|
64 | %{SOURCE1} |
---|
65 | |
---|
66 | # install icons |
---|
67 | install -d \ |
---|
68 | $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/{16x16,32x32,48x48,64x64}/apps |
---|
69 | install -p -m 0644 src/gui/icon/pdfedit_icon_16.png \ |
---|
70 | $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/16x16/apps/pdfedit.png |
---|
71 | install -p -m 0644 src/gui/icon/pdfedit_icon_32.png \ |
---|
72 | $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/32x32/apps/pdfedit.png |
---|
73 | install -p -m 0644 src/gui/icon/pdfedit_icon_48.png \ |
---|
74 | $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/pdfedit.png |
---|
75 | install -p -m 0644 src/gui/icon/pdfedit_icon_64.png \ |
---|
76 | $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/64x64/apps/pdfedit.png |
---|
77 | |
---|
78 | |
---|
79 | %clean |
---|
80 | rm -rf $RPM_BUILD_ROOT |
---|
81 | |
---|
82 | %post |
---|
83 | update-desktop-database &> /dev/null ||: |
---|
84 | touch --no-create %{_datadir}/icons/hicolor || : |
---|
85 | if [ -x %{_bindir}/gtk-update-icon-cache ]; then |
---|
86 | %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
---|
87 | fi |
---|
88 | |
---|
89 | %postun |
---|
90 | update-desktop-database &> /dev/null ||: |
---|
91 | touch --no-create %{_datadir}/icons/hicolor || : |
---|
92 | if [ -x %{_bindir}/gtk-update-icon-cache ]; then |
---|
93 | %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
---|
94 | fi |
---|
95 | |
---|
96 | |
---|
97 | %files |
---|
98 | %defattr(-,root,root,-) |
---|
99 | %{_bindir}/* |
---|
100 | %{_mandir}/man1/* |
---|
101 | %{_datadir}/%{name} |
---|
102 | %{_datadir}/applications/*desktop |
---|
103 | %{_datadir}/icons/hicolor/*/apps/pdfedit.png |
---|
104 | %{_docdir} |
---|
105 | |
---|
106 | %changelog |
---|
107 | * Mon Aug 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.3-1 |
---|
108 | - new upstream release |
---|
109 | - update BR: |
---|
110 | - add %%post/%%postun scripts |
---|
111 | - import patches from fedora |
---|
112 | |
---|
113 | * Wed Feb 21 2007 Susumu Tanimura <stanimura-ngs@umin.ac.jp> |
---|
114 | - Initial package for VineLinux 4.0 |
---|
115 | |
---|