qpdf-vl.spec 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. Summary: Command-line tools and library for transforming PDF files
  2. Name: qpdf
  3. Version: 8.3.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}
  67. # https://fedoraproject.org/wiki/Packaging_tricks#With_.25doc
  68. %{__mkdir_p} __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 %{_syssbindir}/ldconfig
  75. %postun libs -p %{_syssbindir}/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 Jan 29 2019 Toshiaki Ara <ara_t@384.jp> - 8.3.0-1
  93. - update to 8.3.0
  94. - drop Patch0 (upstream fixed)
  95. * Tue Sep 04 2018 Toshiaki Ara <ara_t@384.jp> - 8.1.0-1
  96. - update to 8.1.0
  97. * Tue Jan 30 2018 Toshiaki Ara <ara_t@384.jp> - 7.1.0-1
  98. - new upstream release.
  99. - add BuildRequires: libjpeg-turbo-devel libtiff-devel
  100. - drop BuildRequires: autoconf automake libtool
  101. * Wed Jun 29 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 6.0.0-1
  102. - new upstream release.
  103. * Sat Jan 04 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.1.0-2
  104. - initial build for Vine Linux.
  105. * Wed Dec 18 2013 Jiri Popelka <jpopelka@redhat.com> - 5.1.0-1
  106. - 5.1.0
  107. * Mon Oct 21 2013 Jiri Popelka <jpopelka@redhat.com> - 5.0.1-1
  108. - 5.0.1
  109. * Sat Aug 03 2013 Petr Pisar <ppisar@redhat.com> - 5.0.0-4
  110. - Perl 5.18 rebuild
  111. * Mon Jul 22 2013 Jiri Popelka <jpopelka@redhat.com> - 5.0.0-3
  112. - change shebang to absolute path (#987040)
  113. * Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 5.0.0-2
  114. - Perl 5.18 rebuild
  115. * Thu Jul 11 2013 Jiri Popelka <jpopelka@redhat.com> - 5.0.0-1
  116. - 5.0.0
  117. * Mon Jul 08 2013 Jiri Popelka <jpopelka@redhat.com> - 4.2.0-1
  118. - 4.2.0
  119. * Thu May 23 2013 Jiri Popelka <jpopelka@redhat.com> - 4.1.0-3
  120. - fix 'complete manual location' note in man pages (#966534)
  121. * Tue May 07 2013 Jiri Popelka <jpopelka@redhat.com> - 4.1.0-2
  122. - some source files are under MIT license
  123. * Mon Apr 15 2013 Jiri Popelka <jpopelka@redhat.com> - 4.1.0-1
  124. - 4.1.0
  125. * Tue Mar 05 2013 Jiri Popelka <jpopelka@redhat.com> - 4.0.1-3
  126. - work around gcc 4.8.0 issue on ppc64 (#915321)
  127. - properly handle overridden compressed objects
  128. * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-2
  129. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  130. * Fri Jan 18 2013 Jiri Popelka <jpopelka@redhat.com> 4.0.1-1
  131. - 4.0.1
  132. * Wed Jan 02 2013 Jiri Popelka <jpopelka@redhat.com> 4.0.0-1
  133. - 4.0.0
  134. * Fri Sep 07 2012 Jiri Popelka <jpopelka@redhat.com> 3.0.2-1
  135. - 3.0.2
  136. * Thu Aug 16 2012 Jiri Popelka <jpopelka@redhat.com> 3.0.1-3
  137. - the previously added requirement doesn't need to be arch-specific
  138. * Thu Aug 16 2012 Jiri Popelka <jpopelka@redhat.com> 3.0.1-2
  139. - doc subpackage requires libs subpackage due to license file (#848466)
  140. * Wed Aug 15 2012 Jiri Popelka <jpopelka@redhat.com> 3.0.1-1
  141. - initial spec file