[1741] | 1 | Name: podofo |
---|
[5900] | 2 | Version: 0.9.1 |
---|
[8950] | 3 | Release: 2%{?_dist_release} |
---|
[1741] | 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 |
---|
[5900] | 10 | Patch0: %{name}-0.9.1-unistd.patch |
---|
[8950] | 11 | Patch1: %{name}-0.9.1-freetype.patch |
---|
[1741] | 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 13 | |
---|
| 14 | BuildRequires: cmake |
---|
| 15 | BuildRequires: zlib-devel |
---|
[8950] | 16 | BuildRequires: libjpeg-turbo-devel |
---|
[1741] | 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 |
---|
[5900] | 61 | %patch0 -p1 -b .unistd |
---|
[8950] | 62 | %patch1 -p1 -b .freetype |
---|
[1741] | 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}* |
---|
[5900] | 97 | %{_mandir}/man1/%{name}*.1* |
---|
[1741] | 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 |
---|
[8950] | 112 | * Sat Sep 13 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9.1-2 |
---|
| 113 | - rebuilt with libpng-1.6.12 |
---|
| 114 | - changed BuildRequires: libjpeg-devel to libjpeg-turbo-devel |
---|
| 115 | - added Patch1 from Fedora rawhide |
---|
| 116 | |
---|
[5900] | 117 | * Sun Mar 11 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.1-1 |
---|
| 118 | - updated to 0.9.1 |
---|
| 119 | |
---|
[1741] | 120 | * Tue Aug 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.8.1-1 |
---|
| 121 | - initial build based on Fedora development |
---|
| 122 | |
---|
| 123 | * Tue Jun 8 2010 Dan Horák <dan[at]danny.cz> 0.8.1-2 |
---|
| 124 | - fix building tests |
---|
| 125 | |
---|
| 126 | * Mon Jun 7 2010 Dan Horák <dan[at]danny.cz> 0.8.1-1 |
---|
| 127 | - updated to 0.8.1 |
---|
| 128 | |
---|
| 129 | * Thu Apr 29 2010 Dan Horák <dan[at]danny.cz> 0.8.0-1 |
---|
| 130 | - updated to 0.8.0 |
---|
| 131 | |
---|
| 132 | * Tue Feb 16 2010 Dan Horák <dan[at]danny.cz> 0.7.0-4 |
---|
| 133 | - set timestamp on generated docs (#565683) |
---|
| 134 | |
---|
| 135 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-3 |
---|
| 136 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 137 | |
---|
| 138 | * Thu Apr 30 2009 Dan Horák <dan[at]danny.cz> 0.7.0-2 |
---|
| 139 | - remove BR: openssl-devel, it could be required in the future (but then |
---|
| 140 | an exception clause will be added to the licenses) |
---|
| 141 | - add missing doc files |
---|
| 142 | |
---|
| 143 | * Sun Mar 29 2009 Dan Horák <dan[at]danny.cz> 0.7.0-1 |
---|
| 144 | - initial Fedora package |
---|