cups-filters-vl.spec 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504
  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: 1.28.16
  6. Release: 1%{?_dist_release}
  7. Group: publishing
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. Packager: tomop
  11. # For a breakdown of the licensing, see COPYING file
  12. # GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*,
  13. # imagetopdf, pstopdf, texttopdf
  14. # backends: parallel, serial
  15. # GPLv2+: filters: gstopxl, textonly, texttops, imagetops, foomatic-rip
  16. # GPLv3: filters: bannertopdf
  17. # GPLv3+: filters: urftopdf, rastertopdf
  18. # LGPLv2+: utils: cups-browsed
  19. # MIT: filters: gstoraster, pdftoijs, pdftoopvp, pdftopdf, pdftoraster
  20. License: GPLv2 and GPLv2+ and GPLv3 and GPLv3+ and LGPLv2+ and MIT and BSD with advertising
  21. URL: https://wiki.linuxfoundation.org/openprinting/cups-filters
  22. Source0: https://openprinting.org/download/cups-filters/cups-filters-%{version}.tar.xz
  23. Requires: cups
  24. Requires: cups-filters-libs%{?_isa} = %{version}-%{release}
  25. # Obsolete cups-php (bug #971741)
  26. Obsoletes: cups-php < 1:1.6.0-1
  27. # Don't Provide it because we don't build the php module
  28. #Provides: cups-php = 1:1.6.0-1
  29. BuildRequires: cups-devel
  30. # pdftopdf
  31. BuildRequires: qpdf-devel
  32. # pdftops
  33. BuildRequires: poppler-utils
  34. # pdftoijs, pdftoopvp, pdftoraster, gstoraster
  35. BuildRequires: poppler-devel
  36. BuildRequires: libjpeg-devel
  37. BuildRequires: libpng-devel
  38. BuildRequires: libtiff-devel
  39. BuildRequires: zlib-devel
  40. BuildRequires: pkgconfig dbus-devel
  41. # libijs
  42. BuildRequires: ghostscript-devel
  43. BuildRequires: freetype2-devel
  44. BuildRequires: fontconfig-devel
  45. BuildRequires: lcms2-devel
  46. # cups-browsed
  47. BuildRequires: avahi-devel avahi-glib-devel
  48. # Make sure we get postscriptdriver tags.
  49. BuildRequires: python-cups
  50. # Testing font for test scripts.
  51. BuildRequires: TrueType-dejavu
  52. # autogen.sh
  53. BuildRequires: autoconf
  54. BuildRequires: automake
  55. BuildRequires: libtool
  56. Requires: poppler-utils
  57. # pstopdf
  58. Requires: bc grep sed
  59. # cups-browsed
  60. #Requires(post): systemd
  61. #Requires(preun): systemd
  62. #Requires(postun): systemd
  63. # Ghostscript CUPS filters live here since Ghostscript 9.08.
  64. Provides: ghostscript-cups = 9.08
  65. Obsoletes: ghostscript-cups < 9.08
  66. %description
  67. Contains backends, filters, and other software that was
  68. once part of the core CUPS distribution but is no longer maintained by
  69. Apple Inc. In addition it contains additional filters developed
  70. independently of Apple, especially filters for the PDF-centric printing
  71. workflow introduced by OpenPrinting.
  72. %package libs
  73. Summary: OpenPrinting CUPS filters and backends - cupsfilters and fontembed libraries
  74. Group: system
  75. # LGPLv2: libcupsfilters
  76. # MIT: libfontembed
  77. License: LGPLv2 and MIT
  78. %description libs
  79. This package provides cupsfilters and fontembed libraries.
  80. %package devel
  81. Summary: OpenPrinting CUPS filters and backends - development environment
  82. Group: programming
  83. License: LGPLv2 and MIT
  84. Requires: cups-filters-libs%{?_isa} = %{version}-%{release}
  85. %description devel
  86. This is the development package for OpenPrinting CUPS filters and backends.
  87. %debug_package
  88. %prep
  89. %setup -q
  90. %build
  91. # work-around Rpath
  92. ./autogen.sh
  93. # --with-pdftops=hybrid - use Poppler's pdftops instead of Ghostscript for
  94. # Brother, Minolta, and Konica Minolta to work around
  95. # bugs in the printer's PS interpreters
  96. # --with-rcdir=no - don't install SysV init script
  97. export IJS_CFLAGS="-I/usr/include/ijs"
  98. export IJS_LIBS="-lijs"
  99. export CXXFLAGS="${CXXFLAGS} -std=c++17"
  100. %configure --disable-static \
  101. --disable-silent-rules \
  102. --disable-mutool \
  103. --disable-exif \
  104. --with-pdftops=hybrid \
  105. --enable-dbus \
  106. --with-rcdir=%{_sysconfdir} \
  107. --with-test-font-path=/usr/share/fonts/TrueType-dejavu/DejaVuSans.ttf
  108. make %{?_smp_mflags}
  109. %install
  110. make install DESTDIR=%{buildroot}
  111. # https://fedoraproject.org/wiki/Packaging_tricks#With_.25doc
  112. mkdir __doc
  113. mv %{buildroot}%{_datadir}/doc/cups-filters/* __doc
  114. rm -rf %{buildroot}%{_datadir}/doc/cups-filters
  115. # Don't ship libtool la files.
  116. rm -f %{buildroot}%{_libdir}/lib*.la
  117. # Not sure what is this good for.
  118. rm -f %{buildroot}%{_bindir}/ttfread
  119. # systemd unit file
  120. #mkdir -p %{buildroot}%{_unitdir}
  121. #install -p -m 644 utils/cups-browsed.service %{buildroot}%{_unitdir}
  122. # SysV initscripts
  123. rm -rf %{buildroot}%{_sysconfdir}/rc{0,2,3,5}.d
  124. rm -rf %{buildroot}%{_sysconfdir}/rc.d
  125. mkdir -p %{buildroot}%{_sysconfdir}/rc.d
  126. mv -f %{buildroot}%{_sysconfdir}/init.d %{buildroot}%{_sysconfdir}/rc.d/
  127. for f in %{buildroot}%{_cups_serverbin}/filter/*; do
  128. if [ -f $f ]; then
  129. chmod 755 $f
  130. fi
  131. done
  132. %check
  133. make check
  134. %post
  135. #%systemd_post cups-browsed.service
  136. # Initial installation
  137. if [ $1 -eq 1 ] ; then
  138. IN=%{_sysconfdir}/cups/cupsd.conf
  139. OUT=%{_sysconfdir}/cups/cups-browsed.conf
  140. keyword=BrowsePoll
  141. # We can remove this after few releases, it's just for the introduction of cups-browsed.
  142. if [ -f "$OUT" ]; then
  143. echo -e "\n# NOTE: This file is not part of CUPS. You need to start & enable cups-browsed service." >> "$OUT"
  144. fi
  145. # move BrowsePoll from cupsd.conf to cups-browsed.conf
  146. if [ -f "$IN" ] && grep -iq ^$keyword "$IN"; then
  147. if ! grep -iq ^$keyword "$OUT"; then
  148. (cat >> "$OUT" <<EOF
  149. # Settings automatically moved from cupsd.conf by RPM package:
  150. EOF
  151. ) || :
  152. (grep -i ^$keyword "$IN" >> "$OUT") || :
  153. #systemctl enable cups-browsed.service >/dev/null 2>&1 || :
  154. fi
  155. sed -i -e "s,^$keyword,#$keyword directive moved to cups-browsed.conf\n#$keyword,i" "$IN" || :
  156. fi
  157. fi
  158. %preun
  159. #%systemd_preun cups-browsed.service
  160. %postun
  161. #%systemd_postun_with_restart cups-browsed.service
  162. %files
  163. %license COPYING
  164. %doc __doc/README __doc/AUTHORS __doc/NEWS
  165. %config(noreplace) %{_sysconfdir}/cups/cups-browsed.conf
  166. %{_bindir}/driverless
  167. %{_bindir}/driverless-fax
  168. %{_bindir}/foomatic-rip
  169. %attr(-,root,root) %{_cups_serverbin}/filter/*
  170. #exclude %{_cups_serverbin}/filter/pdftoraster
  171. %attr(0755,root,root) %{_cups_serverbin}/backend/beh
  172. %attr(0755,root,root) %{_cups_serverbin}/backend/cups-brf
  173. %attr(0755,root,root) %{_cups_serverbin}/backend/driverless
  174. %attr(0755,root,root) %{_cups_serverbin}/backend/driverless-fax
  175. %attr(0755,root,root) %{_cups_serverbin}/backend/implicitclass
  176. %attr(0755,root,root) %{_cups_serverbin}/backend/parallel
  177. # Serial backend needs to run as root (bug #212577#c4).
  178. %attr(0700,root,root) %{_cups_serverbin}/backend/serial
  179. %attr(0755,root,root) %{_cups_serverbin}/driver/driverless
  180. %attr(0755,root,root) %{_cups_serverbin}/driver/driverless-fax
  181. %{_datadir}/cups/banners
  182. %{_datadir}/cups/braille
  183. %{_datadir}/cups/charsets
  184. %{_datadir}/cups/data/*
  185. # this needs to be in the main package because of cupsfilters.drv
  186. %{_datadir}/cups/drv/*
  187. %{_datadir}/cups/mime/*
  188. %{_datadir}/ppd/*
  189. %{_datadir}/cups/ppdc/*
  190. %{_sbindir}/cups-browsed
  191. #%{_unitdir}/cups-browsed.service
  192. %{_initdir}/cups-browsed
  193. %{_mandir}/man1/driverless.1.gz
  194. %{_mandir}/man1/foomatic-rip.1.gz
  195. %{_mandir}/man8/cups-browsed.8.gz
  196. %{_mandir}/man5/cups-browsed.conf.5.gz
  197. %files libs
  198. %license __doc/COPYING
  199. %doc fontembed/README
  200. %{_libdir}/libcupsfilters.so.*
  201. %{_libdir}/libfontembed.so.*
  202. %files devel
  203. %{_includedir}/cupsfilters
  204. %{_includedir}/fontembed
  205. %{_datadir}/cups/ppdc/escp.h
  206. %{_libdir}/pkgconfig/libcupsfilters.pc
  207. %{_libdir}/pkgconfig/libfontembed.pc
  208. %{_libdir}/libcupsfilters.so
  209. %{_libdir}/libfontembed.so
  210. %changelog
  211. * Tue Oct 03 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.28.16-1
  212. - new upstream release.
  213. * Thu Feb 03 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.28.11-1
  214. - new upstream release.
  215. * Sat Jul 31 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.28.9-1
  216. - new upstream release.
  217. - dropped ldconfig scriptlets.
  218. * Mon Oct 14 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.25.11-1
  219. - new upstream release.
  220. - built with poppler-0.81.0.
  221. * Tue Sep 04 2018 Toshiaki Ara <ara_t@384.jp> 1.18.0-3
  222. - rebuild with qpdf-8.1.0
  223. * Tue Jan 30 2018 Toshiaki Ara <ara_t@384.jp> 1.18.0-2
  224. - rebuild with qpdf-7.0.1
  225. * Wed Jan 03 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.18.0-1
  226. - new upstream release.
  227. * Wed Jun 29 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.9.0-1
  228. - new upstream release.
  229. * Tue May 10 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.8.3-2
  230. - rebuilt with poppler-0.43.0.
  231. * Tue May 10 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.8.3-1
  232. - new upstream release.
  233. * Mon May 09 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.76-3
  234. - rebuild with poppler-0.43.0
  235. * Sun Nov 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.76-2
  236. - rebuild with poppler-0.37.0
  237. * Sun Oct 4 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.76-1
  238. - new upstream release.
  239. * Tue Jul 08 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.54-2
  240. - rebuild with poppler-0.26.2
  241. * Sun Jun 8 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.54-1
  242. - new upstream release.
  243. * Fri May 16 2014 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.53-1
  244. - update to 1.0.53
  245. * Sat Jan 04 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.0.43-1
  246. - new upstream release.
  247. - initial build for Vine Linux.
  248. * Tue Nov 19 2013 Tim Waugh <twaugh@redhat.com> - 1.0.41-4
  249. - Adjust filter costs so application/vnd.adobe-read-postscript input
  250. doesn't go via pstotiff (bug #1008166).
  251. * Thu Nov 14 2013 Jaromír Končický <jkoncick@redhat.com> - 1.0.41-3
  252. - Fix memory leaks in cups-browsed (bug #1027317).
  253. * Wed Nov 6 2013 Tim Waugh <twaugh@redhat.com> - 1.0.41-2
  254. - Include dbus so that colord support works (bug #1026928).
  255. * Wed Oct 30 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.41-1
  256. - 1.0.41 - PPD-less printing support
  257. * Mon Oct 21 2013 Tim Waugh <twaugh@redhat.com> - 1.0.40-4
  258. - Fix socket leaks in the BrowsePoll code (bug #1021512).
  259. * Wed Oct 16 2013 Tim Waugh <twaugh@redhat.com> - 1.0.40-3
  260. - Ship the gstoraster MIME conversion rule now we provide that filter
  261. (bug #1019261).
  262. * Fri Oct 11 2013 Tim Waugh <twaugh@redhat.com> - 1.0.40-2
  263. - Fix PDF landscape printing (bug #768811).
  264. * Fri Oct 11 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.40-1
  265. - 1.0.40
  266. - Use new "hybrid" pdftops renderer.
  267. * Thu Oct 03 2013 Jaromír Končický <jkoncick@redhat.com> - 1.0.39-1
  268. - 1.0.39
  269. - Removed obsolete patches "pdf-landscape" and "browsepoll-notifications"
  270. * Tue Oct 1 2013 Tim Waugh <twaugh@redhat.com> - 1.0.38-4
  271. - Use IPP notifications for BrowsePoll when possible (bug #975241).
  272. * Tue Oct 1 2013 Tim Waugh <twaugh@redhat.com> - 1.0.38-3
  273. - Fixes for some printf-type format mismatches (bug #1014093).
  274. * Tue Sep 17 2013 Tim Waugh <twaugh@redhat.com> - 1.0.38-2
  275. - Fix landscape printing for PDFs (bug #768811).
  276. * Wed Sep 04 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.38-1
  277. - 1.0.38
  278. * Thu Aug 29 2013 Jaromír Končický <jkoncick@redhat.com> - 1.0.37-1
  279. - 1.0.37.
  280. * Tue Aug 27 2013 Jaromír Končický <jkoncick@redhat.com> - 1.0.36-5
  281. - Added build dependency - font required for running tests
  282. * Tue Aug 27 2013 Jaromír Končický <jkoncick@redhat.com> - 1.0.36-4
  283. - Added checking phase (make check)
  284. * Wed Aug 21 2013 Tim Waugh <twaugh@redhat.com> - 1.0.36-3
  285. - Upstream patch to re-work filter costs (bug #998977). No longer need
  286. text filter costs patch as paps gets used by default now if
  287. installed.
  288. * Mon Aug 19 2013 Marek Kasik <mkasik@redhat.com> - 1.0.36-2
  289. - Rebuild (poppler-0.24.0)
  290. * Tue Aug 13 2013 Tim Waugh <twaugh@redhat.com> - 1.0.36-1
  291. - 1.0.36.
  292. * Tue Aug 13 2013 Tim Waugh <twaugh@redhat.com> - 1.0.35-7
  293. - Upstream patch to move in filters from ghostscript.
  294. * Tue Jul 30 2013 Tim Waugh <twaugh@redhat.com> - 1.0.35-6
  295. - Set cost for text filters to 200 so that the paps filter gets
  296. preference for the time being (bug #988909).
  297. * Wed Jul 24 2013 Tim Waugh <twaugh@redhat.com> - 1.0.35-5
  298. - Handle page-label when printing n-up as well.
  299. * Tue Jul 23 2013 Tim Waugh <twaugh@redhat.com> - 1.0.35-4
  300. - Added support for page-label (bug #987515).
  301. * Thu Jul 11 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.35-3
  302. - Rebuild (qpdf-5.0.0)
  303. * Mon Jul 01 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.35-2
  304. - add cups-browsed(8) and cups-browsed.conf(5)
  305. - don't reverse lookup IP address in URI (#975822)
  306. * Wed Jun 26 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.35-1
  307. - 1.0.35
  308. * Mon Jun 24 2013 Marek Kasik <mkasik@redhat.com> - 1.0.34-9
  309. - Rebuild (poppler-0.22.5)
  310. * Wed Jun 19 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.34-8
  311. - fix the note we add in cups-browsed.conf
  312. * Wed Jun 12 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.34-7
  313. - Obsolete cups-php (#971741)
  314. * Wed Jun 05 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.34-6
  315. - one more cups-browsed leak fixed (#959682)
  316. * Wed Jun 05 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.34-5
  317. - perl is actually not required by pstopdf, because the calling is in dead code
  318. * Mon Jun 03 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.34-4
  319. - fix resource leaks and other problems found by Coverity & Valgrind (#959682)
  320. * Wed May 15 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.34-3
  321. - ship ppdc/pcl.h because of cupsfilters.drv
  322. * Tue May 07 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.34-2
  323. - pstopdf requires bc (#960315)
  324. * Thu Apr 11 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.34-1
  325. - 1.0.34
  326. * Fri Apr 05 2013 Fridolin Pokorny <fpokorny@redhat.com> - 1.0.33-1
  327. - 1.0.33
  328. - removed cups-filters-1.0.32-null-info.patch, accepted by upstream
  329. * Thu Apr 04 2013 Fridolin Pokorny <fpokorny@redhat.com> - 1.0.32-2
  330. - fixed segfault when info is NULL
  331. * Thu Apr 04 2013 Fridolin Pokorny <fpokorny@redhat.com> - 1.0.32-1
  332. - 1.0.32
  333. * Fri Mar 29 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.31-3
  334. - add note to cups-browsed.conf
  335. * Thu Mar 28 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.31-2
  336. - check cupsd.conf existence prior to grepping it (#928816)
  337. * Fri Mar 22 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.31-1
  338. - 1.0.31
  339. * Tue Mar 19 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.30-4
  340. - revert previous change
  341. * Wed Mar 13 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.30-3
  342. - don't ship banners for now (#919489)
  343. * Tue Mar 12 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.30-2
  344. - move BrowsePoll from cupsd.conf to cups-browsed.conf in %%post
  345. * Fri Mar 08 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.30-1
  346. - 1.0.30: CUPS browsing and broadcasting in cups-browsed
  347. * Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.29-4
  348. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  349. * Sat Jan 19 2013 Rex Dieter <rdieter@fedoraproject.org> 1.0.29-3
  350. - backport upstream buildfix for poppler-0.22.x
  351. * Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 1.0.29-2
  352. - rebuild due to "jpeg8-ABI" feature drop
  353. * Thu Jan 03 2013 Jiri Popelka <jpopelka@redhat.com> 1.0.29-1
  354. - 1.0.29
  355. * Wed Jan 02 2013 Jiri Popelka <jpopelka@redhat.com> 1.0.28-1
  356. - 1.0.28: cups-browsed daemon and service
  357. * Thu Nov 29 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.25-1
  358. - 1.0.25
  359. * Fri Sep 07 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.24-1
  360. - 1.0.24
  361. * Wed Aug 22 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.23-1
  362. - 1.0.23: old pdftopdf removed
  363. * Tue Aug 21 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.22-1
  364. - 1.0.22: new pdftopdf (uses qpdf instead of poppler)
  365. * Wed Aug 08 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.20-4
  366. - rebuild
  367. * Thu Aug 02 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.20-3
  368. - commented multiple licensing breakdown (#832130)
  369. - verbose build output
  370. * Thu Aug 02 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.20-2
  371. - BuildRequires: poppler-cpp-devel (to build against poppler-0.20)
  372. * Mon Jul 23 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.20-1
  373. - 1.0.20
  374. * Tue Jul 17 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.19-1
  375. - 1.0.19
  376. * Wed May 30 2012 Jiri Popelka <jpopelka@redhat.com> 1.0.18-1
  377. - initial spec file