qpdf-vl.spec 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. Summary: Command-line tools and library for transforming PDF files
  2. Name: qpdf
  3. Version: 8.1.0
  4. Release: 1%{?_dist_release}
  5. # MIT: e.g. libqpdf/sha2.c
  6. # upstream uses ASL 2.0 now, but he allowed other to distribute qpdf under
  7. # old license (see README)
  8. License: Artistic 2.0
  9. Group: System Environment/Base
  10. URL: http://qpdf.sourceforge.net/
  11. Source0: http://downloads.sourceforge.net/sourceforge/qpdf/qpdf-%{version}.tar.gz
  12. Patch0: qpdf-doc.patch
  13. BuildRequires: zlib-devel
  14. BuildRequires: pcre-devel
  15. BuildRequires: libjpeg-turbo-devel libtiff-devel
  16. # for fix-qdf and test suite
  17. BuildRequires: perl
  18. BuildRequires: perl(Digest::MD5)
  19. # # for autoreconf
  20. # BuildRequires: autoconf
  21. # BuildRequires: automake
  22. # BuildRequires: libtool
  23. Requires: qpdf-libs%{?_isa} = %{version}-%{release}
  24. Vendor: Project Vine
  25. Distribution: Vine Linux
  26. Packager: tomop, ara_t
  27. %package libs
  28. Summary: QPDF library for transforming PDF files
  29. Group: System Environment/Libraries
  30. %package devel
  31. Summary: Development files for QPDF library
  32. Group: Development/Libraries
  33. Requires: qpdf-libs%{?_isa} = %{version}-%{release}
  34. %package doc
  35. Summary: QPDF Manual
  36. Group: Documentation
  37. BuildArch: noarch
  38. Requires: qpdf-libs = %{version}-%{release}
  39. %description
  40. QPDF is a command-line program that does structural, content-preserving
  41. transformations on PDF files. It could have been called something
  42. like pdf-to-pdf. It includes support for merging and splitting PDFs
  43. and to manipulate the list of pages in a PDF file. It is not a PDF viewer
  44. or a program capable of converting PDF into other formats.
  45. %description libs
  46. QPDF is a C++ library that inspect and manipulate the structure of PDF files.
  47. It can encrypt and linearize files, expose the internals of a PDF file,
  48. and do many other operations useful to PDF developers.
  49. %description devel
  50. Header files and libraries necessary
  51. for developing programs using the QPDF library.
  52. %description doc
  53. QPDF Manual
  54. %prep
  55. %setup -q
  56. # fix 'complete manual location' note in man pages
  57. %patch0 -p1 -b .doc
  58. sed -i -e '1s,^#!/usr/bin/env perl,#!/usr/bin/perl,' qpdf/fix-qdf
  59. %build
  60. # work-around check-rpaths errors
  61. # autoreconf --verbose --force --install
  62. %configure --disable-static \
  63. --enable-show-failed-test-output
  64. make %{?_smp_mflags}
  65. %install
  66. make install DESTDIR=%{buildroot}
  67. # https://fedoraproject.org/wiki/Packaging_tricks#With_.25doc
  68. mkdir __doc
  69. mv %{buildroot}%{_datadir}/doc/qpdf/* __doc
  70. rm -rf %{buildroot}%{_datadir}/doc/qpdf
  71. rm -f %{buildroot}%{_libdir}/libqpdf.la
  72. %check
  73. make check
  74. %post libs -p /sbin/ldconfig
  75. %postun libs -p /sbin/ldconfig
  76. %files
  77. %{_bindir}/fix-qdf
  78. %{_bindir}/qpdf
  79. %{_bindir}/zlib-flate
  80. %{_mandir}/man1/*
  81. %files libs
  82. %doc README.md NOTICE.md TODO ChangeLog Artistic-2.0 LICENSE.txt
  83. %{_libdir}/libqpdf*.so.*
  84. %files devel
  85. %doc examples/*.cc examples/*.c
  86. %{_includedir}/*
  87. %{_libdir}/libqpdf*.so
  88. %{_libdir}/pkgconfig/libqpdf.pc
  89. %files doc
  90. %doc __doc/*
  91. %changelog
  92. * Tue Sep 04 2018 Toshiaki Ara <ara_t@384.jp> - 8.1.0-1
  93. - update to 8.1.0
  94. * Tue Jan 30 2018 Toshiaki Ara <ara_t@384.jp> - 7.1.0-1
  95. - new upstream release.
  96. - add BuildRequires: libjpeg-turbo-devel libtiff-devel
  97. - drop BuildRequires: autoconf automake libtool
  98. * Wed Jun 29 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 6.0.0-1
  99. - new upstream release.
  100. * Sat Jan 04 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.1.0-2
  101. - initial build for Vine Linux.
  102. * Wed Dec 18 2013 Jiri Popelka <jpopelka@redhat.com> - 5.1.0-1
  103. - 5.1.0
  104. * Mon Oct 21 2013 Jiri Popelka <jpopelka@redhat.com> - 5.0.1-1
  105. - 5.0.1
  106. * Sat Aug 03 2013 Petr Pisar <ppisar@redhat.com> - 5.0.0-4
  107. - Perl 5.18 rebuild
  108. * Mon Jul 22 2013 Jiri Popelka <jpopelka@redhat.com> - 5.0.0-3
  109. - change shebang to absolute path (#987040)
  110. * Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 5.0.0-2
  111. - Perl 5.18 rebuild
  112. * Thu Jul 11 2013 Jiri Popelka <jpopelka@redhat.com> - 5.0.0-1
  113. - 5.0.0
  114. * Mon Jul 08 2013 Jiri Popelka <jpopelka@redhat.com> - 4.2.0-1
  115. - 4.2.0
  116. * Thu May 23 2013 Jiri Popelka <jpopelka@redhat.com> - 4.1.0-3
  117. - fix 'complete manual location' note in man pages (#966534)
  118. * Tue May 07 2013 Jiri Popelka <jpopelka@redhat.com> - 4.1.0-2
  119. - some source files are under MIT license
  120. * Mon Apr 15 2013 Jiri Popelka <jpopelka@redhat.com> - 4.1.0-1
  121. - 4.1.0
  122. * Tue Mar 05 2013 Jiri Popelka <jpopelka@redhat.com> - 4.0.1-3
  123. - work around gcc 4.8.0 issue on ppc64 (#915321)
  124. - properly handle overridden compressed objects
  125. * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-2
  126. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  127. * Fri Jan 18 2013 Jiri Popelka <jpopelka@redhat.com> 4.0.1-1
  128. - 4.0.1
  129. * Wed Jan 02 2013 Jiri Popelka <jpopelka@redhat.com> 4.0.0-1
  130. - 4.0.0
  131. * Fri Sep 07 2012 Jiri Popelka <jpopelka@redhat.com> 3.0.2-1
  132. - 3.0.2
  133. * Thu Aug 16 2012 Jiri Popelka <jpopelka@redhat.com> 3.0.1-3
  134. - the previously added requirement doesn't need to be arch-specific
  135. * Thu Aug 16 2012 Jiri Popelka <jpopelka@redhat.com> 3.0.1-2
  136. - doc subpackage requires libs subpackage due to license file (#848466)
  137. * Wed Aug 15 2012 Jiri Popelka <jpopelka@redhat.com> 3.0.1-1
  138. - initial spec file