qpdf-vl.spec 5.6 KB

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