qpdf-vl.spec 5.3 KB

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