cups-filters-vl.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. # we build CUPS also with relro
  2. %global _hardened_build 1
  3. Summary: OpenPrinting CUPS filters and backends
  4. Name: cups-filters
  5. Version: 2.0.1
  6. Release: 1%{?_dist_release}
  7. Group: publishing
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. Packager: tomop
  11. # the CUPS exception text is the same as LLVM exception, so using that name with
  12. # agreement from legal team
  13. # https://lists.fedoraproject.org/archives/list/legal@lists.fedoraproject.org/message/A7GFSD6M3GYGSI32L2FC5KB22DUAEQI3/
  14. License: Apache-2.0 WITH LLVM-exception
  15. URL: https://github.com/OpenPrinting/cups-filters
  16. Source0: %{URL}/releases/download/%{version}/%{name}-%{version}.tar.gz
  17. Source1: lftocrlf.ppd
  18. Source2: lftocrlf
  19. # Obsolete cups-php (bug #971741)
  20. Obsoletes: cups-php < 1:1.6.0-1
  21. # Don't Provide it because we don't build the php module
  22. #Provides: cups-php = 1:1.6.0-1
  23. BuildRequires: pkgconfig
  24. BuildRequires: pkgconfig(cups)
  25. BuildRequires: libcupsfilters-devel
  26. BuildRequires: pkgconfig(libppd)
  27. BuildRequires: gettext-devel
  28. # Make sure we get postscriptdriver tags.
  29. BuildRequires: python3-cups
  30. # autogen.sh
  31. BuildRequires: autoconf
  32. BuildRequires: automake
  33. BuildRequires: libtool
  34. Requires: avahi
  35. # Ghostscript CUPS filters live here since Ghostscript 9.08.
  36. Provides: ghostscript-cups = 9.08
  37. Obsoletes: ghostscript-cups < 9.08
  38. %description
  39. Contains backends, filters, and other software that was
  40. once part of the core CUPS distribution but is no longer maintained by
  41. Apple Inc. In addition it contains additional filters developed
  42. independently of Apple, especially filters for the PDF-centric printing
  43. workflow introduced by OpenPrinting.
  44. %debug_package
  45. %prep
  46. %setup -q
  47. %build
  48. # work-around Rpath
  49. ./autogen.sh
  50. %configure --disable-static \
  51. --disable-silent-rules \
  52. --disable-rpath \
  53. --disable-mutool \
  54. --enable-driverless \
  55. --enable-universal-cups-filter
  56. make %{?_smp_mflags}
  57. %install
  58. make install DESTDIR=%{buildroot}
  59. # 2229776 - Add textonly driver back, but as lftocrlf
  60. install -p -m 0755 %{SOURCE2} %{buildroot}%{_cups_serverbin}/filter/lftocrlf
  61. install -p -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/ppd/cupsfilters/lftocrlf.ppd
  62. # Don't ship libtool la files.
  63. rm -f %{buildroot}%{_libdir}/lib*.la
  64. # LSB3.2 requires /usr/bin/foomatic-rip,
  65. # create it temporarily as a relative symlink
  66. # we may use symlink to universal filter, but LSB is about guaranteed compatibility set
  67. # among distibutions, so rather have the strict foomatic-rip filter...
  68. ln -sf %{_cups_serverbin}/filter/foomatic-rip %{buildroot}%{_bindir}/foomatic-rip
  69. # remove license files which are in %%pkgdocdir
  70. rm -f %{buildroot}%{_pkgdocdir}/{COPYING,NOTICE,LICENSE}
  71. # remove INSTALL since it is unnecessary
  72. rm -f %{buildroot}%{_pkgdocdir}/INSTALL
  73. # remove CHANGES-1.x.md, since it is carried by a dependency
  74. rm -f %{buildroot}%{_pkgdocdir}/CHANGES-1.x.md
  75. %check
  76. make check
  77. %files
  78. %license COPYING LICENSE NOTICE
  79. %doc AUTHORS ABOUT-NLS CHANGES.md CONTRIBUTING.md DEVELOPING.md README.md
  80. %{_bindir}/driverless
  81. %{_bindir}/driverless-fax
  82. %{_bindir}/foomatic-rip
  83. %dir %{_cups_serverbin}/filter
  84. %dir %{_cups_serverbin}/backend
  85. %dir %{_cups_serverbin}/driver
  86. %attr(-,root,root) %{_cups_serverbin}/filter/*
  87. %attr(0744,root,root) %{_cups_serverbin}/backend/beh
  88. %{_cups_serverbin}/backend/driverless
  89. %{_cups_serverbin}/backend/driverless-fax
  90. %attr(0744,root,root) %{_cups_serverbin}/backend/parallel
  91. # Serial backend needs to run as root (bug #212577#c4).
  92. %attr(0744,root,root) %{_cups_serverbin}/backend/serial
  93. %attr(0755,root,root) %{_cups_serverbin}/driver/driverless
  94. %attr(0755,root,root) %{_cups_serverbin}/driver/driverless-fax
  95. %dir %{_datadir}/cups
  96. %dir %{_datadir}/cups/drv
  97. %{_datadir}/cups/drv/*
  98. %dir %{_datadir}/cups/mime
  99. %{_datadir}/cups/mime/*
  100. %dir %{_datadir}/ppd
  101. %{_datadir}/ppd/*
  102. %dir %{_datadir}/ppdc
  103. %{_datadir}/ppdc/*
  104. %{_mandir}/man1/driverless.1.gz
  105. %{_mandir}/man1/foomatic-rip.1.gz
  106. %changelog
  107. * Tue Oct 03 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.28.16-1
  108. - new upstream release.
  109. * Thu Feb 03 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.28.11-1
  110. - new upstream release.
  111. * Sat Jul 31 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.28.9-1
  112. - new upstream release.
  113. - dropped ldconfig scriptlets.
  114. * Mon Oct 14 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.25.11-1
  115. - new upstream release.
  116. - built with poppler-0.81.0.
  117. * Tue Sep 04 2018 Toshiaki Ara <ara_t@384.jp> 1.18.0-3
  118. - rebuild with qpdf-8.1.0
  119. * Tue Jan 30 2018 Toshiaki Ara <ara_t@384.jp> 1.18.0-2
  120. - rebuild with qpdf-7.0.1
  121. * Wed Jan 03 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.18.0-1
  122. - new upstream release.
  123. * Wed Jun 29 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.9.0-1
  124. - new upstream release.
  125. * Tue May 10 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.8.3-2
  126. - rebuilt with poppler-0.43.0.
  127. * Tue May 10 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.8.3-1
  128. - new upstream release.
  129. * Mon May 09 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.76-3
  130. - rebuild with poppler-0.43.0
  131. * Sun Nov 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.76-2
  132. - rebuild with poppler-0.37.0
  133. * Sun Oct 4 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.76-1
  134. - new upstream release.
  135. * Tue Jul 08 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.54-2
  136. - rebuild with poppler-0.26.2
  137. * Sun Jun 8 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.54-1
  138. - new upstream release.
  139. * Fri May 16 2014 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.53-1
  140. - update to 1.0.53
  141. * Sat Jan 04 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.0.43-1
  142. - new upstream release.
  143. - initial build for Vine Linux.
  144. * Tue Nov 19 2013 Tim Waugh <twaugh@redhat.com> - 1.0.41-4
  145. - Adjust filter costs so application/vnd.adobe-read-postscript input
  146. doesn't go via pstotiff (bug #1008166).
  147. * Thu Nov 14 2013 Jaromír Končický <jkoncick@redhat.com> - 1.0.41-3
  148. - Fix memory leaks in cups-browsed (bug #1027317).
  149. * Wed Nov 6 2013 Tim Waugh <twaugh@redhat.com> - 1.0.41-2
  150. - Include dbus so that colord support works (bug #1026928).
  151. * Wed Oct 30 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.41-1
  152. - 1.0.41 - PPD-less printing support
  153. * Mon Oct 21 2013 Tim Waugh <twaugh@redhat.com> - 1.0.40-4
  154. - Fix socket leaks in the BrowsePoll code (bug #1021512).
  155. * Wed Oct 16 2013 Tim Waugh <twaugh@redhat.com> - 1.0.40-3
  156. - Ship the gstoraster MIME conversion rule now we provide that filter
  157. (bug #1019261).
  158. * Fri Oct 11 2013 Tim Waugh <twaugh@redhat.com> - 1.0.40-2
  159. - Fix PDF landscape printing (bug #768811).
  160. * Fri Oct 11 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.40-1
  161. - 1.0.40
  162. - Use new "hybrid" pdftops renderer.
  163. * Thu Oct 03 2013 Jaromír Končický <jkoncick@redhat.com> - 1.0.39-1
  164. - 1.0.39
  165. - Removed obsolete patches "pdf-landscape" and "browsepoll-notifications"
  166. * Tue Oct 1 2013 Tim Waugh <twaugh@redhat.com> - 1.0.38-4
  167. - Use IPP notifications for BrowsePoll when possible (bug #975241).
  168. * Tue Oct 1 2013 Tim Waugh <twaugh@redhat.com> - 1.0.38-3
  169. - Fixes for some printf-type format mismatches (bug #1014093).
  170. * Tue Sep 17 2013 Tim Waugh <twaugh@redhat.com> - 1.0.38-2
  171. - Fix landscape printing for PDFs (bug #768811).
  172. * Wed Sep 04 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.38-1
  173. - 1.0.38
  174. * Thu Aug 29 2013 Jaromír Končický <jkoncick@redhat.com> - 1.0.37-1
  175. - 1.0.37.
  176. * Tue Aug 27 2013 Jaromír Končický <jkoncick@redhat.com> - 1.0.36-5
  177. - Added build dependency - font required for running tests
  178. * Tue Aug 27 2013 Jaromír Končický <jkoncick@redhat.com> - 1.0.36-4
  179. - Added checking phase (make check)
  180. * Wed Aug 21 2013 Tim Waugh <twaugh@redhat.com> - 1.0.36-3
  181. - Upstream patch to re-work filter costs (bug #998977). No longer need
  182. text filter costs patch as paps gets used by default now if
  183. installed.
  184. * Mon Aug 19 2013 Marek Kasik <mkasik@redhat.com> - 1.0.36-2
  185. - Rebuild (poppler-0.24.0)
  186. * Tue Aug 13 2013 Tim Waugh <twaugh@redhat.com> - 1.0.36-1
  187. - 1.0.36.
  188. * Tue Aug 13 2013 Tim Waugh <twaugh@redhat.com> - 1.0.35-7
  189. - Upstream patch to move in filters from ghostscript.
  190. * Tue Jul 30 2013 Tim Waugh <twaugh@redhat.com> - 1.0.35-6
  191. - Set cost for text filters to 200 so that the paps filter gets
  192. preference for the time being (bug #988909).
  193. * Wed Jul 24 2013 Tim Waugh <twaugh@redhat.com> - 1.0.35-5
  194. - Handle page-label when printing n-up as well.
  195. * Tue Jul 23 2013 Tim Waugh <twaugh@redhat.com> - 1.0.35-4
  196. - Added support for page-label (bug #987515).
  197. * Thu Jul 11 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.35-3
  198. - Rebuild (qpdf-5.0.0)
  199. * Mon Jul 01 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.35-2
  200. - add cups-browsed(8) and cups-browsed.conf(5)
  201. - don't reverse lookup IP address in URI (#975822)
  202. * Wed Jun 26 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.35-1
  203. - 1.0.35
  204. * Mon Jun 24 2013 Marek Kasik <mkasik@redhat.com> - 1.0.34-9
  205. - Rebuild (poppler-0.22.5)
  206. * Wed Jun 19 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.34-8
  207. - fix the note we add in cups-browsed.conf
  208. * Wed Jun 12 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.34-7
  209. - Obsolete cups-php (#971741)
  210. * Wed Jun 05 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.34-6
  211. - one more cups-browsed leak fixed (#959682)
  212. * Wed Jun 05 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.34-5
  213. - perl is actually not required by pstopdf, because the calling is in dead code
  214. * Mon Jun 03 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.34-4
  215. - fix resource leaks and other problems found by Coverity & Valgrind (#959682)
  216. * Wed May 15 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.34-3
  217. - ship ppdc/pcl.h because of cupsfilters.drv
  218. * Tue May 07 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.34-2
  219. - pstopdf requires bc (#960315)
  220. * Thu Apr 11 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.34-1
  221. - 1.0.34
  222. * Fri Apr 05 2013 Fridolin Pokorny <fpokorny@redhat.com> - 1.0.33-1
  223. - 1.0.33
  224. - removed cups-filters-1.0.32-null-info.patch, accepted by upstream
  225. * Thu Apr 04 2013 Fridolin Pokorny <fpokorny@redhat.com> - 1.0.32-2
  226. - fixed segfault when info is NULL
  227. * Thu Apr 04 2013 Fridolin Pokorny <fpokorny@redhat.com> - 1.0.32-1
  228. - 1.0.32
  229. * Fri Mar 29 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.31-3
  230. - add note to cups-browsed.conf
  231. * Thu Mar 28 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.31-2
  232. - check cupsd.conf existence prior to grepping it (#928816)
  233. * Fri Mar 22 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.31-1
  234. - 1.0.31
  235. * Tue Mar 19 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.30-4
  236. - revert previous change
  237. * Wed Mar 13 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.30-3
  238. - don't ship banners for now (#919489)
  239. * Tue Mar 12 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.30-2
  240. - move BrowsePoll from cupsd.conf to cups-browsed.conf in %%post
  241. * Fri Mar 08 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.30-1
  242. - 1.0.30: CUPS browsing and broadcasting in cups-browsed
  243. * Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.29-4
  244. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  245. * Sat Jan 19 2013 Rex Dieter <rdieter@fedoraproject.org> 1.0.29-3
  246. - backport upstream buildfix for poppler-0.22.x
  247. * Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 1.0.29-2
  248. - rebuild due to "jpeg8-ABI" feature drop
  249. * Thu Jan 03 2013 Jiri Popelka <jpopelka@redhat.com> 1.0.29-1
  250. - 1.0.29
  251. * Wed Jan 02 2013 Jiri Popelka <jpopelka@redhat.com> 1.0.28-1
  252. - 1.0.28: cups-browsed daemon and service
  253. * Thu Nov 29 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.25-1
  254. - 1.0.25
  255. * Fri Sep 07 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.24-1
  256. - 1.0.24
  257. * Wed Aug 22 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.23-1
  258. - 1.0.23: old pdftopdf removed
  259. * Tue Aug 21 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.22-1
  260. - 1.0.22: new pdftopdf (uses qpdf instead of poppler)
  261. * Wed Aug 08 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.20-4
  262. - rebuild
  263. * Thu Aug 02 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.20-3
  264. - commented multiple licensing breakdown (#832130)
  265. - verbose build output
  266. * Thu Aug 02 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.20-2
  267. - BuildRequires: poppler-cpp-devel (to build against poppler-0.20)
  268. * Mon Jul 23 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.20-1
  269. - 1.0.20
  270. * Tue Jul 17 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.19-1
  271. - 1.0.19
  272. * Wed May 30 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.18-1
  273. - initial spec file