podofo-vl.spec 3.9 KB

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