1 | Name: podofo |
---|
2 | Version: 0.9.1 |
---|
3 | Release: 3%{?_dist_release} |
---|
4 | Summary: Tools and libraries to work with the PDF file format |
---|
5 | |
---|
6 | Group: Applications/Publishing |
---|
7 | License: GPLv2+ |
---|
8 | URL: http://podofo.sourceforge.net |
---|
9 | Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz |
---|
10 | Patch0: %{name}-0.9.1-unistd.patch |
---|
11 | Patch1: %{name}-0.9.1-freetype.patch |
---|
12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
13 | |
---|
14 | BuildRequires: cmake |
---|
15 | BuildRequires: zlib-devel |
---|
16 | BuildRequires: libjpeg-turbo-devel |
---|
17 | BuildRequires: libtiff-devel |
---|
18 | BuildRequires: libpng-devel |
---|
19 | BuildRequires: freetype2-devel |
---|
20 | BuildRequires: fontconfig-devel |
---|
21 | BuildRequires: cppunit-devel |
---|
22 | BuildRequires: lua-devel |
---|
23 | BuildRequires: doxygen |
---|
24 | |
---|
25 | |
---|
26 | %description |
---|
27 | PoDoFo is a library to work with the PDF file format. The name comes from |
---|
28 | the first letter of PDF (Portable Document Format). A few tools to work |
---|
29 | with PDF files are already included in the PoDoFo package. |
---|
30 | |
---|
31 | The PoDoFo library is a free, portable C++ library which includes classes |
---|
32 | to parse PDF files and modify their contents into memory. The changes can be |
---|
33 | written back to disk easily. The parser can also be used to extract |
---|
34 | information from a PDF file (for example the parser could be used in a PDF |
---|
35 | viewer). Besides parsing PoDoFo includes also very simple classes to create |
---|
36 | your own PDF files. All classes are documented so it is easy to start writing |
---|
37 | your own application using PoDoFo. |
---|
38 | |
---|
39 | |
---|
40 | %package libs |
---|
41 | Summary: Runtime library for %{name} |
---|
42 | Group: System Environment/Libraries |
---|
43 | License: LGPLv2+ |
---|
44 | |
---|
45 | %description libs |
---|
46 | Runtime library for %{name}. |
---|
47 | |
---|
48 | |
---|
49 | %package devel |
---|
50 | Summary: Development files for %{name} library |
---|
51 | Group: Development/Libraries |
---|
52 | License: LGPLv2+ |
---|
53 | Requires: %{name}-libs = %{version}-%{release} |
---|
54 | |
---|
55 | %description devel |
---|
56 | Development files and documentation for the %{name} library. |
---|
57 | |
---|
58 | |
---|
59 | %prep |
---|
60 | %setup -q |
---|
61 | %patch0 -p1 -b .unistd |
---|
62 | %patch1 -p1 -b .freetype |
---|
63 | |
---|
64 | |
---|
65 | %build |
---|
66 | %cmake -DPODOFO_BUILD_SHARED=1 \ |
---|
67 | %ifarch x86_64 ppc64 s390x sparc64 |
---|
68 | -DWANT_LIB64=1 \ |
---|
69 | %endif |
---|
70 | . |
---|
71 | %__make %{?_smp_mflags} |
---|
72 | |
---|
73 | # build the docs |
---|
74 | doxygen |
---|
75 | |
---|
76 | # set timestamps on generated files to some constant |
---|
77 | find doc/html -exec touch -r %{SOURCE0} {} \; |
---|
78 | |
---|
79 | |
---|
80 | %install |
---|
81 | %__rm -rf $RPM_BUILD_ROOT |
---|
82 | %__make install DESTDIR=$RPM_BUILD_ROOT |
---|
83 | |
---|
84 | |
---|
85 | %clean |
---|
86 | %__rm -rf $RPM_BUILD_ROOT |
---|
87 | |
---|
88 | %post libs -p /sbin/ldconfig |
---|
89 | |
---|
90 | %postun libs -p /sbin/ldconfig |
---|
91 | |
---|
92 | |
---|
93 | %files |
---|
94 | %defattr(-,root,root,-) |
---|
95 | %doc COPYING |
---|
96 | %{_bindir}/%{name}* |
---|
97 | %{_mandir}/man1/%{name}*.1* |
---|
98 | |
---|
99 | %files libs |
---|
100 | %defattr(-,root,root,-) |
---|
101 | %doc AUTHORS COPYING.LIB ChangeLog FAQ.html README.html TODO |
---|
102 | %{_libdir}/*.so.* |
---|
103 | |
---|
104 | %files devel |
---|
105 | %defattr(-,root,root,-) |
---|
106 | %doc doc/html |
---|
107 | %{_includedir}/%{name} |
---|
108 | %{_libdir}/*.so |
---|
109 | |
---|
110 | |
---|
111 | %changelog |
---|
112 | * Sat Jul 02 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.1-3 |
---|
113 | - rebuild with gcc-5.4.0 |
---|
114 | |
---|
115 | * Sat Sep 13 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9.1-2 |
---|
116 | - rebuilt with libpng-1.6.12 |
---|
117 | - changed BuildRequires: libjpeg-devel to libjpeg-turbo-devel |
---|
118 | - added Patch1 from Fedora rawhide |
---|
119 | |
---|
120 | * Sun Mar 11 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.1-1 |
---|
121 | - updated to 0.9.1 |
---|
122 | |
---|
123 | * Tue Aug 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.8.1-1 |
---|
124 | - initial build based on Fedora development |
---|
125 | |
---|
126 | * Tue Jun 8 2010 Dan Horák <dan[at]danny.cz> 0.8.1-2 |
---|
127 | - fix building tests |
---|
128 | |
---|
129 | * Mon Jun 7 2010 Dan Horák <dan[at]danny.cz> 0.8.1-1 |
---|
130 | - updated to 0.8.1 |
---|
131 | |
---|
132 | * Thu Apr 29 2010 Dan Horák <dan[at]danny.cz> 0.8.0-1 |
---|
133 | - updated to 0.8.0 |
---|
134 | |
---|
135 | * Tue Feb 16 2010 Dan Horák <dan[at]danny.cz> 0.7.0-4 |
---|
136 | - set timestamp on generated docs (#565683) |
---|
137 | |
---|
138 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-3 |
---|
139 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
140 | |
---|
141 | * Thu Apr 30 2009 Dan Horák <dan[at]danny.cz> 0.7.0-2 |
---|
142 | - remove BR: openssl-devel, it could be required in the future (but then |
---|
143 | an exception clause will be added to the licenses) |
---|
144 | - add missing doc files |
---|
145 | |
---|
146 | * Sun Mar 29 2009 Dan Horák <dan[at]danny.cz> 0.7.0-1 |
---|
147 | - initial Fedora package |
---|