qpdf-vl.spec 4.9 KB

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