podofo-vl.spec 3.4 KB

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