libcupsfilters-vl.spec 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. %global _hardened_build 1
  2. Name: libcupsfilters
  3. Version: 2.1.0
  4. Release: 1%{?_dist_release}
  5. Summary: Library for developing printing filters
  6. Group: system
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. # the CUPS exception text is the same as LLVM exception, so using that name with
  10. # agreement from legal team
  11. # https://lists.fedoraproject.org/archives/list/legal@lists.fedoraproject.org/message/A7GFSD6M3GYGSI32L2FC5KB22DUAEQI3/
  12. License: Apache-2.0 WITH LLVM-exception
  13. URL: https://github.com/OpenPrinting/libcupsfilters
  14. Source0: %{URL}/releases/download/%{version}/%{name}-%{version}.tar.gz
  15. # Patches
  16. # none
  17. # for generating configure and Makefile scripts in autogen.h
  18. BuildRequires: autoconf
  19. # for generating configure and Makefile scripts in autogen.h
  20. BuildRequires: automake
  21. # font for test script
  22. BuildRequires: TrueType-dejavu
  23. # most filter functions written in C
  24. BuildRequires: gcc
  25. # pdftopdf written in C++
  26. BuildRequires: gcc-c++
  27. # for generating configure and Makefile scripts in autogen.h
  28. BuildRequires: gettext-devel
  29. # we use gs binary in filter functions, so it could be only runtime
  30. # require, but there is a check in configure, which turns off GS
  31. # support in case the binary is not found, so the binary has to be in
  32. # buildroot
  33. BuildRequires: ghostscript >= 10.0.0
  34. # for autosetup
  35. BuildRequires: git
  36. # for generating configure and Makefile scripts in autogen.h
  37. BuildRequires: libtool
  38. # uses Makefiles
  39. BuildRequires: make
  40. # for pkg-config in configure and in SPEC file
  41. BuildRequires: pkgconfig
  42. # CUPS and IPP API functions
  43. BuildRequires: pkgconfig(cups)
  44. # for communication with colord
  45. BuildRequires: pkgconfig(dbus-1)
  46. # font support - configuration and customization
  47. BuildRequires: pkgconfig(fontconfig)
  48. # color management engine in rastering filter functions
  49. BuildRequires: pkgconfig(lcms2)
  50. # used for getting image resolution from images - they have
  51. # EXIF data in them and library accesses it
  52. BuildRequires: pkgconfig(libexif)
  53. # for jpeg file format support
  54. BuildRequires: pkgconfig(libjpeg)
  55. # for png file format support
  56. BuildRequires: pkgconfig(libpng)
  57. # for pdf filter functions
  58. BuildRequires: pkgconfig(libqpdf) >= 10.3.2
  59. # for tiff image support
  60. BuildRequires: pkgconfig(libtiff-4)
  61. # for pdftoraster filter
  62. BuildRequires: pkgconfig(poppler-cpp)
  63. # remove once CentOS Stream 10 is released
  64. #Obsoletes: cups-filters-libs < 2.0
  65. # have a fallback for fonts in texttopdf filter function (bz#1070729)
  66. # but make it weak, so other monospace font can be used if requested
  67. Recommends: liberation-mono-fonts
  68. # we communicate with colord regarding color profiles
  69. Requires: colord
  70. # for directory ownership of:
  71. # /usr/share/cups
  72. # /usr/share/cups/data
  73. Requires: cups
  74. # we call gs command in filter functions
  75. Requires: ghostscript >= 10.0.0
  76. %description
  77. Libcupsfilters provides a library, which implements common functions used
  78. in cups-browsed daemon and printing filters, and additional files
  79. as banner templates and character sets. The filters are used in CUPS daemon
  80. and in printer applications.
  81. %package devel
  82. Summary: Development files for libcupsfilters
  83. Group: programming
  84. # remove once CentOS Stream 10 is released
  85. Conflicts: cups-filters-devel{?_isa} < 2.0
  86. # remove once CentOS Stream 10 is released
  87. Obsoletes: cups-filters-devel < 2.0
  88. # c2esp and perl-Net-CUPS requires cups-filters-devel
  89. # remove once CentOS Stream 10 is released
  90. Provides: cups-filters-devel = %{version}-%{release}
  91. Requires: %{name}%{?_isa} = %{version}-%{release}
  92. %description devel
  93. Development files for OpenPrinting cupsfilters library.
  94. %debug_package
  95. %prep
  96. %autosetup -S git -n %{name}-%{version}
  97. %build
  98. # to get configure script
  99. ./autogen.sh
  100. %configure --disable-mutool\
  101. --disable-rpath\
  102. --disable-silent-rules\
  103. --disable-static\
  104. --enable-dbus
  105. # fix rpmlint error about linking to libraries, but not actually using their functions
  106. # it happens when the required libraries uses pkgconfig - pkgconfig file doesn't know
  107. # which specific functions our binary calls, so it tells us to link against every
  108. # possibilities
  109. # https://fedoraproject.org/wiki/Common_Rpmlint_issues#unused-direct-shlib-dependency
  110. sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
  111. %make_build
  112. %check
  113. make check
  114. %install
  115. %make_install
  116. find %{buildroot} -name '*.la' -exec rm -f {} ';'
  117. mkdir -p %{buildroot}%{_pkgdocdir}/fontembed/
  118. install -p -m 0644 cupsfilters/fontembed/README %{buildroot}%{_pkgdocdir}/fontembed/README
  119. # remove .odt files (we have their .pdf versions)
  120. rm -f %{buildroot}%{_datadir}/cups/data/*.odt
  121. # remove redundant files
  122. rm -f %{buildroot}%{_pkgdocdir}/{INSTALL.md,ABOUT-NLS}
  123. # license related files are already under /usr/share/licenses
  124. rm -f %{buildroot}%{_pkgdocdir}/{LICENSE,COPYING,NOTICE}
  125. %{?ldconfig_scriptlets}
  126. %files
  127. %license COPYING LICENSE NOTICE
  128. %dir %{_datadir}/cups
  129. %dir %{_datadir}/cups/banners
  130. %{_datadir}/cups/banners/classified
  131. %{_datadir}/cups/banners/confidential
  132. %{_datadir}/cups/banners/form
  133. %{_datadir}/cups/banners/secret
  134. %{_datadir}/cups/banners/standard
  135. %{_datadir}/cups/banners/topsecret
  136. %{_datadir}/cups/banners/unclassified
  137. %dir %{_datadir}/cups/charsets
  138. %{_datadir}/cups/charsets/pdf.utf-8
  139. %{_datadir}/cups/charsets/pdf.utf-8.heavy
  140. %{_datadir}/cups/charsets/pdf.utf-8.simple
  141. %{_datadir}/cups/data/classified.pdf
  142. %{_datadir}/cups/data/confidential.pdf
  143. %{_datadir}/cups/data/default-testpage.pdf
  144. %{_datadir}/cups/data/default.pdf
  145. %{_datadir}/cups/data/form_english.pdf
  146. %{_datadir}/cups/data/form_russian.pdf
  147. %{_datadir}/cups/data/secret.pdf
  148. %{_datadir}/cups/data/standard.pdf
  149. %{_datadir}/cups/data/testprint
  150. %{_datadir}/cups/data/topsecret.pdf
  151. %{_datadir}/cups/data/unclassified.pdf
  152. %doc AUTHORS CHANGES.md CHANGES-1.x.md README.md
  153. %dir %{_docdir}/%{name}/fontembed
  154. %{_docdir}/%{name}/fontembed/README
  155. %{_libdir}/libcupsfilters.so.2*
  156. %files devel
  157. %{_docdir}/%{name}/CONTRIBUTING.md
  158. %{_docdir}/%{name}/DEVELOPING.md
  159. %dir %{_includedir}/cupsfilters
  160. %{_includedir}/cupsfilters/*
  161. %{_libdir}/libcupsfilters.so
  162. %{_libdir}/pkgconfig/libcupsfilters.pc
  163. %changelog
  164. * Sat Oct 19 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.1.0-1
  165. - new upstream release.
  166. * Fri Oct 04 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.1~b1-4
  167. - initial build for Vine Linux.
  168. * Thu Sep 26 2024 Justin M. Forbes <jforbes@fedoraproject.org> - 1:2.1~b1-3
  169. - Fix for CVE-2024-47076
  170. * Thu Aug 22 2024 Marek Kasik <mkasik@redhat.com> - 1:2.1~b1-2
  171. - Rebuild for poppler 24.08.0
  172. * Thu Aug 15 2024 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.1~b1-1
  173. - 2305074 - libcupsfilters-2.1b1 is available
  174. * Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.0-8
  175. - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
  176. * Mon Mar 11 2024 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0.0-7
  177. - 2266609 - fix color printing via URF to driverless printer
  178. * Tue Feb 20 2024 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0.0-6
  179. - fix several issues reported in upstream
  180. * Mon Jan 29 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.0-5
  181. - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
  182. * Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.0-4
  183. - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
  184. * Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.0-3
  185. - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
  186. * Thu Oct 19 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0.0-2
  187. - rebuilt for side-tag with libppd
  188. * Tue Oct 03 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0.0-1
  189. - 2240388 - libcupsfilters-2.0.0 is available
  190. * Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0~rc2-2
  191. - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
  192. * Wed Jun 28 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0~rc2-1
  193. - 2.0rc2
  194. * Wed Apr 19 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0~rc1-1
  195. - 2.0rc1
  196. * Wed Mar 01 2023 Zdenek Dohnal <zdohnal@redhat.com> - 1:2.0~b4-1
  197. - (fedora#2173137) - libcupsfilters-2.0b4 is available
  198. - introduce Epoch because I'm not careful reader of FPG...
  199. * Mon Feb 20 2023 Zdenek Dohnal <zdohnal@redhat.com> - 2.0b3-4
  200. - rebuilt with obsoletes
  201. - fix define in image-png.c to enable PNG support
  202. * Mon Feb 20 2023 Zdenek Dohnal <zdohnal@redhat.com> - 2.0b3-3
  203. - fix double free caused by coverity fix
  204. * Wed Feb 15 2023 Zdenek Dohnal <zdohnal@redhat.com> - 2.0b3-2
  205. - remove Obsoletes for now
  206. * Tue Jan 31 2023 Zdenek Dohnal <zdohnal@redhat.com> - 2.0b3-1
  207. - Initial import