cups-vl.spec 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408
  1. %bcond_with systemd
  2. %define _libexecdir %{_libdir}
  3. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  4. %define initdir %{_sysconfdir}/rc.d/init.d
  5. %define use_alternatives 1
  6. %define _unpackaged_files_terminate_build 1
  7. Summary: Common Unix Printing System
  8. Name: cups
  9. Version: 2.4.7
  10. Release: 1%{?_dist_release}%{?with_systemd:.systemd}
  11. Group: servers
  12. Vendor: Project Vine
  13. Distribution: Vine Linux
  14. Packager: daisuke, tomop
  15. License: GPL
  16. Url: https://github.com/OpenPrinting/cups
  17. Source: https://github.com/OpenPrinting/cups/archive/v%{version}.tar.gz#/cups-%{version}.tar.gz
  18. # Our initscript
  19. Source1: cups.init
  20. # Pixmap for desktop file
  21. Source2: cupsprinter.png
  22. # LSPP-required ps->pdf filter
  23. Source4: pstopdf
  24. # xinetd config file for cups-lpd service
  25. Source5: cups-lpd
  26. # Logrotate configuration
  27. Source6: cups.logrotate
  28. # Cron-based tmpwatch for /var/spool/cups/tmp
  29. Source8: cups.cron
  30. # Filter and PPD for textonly printing
  31. Source9: textonly.filter
  32. Source10: textonly.ppd
  33. Source11: macros.cups
  34. Source102: pstoraster
  35. Source103: pstoraster.convs
  36. Source104: postscript.ppd.gz
  37. Source105: pdftops.conf
  38. Source201: dvitops
  39. Source202: dvitops.convs
  40. Source203: dvitops.types
  41. Source204: cjktexttops
  42. Source206: pxlmono.ppd.gz
  43. Source207: pxlcolor.ppd.gz
  44. Source208: cups.conf
  45. # PAM enablement, very old patch, not even git can track when or why
  46. # the patch was added.
  47. Patch1: cups-system-auth.patch
  48. # cups-config from devel package conflicted on multilib arches,
  49. # fixed hack with pkg-config calling for gnutls' libdir variable
  50. Patch2: cups-multilib.patch
  51. # if someone makes a change to banner files, then there will <banner>.rpmnew
  52. # with next update of cups-filters - this patch makes sure the banner file
  53. # changed by user is used and .rpmnew or .rpmsave is ignored
  54. # Note: This could be rewrite with use a kind of #define and send to upstream
  55. Patch3: cups-banners.patch
  56. # don't export ssl libs to cups-config - can't find the reason.
  57. Patch4: cups-no-export-ssllibs.patch
  58. # enables old uri usb:/dev/usb/lp0 - leave it here for users of old printers
  59. Patch5: cups-direct-usb.patch
  60. # when system workload is high, timeout for cups-driverd can be reached -
  61. # increase the timeout
  62. Patch6: cups-driverd-timeout.patch
  63. # usb backend didn't get any notification about out-of-paper because of kernel
  64. Patch7: cups-usb-paperout.patch
  65. # uri compatibility with old Fedoras
  66. Patch8: cups-uri-compat.patch
  67. # use IP_FREEBIND, because cupsd cannot bind to not yet existing IP address
  68. # by default
  69. Patch9: cups-freebind.patch
  70. # add support of multifile
  71. Patch10: cups-ipp-multifile.patch
  72. # prolongs web ui timeout
  73. Patch11: cups-web-devices-timeout.patch
  74. # failover backend for implementing failover functionality
  75. # TODO: move it to the cups-filters upstream
  76. Patch12: cups-failover-backend.patch
  77. # add device id for dymo printer
  78. Patch13: cups-dymo-deviceid.patch
  79. %if 0%{?lspp}
  80. # selinux and audit enablement for CUPS - needs work and CUPS upstream wants
  81. # to have these features implemented their way in the future
  82. Patch100: cups-lspp.patch
  83. %endif
  84. #### UPSTREAM PATCHES (starts with 1000) ####
  85. # https://github.com/OpenPrinting/cups/pull/742
  86. # 2218124 - The command "cancel -x <job>" does not remove job files
  87. Patch1001: 0001-Use-purge-job-instead-of-purge-jobs-when-canceling-a.patch
  88. BuildRoot: %{_tmppath}/%{name}-root
  89. Requires: %{name}-libs = %{version}-%{release}
  90. Requires: %{name}-client = %{version}-%{release}
  91. Requires: tmpwatch
  92. Requires: ghostscript >= 8.71-4
  93. BuildRequires: aspell-devel
  94. BuildRequires: avahi-devel >= 0.6.20
  95. BuildRequires: dbus-devel >= 0.90
  96. BuildRequires: e2fsprogs-devel
  97. BuildRequires: gnutls-devel
  98. BuildRequires: krb5-devel
  99. BuildRequires: libacl-devel
  100. BuildRequires: libjpeg-devel
  101. BuildRequires: libpng-devel
  102. BuildRequires: libtiff-devel
  103. BuildRequires: libusb1-devel
  104. BuildRequires: openldap-devel
  105. BuildRequires: pam-devel
  106. BuildRequires: pkgconfig
  107. BuildRequires: poppler-utils
  108. BuildRequires: python-cups
  109. Requires: avahi >= 0.6.20
  110. Requires: avahi-tools
  111. Requires: dbus >= 0.90
  112. Requires: poppler-utils
  113. Requires: cups-filters
  114. %if %{with systemd}
  115. BuildRequires: systemd-devel
  116. %{?systemd_requires}
  117. %else
  118. Requires(pre): chkconfig initscripts perl
  119. %endif
  120. %description
  121. CUPS printing system provides a portable printing layer for
  122. UNIX® operating systems. It has been developed by Apple Inc.
  123. to promote a standard printing solution for all UNIX vendors and users.
  124. CUPS provides the System V and Berkeley command-line interfaces.
  125. %description -l ja
  126.  CUPS printing systemはUNIX操作環境においてポータブルな印刷環境を提供
  127. します。CUPSは全てのUNIXベンダーやユーザのために標準的な印刷ソリューショ
  128. ンを提供するためにApple Inc.により開発されました。
  129.  CUPSはSystem VやBerkeleyコマンドラインのインターフェースを提供します。
  130. %package devel
  131. Summary: Common Unix Printing System - development environment
  132. Group: programming
  133. Requires: %{name}-libs = %{version}-%{release}
  134. Requires: e2fsprogs-devel
  135. Requires: gnutls-devel
  136. Requires: krb5-devel
  137. Requires: zlib-devel
  138. License: LGPL
  139. %description devel
  140. CUPS printing system provides a portable printing layer for
  141. UNIX. operating systems. This is the development package for creating
  142. additional printer drivers, and other CUPS services.
  143. %description devel -l ja
  144.  CUPS printing systemはUNIX操作環境においてポータブルな印刷環境を提供
  145. します。
  146.  このパッケージはプリンタドライバを追加したり他のCUPSサービスを開発す
  147. るためのパッケージです。
  148. %package libs
  149. Summary: Common Unix Printing System - libraries
  150. Group: system
  151. License: LGPL
  152. %description libs
  153. CUPS printing system provides a portable printing layer for
  154. UNIX® operating systems. It has been developed by Apple Inc.
  155. to promote a standard printing solution for all UNIX vendors and users.
  156. CUPS provides the System V and Berkeley command-line interfaces.
  157. The cups-libs package provides libraries used by applications to use CUPS
  158. natively, without needing the lp/lpr commands.
  159. %description libs -l ja
  160.  CUPS printing systemはUNIX操作環境においてポータブルな印刷環境を提供
  161. します。CUPSは全てのUNIXベンダーやユーザのために標準的な印刷ソリューショ
  162. ンを提供するためにApple Inc.により開発されました。
  163.  CUPSはSystem VやBerkeleyコマンドラインのインターフェースを提供します。
  164.  cups-libsパッケージはlp/lprコマンドを必要としないCUPSネイティブなアプ
  165. リケーションから使われるライブラリ類です。
  166. %package client
  167. Summary: CUPS printing system - client programs
  168. Group: publishing
  169. License: GPLv2
  170. Requires: %{name}-libs%{?_isa} = %{version}-%{release}
  171. %if %{use_alternatives}
  172. Provides: /usr/bin/lpq /usr/bin/lpr /usr/bin/lp /usr/bin/cancel /usr/bin/lprm /usr/bin/lpstat
  173. Requires(pre): alternatives
  174. Requires(preun): alternatives
  175. %endif
  176. Provides: lpd lpr LPRng
  177. %description client
  178. CUPS printing system provides a portable printing layer for
  179. UNIX® operating systems. This package contains command-line client
  180. programs.
  181. %description client -l ja
  182.  CUPS printing systemはUNIX操作環境においてポータブルな印刷環境を
  183. 提供します。
  184.  このパッケージはコマンドラインクライアントプログラムを含んでいま
  185. す。
  186. %package lpd
  187. Summary: CUPS printing system - lpd emulation
  188. Group: servers
  189. Requires: %{name}%{?_isa} = %{version}-%{release}
  190. Requires: %{name}-libs%{?_isa} = %{version}-%{release}
  191. Provides: lpd
  192. %if %{with systemd}
  193. %{?systemd_requires}
  194. %else
  195. Requires: xinetd
  196. %endif
  197. %description lpd
  198. CUPS printing system provides a portable printing layer for
  199. UNIX® operating systems. This is the package that provides standard
  200. lpd emulation.
  201. %description lpd -l ja
  202.  CUPS printing systemはUNIX操作環境においてポータブルな印刷環境を
  203. 提供します。
  204.  このパッケージは標準的なlpdエミュレーションを提供します。
  205. %package -n compat32-%{name}-libs
  206. Summary: Common Unix Printing System - libraries
  207. Group: system,legacy
  208. %description -n compat32-%{name}-libs
  209. CUPS printing system provides a portable printing layer for
  210. UNIX® operating systems. It has been developed by Apple Inc.
  211. to promote a standard printing solution for all UNIX vendors and users.
  212. CUPS provides the System V and Berkeley command-line interfaces.
  213. The cups-libs package provides libraries used by applications to use CUPS
  214. natively, without needing the lp/lpr commands.
  215. %description -n compat32-%{name}-libs -l ja
  216.  CUPS printing systemはUNIX操作環境においてポータブルな印刷環境を提供
  217. します。CUPSは全てのUNIXベンダーやユーザのために標準的な印刷ソリューショ
  218. ンを提供するためにApple Inc.により開発されました。
  219.  CUPSはSystem VやBerkeleyコマンドラインのインターフェースを提供します。
  220.  cups-libsパッケージはlp/lprコマンドを必要としないCUPSネイティブなアプリ
  221. ケーションから使われるライブラリ類です。
  222. %package -n compat32-%{name}-devel
  223. Summary: Common Unix Printing System - development environment
  224. Group: programming,legacy
  225. Requires: compat32-%{name}-libs = %{version}-%{release}
  226. Requires: %{name}-devel = %{version}-%{release}
  227. Requires: compat32-e2fsprogs-devel
  228. Requires: compat32-gnutls-devel
  229. Requires: compat32-krb5-devel
  230. Requires: compat32-zlib-devel
  231. %description -n compat32-%{name}-devel
  232. CUPS printing system provides a portable printing layer for
  233. UNIX. operating systems. This is the development package for creating
  234. additional printer drivers, and other CUPS services.
  235. %description -n compat32-%{name}-devel -l ja
  236.  CUPS printing systemはUNIX操作環境においてポータブルな印刷環境を提供
  237. します。
  238.  このパッケージはプリンタドライバを追加したり他のCUPSサービスを開発す
  239. るためのパッケージです。
  240. %debug_package
  241. %prep
  242. %setup -q -n %{name}-%{version}
  243. # Use the system pam configuration.
  244. %patch -P 1 -p1 -b .system-auth
  245. # Prevent multilib conflict in cups-config script.
  246. %patch -P 2 -p1 -b .multilib
  247. # Ignore rpm save/new files in the banners directory.
  248. %patch -P 3 -p1 -b .banners
  249. # Don't export SSLLIBS to cups-config.
  250. %patch -P 4 -p1 -b .no-export-ssllibs
  251. # Allow file-based usb device URIs.
  252. %patch -P 5 -p1 -b .direct-usb
  253. # Increase driverd timeout to 70s to accommodate foomatic (bug #744715).
  254. %patch -P 6 -p1 -b .driverd-timeout
  255. # Support for errno==ENOSPACE-based USB paper-out reporting.
  256. %patch -P 7 -p1 -b .usb-paperout
  257. # Allow the usb backend to understand old-style URI formats.
  258. %patch -P 8 -p1 -b .uri-compat
  259. # Use IP_FREEBIND socket option when binding listening sockets (bug #970809).
  260. %patch -P 9 -p1 -b .freebind
  261. # Fixes for jobs with multiple files and multiple formats.
  262. %patch -P 10 -p1 -b .ipp-multifile
  263. # Increase web interface get-devices timeout to 10s (bug #996664).
  264. %patch -P 11 -p1 -b .web-devices-timeout
  265. # Add failover backend (bug #1689209)
  266. %patch -P 12 -p1 -b .failover
  267. # Added IEEE 1284 Device ID for a Dymo device (bug #747866).
  268. %patch -P 13 -p1 -b .dymo-deviceid
  269. # UPSTREAM PATCHES
  270. # 2218124 - The command "cancel -x <job>" does not remove job files
  271. %patch -P 1001 -p1 -b .purge-job
  272. %if %{?lspp}0
  273. # LSPP support.
  274. %patch100 -p1 -b .lspp
  275. %endif
  276. # make to use cjktexttops instead texttops.
  277. perl -pi -e 's/texttops$/cjktexttops/' conf/mime.convs.in
  278. %if %{with systemd}
  279. # Log to the system journal by default (bug #1078781, bug #1519331).
  280. sed -i -e 's,^ErrorLog .*$,ErrorLog syslog,' conf/cups-files.conf.in
  281. sed -i -e 's,^AccessLog .*$,AccessLog syslog,' conf/cups-files.conf.in
  282. sed -i -e 's,^PageLog .*,PageLog syslog,' conf/cups-files.conf.in
  283. %else
  284. # if cupsd is set to log into /var/log/cups, then 'MaxLogSize 0' needs to be
  285. # in cupsd.conf to disable cupsd logrotate functionality and use logrotated
  286. sed -i -e '1iMaxLogSize 0' conf/cupsd.conf.in
  287. %endif
  288. perl -pi -e 's,^#(DefaultCharset\s)utf-8,$1notused,' conf/cupsd.conf.in
  289. perl -pi -e 's,^#(Printcap\s+/etc/printcap),$1,' conf/cupsd.conf.in
  290. perl -pi -e 's,exec_prefix/lib/cups,exec_prefix/%{_lib}/cups,' config-scripts/cups-directories.m4
  291. autoconf
  292. cp %{SOURCE5} cups-lpd.real
  293. perl -pi -e "s,\@LIBDIR\@,%{_libdir},g" cups-lpd.real
  294. # Add group wheel to SystemGroups (bug #1405669)
  295. sed -i -e 's,^SystemGroup .*$, SystemGroup sys root wheel,' conf/cups-files.conf.in
  296. # Let's look at the compilation command lines.
  297. perl -pi -e "s,^.SILENT:,," Makedefs.in
  298. f=CREDITS.md
  299. mv "$f" "$f"~
  300. iconv -f MACINTOSH -t UTF-8 "$f"~ > "$f"
  301. rm "$f"~
  302. # Rebuild configure script for --enable-avahi.
  303. aclocal -I config-scripts
  304. autoconf -I config-scripts
  305. %build
  306. export DSOFLAGS="$DSOFLAGS $RPM_LD_FLAGS"
  307. export CFLAGS="$CFLAGS $RPM_OPT_FLAGS -DLDAP_DEPRECATED=1"
  308. export CXXFLAGS="$CXXFLAGS $RPM_OPT_FLAGS -DLDAP_DEPRECATED=1"
  309. # --enable-debug to avoid stripping binaries
  310. %configure --with-docdir=%{_datadir}/%{name}/www --enable-debug \
  311. --enable-page-logging \
  312. --enable-relro \
  313. --enable-sync-on-close \
  314. --enable-webif \
  315. --with-access-log-level=actions \
  316. --with-cupsd-file-perm=0755 \
  317. --with-dbusdir=%{_sysconfdir}/dbus-1 \
  318. --with-dnssd=avahi \
  319. --with-log-file-perm=0600 \
  320. --with-pkgconfpath=%{_libdir}/pkgconfig \
  321. %if %{with systemd}
  322. --with-rundir=/run/cups \
  323. --with-ondemand=systemd \
  324. --with-xinetd=no \
  325. %endif
  326. --with-tls=gnutls \
  327. %if 0%{?rhel}
  328. --without-idle-exit-timeout \
  329. --without-systemd-timeoutstartsec \
  330. %endif
  331. --localedir=%{_datadir}/locale \
  332. --with-pdftops=pdftops \
  333. --disable-slp
  334. # If we got this far, all prerequisite libraries must be here.
  335. make %{?_smp_mflags}
  336. %install
  337. rm -rf %{buildroot}
  338. make BUILDROOT=%{buildroot} install
  339. rm -rf %{buildroot}%{initdir} \
  340. %{buildroot}%{_sysconfdir}/init.d \
  341. %{buildroot}%{_sysconfdir}/rc?.d
  342. %if ! %{with systemd}
  343. mkdir -p %{buildroot}%{initdir}
  344. install -m 755 %{SOURCE1} %{buildroot}%{initdir}/cups
  345. %endif
  346. find %{buildroot}%{_datadir}/cups/model -name "*.ppd" |xargs gzip -n9f
  347. pushd %{buildroot}%{_datadir}/%{name}/ipptool
  348. for file in color.jpg document-a4.pdf document-a4.ps document-letter.pdf document-letter.ps gray.jpg onepage-a4.pdf onepage-a4.ps onepage-letter.pdf onepage-letter.ps testfile.jpg testfile.pcl testfile.pdf testfile.ps testfile.txt
  349. do
  350. mv $file{,.gz}
  351. done
  352. popd
  353. %if %{use_alternatives}
  354. pushd %{buildroot}%{_bindir}
  355. for i in cancel lp lpq lpr lprm lpstat; do
  356. mv $i $i.cups
  357. done
  358. cd %{buildroot}%{_sbindir}
  359. mv lpc lpc.cups
  360. cd %{buildroot}%{_mandir}/man1
  361. for i in cancel lp lpq lpr lprm lpstat; do
  362. mv $i.1 $i-cups.1
  363. done
  364. cd %{buildroot}%{_mandir}/man8
  365. mv lpc.8 lpc-cups.8
  366. popd
  367. %endif
  368. mkdir -p %{buildroot}%{_datadir}/pixmaps %{buildroot}%{_sysconfdir}/X11/sysconfig %{buildroot}%{_sysconfdir}/X11/applnk/System %{buildroot}%{_sysconfdir}/xinetd.d %{buildroot}%{_sysconfdir}/logrotate.d %{buildroot}%{_sysconfdir}/cron.daily
  369. mkdir -p %{buildroot}%{_datadir}/pixmaps %{buildroot}%{_sysconfdir}/X11/sysconfig %{buildroot}%{_sysconfdir}/X11/applnk/System
  370. install -c -m 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps
  371. %if ! %{with systemd}
  372. install -c -m 644 cups-lpd.real %{buildroot}%{_sysconfdir}/xinetd.d/cups-lpd
  373. install -c -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/logrotate.d/cups
  374. %endif
  375. install -c -m 755 %{SOURCE8} %{buildroot}%{_sysconfdir}/cron.daily/cups
  376. install -c -m 755 %{SOURCE9} %{buildroot}%{_libdir}/cups/filter/textonly
  377. install -c -m 644 %{SOURCE10} %{buildroot}%{_datadir}/cups/model/textonly.ppd
  378. #install -c -m 644 %{SOURCE105} %{buildroot}%{_sysconfdir}/cups/pdftops.conf
  379. # Ship an rpm macro for where to put driver executables.
  380. mkdir -p %{buildroot}%{_sysconfdir}/rpm/
  381. install -m 0644 %{SOURCE11} %{buildroot}%{_sysconfdir}/rpm/
  382. # Ship a printers.conf file, and a client.conf file. That way, they get
  383. # their SELinux file contexts set correctly.
  384. touch %{buildroot}%{_sysconfdir}/cups/printers.conf
  385. touch %{buildroot}%{_sysconfdir}/cups/classes.conf
  386. touch %{buildroot}%{_sysconfdir}/cups/client.conf
  387. touch %{buildroot}%{_sysconfdir}/cups/subscriptions.conf
  388. # This is %%ghost'ed, but needs to be created in %%install anyway.
  389. touch %{buildroot}%{_sysconfdir}/cups/lpoptions
  390. # Tell portreserve which port we want it to protect.
  391. # mkdir -p %{buildroot}%{_sysconfdir}/portreserve
  392. # echo ipp > %{buildroot}%{_sysconfdir}/portreserve/%{name}
  393. # LSB 3.2 printer driver directory
  394. mkdir -p %{buildroot}%{_datadir}/ppd
  395. # Remove unshipped files.
  396. rm -rf %{buildroot}%{_mandir}/cat? %{buildroot}%{_mandir}/*/cat?
  397. rm -f %{buildroot}%{_datadir}/applications/cups.desktop
  398. rm -rf %{buildroot}%{_datadir}/icons
  399. # there are pdf-banners shipped with cups-filters (#919489)
  400. rm -rf %{buildroot}%{_datadir}/cups/banners
  401. rm -f %{buildroot}%{_datadir}/cups/data/testprint
  402. %if %{with systemd}
  403. # install /etc/tmpfiles.d/cups.conf (bug #656566)
  404. mkdir -p %{buildroot}%{_tmpfilesdir}
  405. cat > %{buildroot}%{_tmpfilesdir}/cups.conf <<EOF
  406. # See tmpfiles.d(5) for details
  407. d /run/cups 0755 root lp -
  408. d /run/cups/certs 0511 lp sys -
  409. d /var/spool/cups/tmp - - - 30d
  410. EOF
  411. # /usr/lib/tmpfiles.d/cups-lp.conf (bug #812641)
  412. cat > %{buildroot}%{_tmpfilesdir}/cups-lp.conf <<EOF
  413. # Legacy parallel port character device nodes, to trigger the
  414. # auto-loading of the kernel module on access.
  415. #
  416. # See tmpfiles.d(5) for details
  417. c /dev/lp0 0660 root lp - 6:0
  418. c /dev/lp1 0660 root lp - 6:1
  419. c /dev/lp2 0660 root lp - 6:2
  420. c /dev/lp3 0660 root lp - 6:3
  421. EOF
  422. %endif
  423. find %{buildroot} -type f -o -type l | sed '
  424. s:.*\('%{_datadir}'/\)\([^/_]\+\)\(.*\.po$\):%lang(\2) \1\2\3:
  425. /^%lang(C)/d
  426. /^\([^%].*\)/d
  427. ' > %{name}.lang
  428. # Ship a PCL XL/PCL 6 filter file from ESP gs-7.07.1
  429. install -c -m 644 %{SOURCE206} %{buildroot}%{_datadir}/cups/model
  430. install -c -m 644 %{SOURCE207} %{buildroot}%{_datadir}/cups/model
  431. # Ship a dvitops
  432. install -c -m 755 %{SOURCE201} %{buildroot}%{_libdir}/cups/filter
  433. install -c -m 644 %{SOURCE202} %{buildroot}%{_sysconfdir}/cups
  434. install -c -m 644 %{SOURCE203} %{buildroot}%{_sysconfdir}/cups
  435. # Ship a cjktexttops (import from mdv)
  436. install -c -m 755 %{SOURCE204} %{buildroot}%{_libdir}/cups/filter/
  437. # disable imagetoraster.
  438. perl -pi -e 's/^(image.+imagetoraster)/#$1/g' %{buildroot}/usr/share/cups/mime/mime.convs
  439. #install -c -m 644 conf/mime.types %{buildroot}%{_sysconfdir}/cups/mime.types
  440. #install -c -m 644 conf/mime.convs %{buildroot}%{_sysconfdir}/cups/mime.convs
  441. %triggerpostun -- cups < 1.4.8
  442. %ifarch x86_64
  443. echo "moving 32bit binaries to /usr/lib ..."
  444. if [ "$1" -gt 1 ]; then
  445. for f in `find /usr/lib64/cups/ -type f`; do
  446. file $f | grep ' ELF 32-bit ' >/dev/null 2>&1
  447. if [ "$?" = "0" ]; then
  448. DEST=`echo $f | sed -e 's/^\/usr\/lib64/\/usr\/lib/'`
  449. mv -f $f $DEST
  450. fi
  451. done
  452. fi
  453. %endif
  454. %pre
  455. %ifarch x86_64
  456. if [ -L /usr/lib/cups ]; then
  457. rm -f /usr/lib/cups
  458. fi
  459. %endif
  460. %post
  461. %if %{with systemd}
  462. %systemd_post %{name}.path %{name}.socket %{name}.service
  463. # Previous migration script unnecessarily put PageLogFormat into cups-files.conf
  464. # (see bug #1148995)
  465. FILE=%{_sysconfdir}/cups/cups-files.conf
  466. for keyword in PageLogFormat; do
  467. /bin/sed -i -e "s,^$keyword,#$keyword,i" "$FILE" || :
  468. done
  469. # Because of moving logs to journal, we need to create placeholder files
  470. # at /var/log/cups for users, whose are going to install CUPS on new OS
  471. # machine with info message
  472. confignames=( "ErrorLog" "AccessLog" "PageLog" )
  473. lognames=( "error_log" "access_log" "page_log" )
  474. message="This CUPS log has been moved into journal by default unless changes have been made in /etc/cups/cups-files.conf. Log messages can be got by \"$ journalctl -u cups -e\""
  475. for ((i=0;i<${#confignames[@]};i++));
  476. do
  477. found=`/bin/grep -i "${confignames[i]} syslog" /etc/cups/cups-files.conf`
  478. if [ ! -z "$found" ]
  479. then
  480. if [ ! -f %{_localstatedir}/log/cups/${lognames[i]} ]
  481. then
  482. touch %{_localstatedir}/log/cups/${lognames[i]} || :
  483. fi
  484. perms=`ls -lah %{_localstatedir}/log/cups/${lognames[i]} | /bin/grep -v -e "\-rw-------" -e "root lp"`
  485. if [ ! -z "$perms" ]
  486. then
  487. # we need to set correct permissions and ownership because of possible
  488. # security issues
  489. # we need to have it here, because previous CUPS releases had the bug.
  490. # Checking permissions and ownership here fixes it.
  491. chown root:lp %{_localstatedir}/log/cups/${lognames[i]} || :
  492. chmod 600 %{_localstatedir}/log/cups/${lognames[i]} || :
  493. fi
  494. lastmessage=`%{_bindir}/tail -n 1 %{_localstatedir}/log/cups/${lognames[i]} | /bin/grep "$message"`
  495. if [ -z "$lastmessage" ]
  496. then
  497. echo $message >> %{_localstatedir}/log/cups/${lognames[i]} || :
  498. fi
  499. fi
  500. done
  501. %else
  502. /sbin/chkconfig --del cupsd 2>/dev/null || true # Make sure old versions aren't there anymore
  503. /sbin/chkconfig --add cups || true
  504. %endif
  505. # Remove old-style certs directory; new-style is /var/run
  506. # (see bug #194581 for why this is necessary).
  507. /bin/rm -rf /etc/cups/certs
  508. rm -f %{_localstatedir}/cache/cups/*.ipp %{_localstatedir}/cache/cups/*.cache
  509. %if !%{with systemd}
  510. if [ $1 -eq 1 ]; then
  511. # First install. Build ppds.dat.
  512. /sbin/service cups reload >/dev/null 2>&1 || :
  513. fi
  514. exit 0
  515. %endif
  516. %post client
  517. %if %{use_alternatives}
  518. /sbin/update-alternatives --install %{_bindir}/lpr print %{_bindir}/lpr.cups 40 \
  519. --slave %{_bindir}/lp print-lp %{_bindir}/lp.cups \
  520. --slave %{_bindir}/lpq print-lpq %{_bindir}/lpq.cups \
  521. --slave %{_bindir}/lprm print-lprm %{_bindir}/lprm.cups \
  522. --slave %{_bindir}/lpstat print-lpstat %{_bindir}/lpstat.cups \
  523. --slave %{_bindir}/cancel print-cancel %{_bindir}/cancel.cups \
  524. --slave %{_sbindir}/lpc print-lpc %{_sbindir}/lpc.cups \
  525. --slave %{_mandir}/man1/cancel.1.gz print-cancelman %{_mandir}/man1/cancel-cups.1.gz \
  526. --slave %{_mandir}/man1/lp.1.gz print-lpman %{_mandir}/man1/lp-cups.1.gz \
  527. --slave %{_mandir}/man8/lpc.8.gz print-lpcman %{_mandir}/man8/lpc-cups.8.gz \
  528. --slave %{_mandir}/man1/lpq.1.gz print-lpqman %{_mandir}/man1/lpq-cups.1.gz \
  529. --slave %{_mandir}/man1/lpr.1.gz print-lprman %{_mandir}/man1/lpr-cups.1.gz \
  530. --slave %{_mandir}/man1/lprm.1.gz print-lprmman %{_mandir}/man1/lprm-cups.1.gz \
  531. --slave %{_mandir}/man1/lpstat.1.gz print-lpstatman %{_mandir}/man1/lpstat-cups.1.gz
  532. %endif
  533. %if %{with systemd}
  534. %post lpd
  535. %systemd_post cups-lpd.socket
  536. exit 0
  537. %endif
  538. %preun
  539. %if %{with systemd}
  540. %systemd_preun %{name}.path %{name}.socket %{name}.service
  541. %else
  542. if [ "$1" = "0" -o -x /bin/systemctl ]; then
  543. /sbin/service cups stop > /dev/null 2>&1
  544. /sbin/chkconfig --del cups
  545. fi
  546. exit 0
  547. %endif
  548. %preun client
  549. %if %{use_alternatives}
  550. if [ $1 -eq 0 ] ; then
  551. /usr/sbin/alternatives --remove print %{_bindir}/lpr.cups
  552. fi
  553. %endif
  554. exit 0
  555. %if %{with systemd}
  556. %preun lpd
  557. %systemd_preun cups-lpd.socket
  558. exit 0
  559. %endif
  560. %if %{with systemd}
  561. %postun
  562. %systemd_postun_with_restart %{name}.path %{name}.socket %{name}.service
  563. %endif
  564. if [ "$1" -ge "1" ]; then
  565. /sbin/service cups condrestart > /dev/null 2>&1
  566. fi
  567. exit 0
  568. %if %{with systemd}
  569. %postun lpd
  570. %systemd_postun_with_restart cups-lpd.socket
  571. exit 0
  572. %endif
  573. %triggerin -- samba-client
  574. ln -sf ../../../bin/smbspool %{_libdir}/cups/backend/smb || :
  575. exit 0
  576. %triggerun -- samba-client
  577. [ $2 = 0 ] || exit 0
  578. rm -f %{_libdir}/cups/backend/smb
  579. %files
  580. %defattr(-,root,root)
  581. %license LICENSE
  582. %license NOTICE
  583. %doc README.md CREDITS.md CHANGES.md
  584. %attr(0660,root,lp) %dev(char,6,0) /lib/udev/devices/lp0
  585. %attr(0660,root,lp) %dev(char,6,1) /lib/udev/devices/lp1
  586. %attr(0660,root,lp) %dev(char,6,2) /lib/udev/devices/lp2
  587. %attr(0660,root,lp) %dev(char,6,3) /lib/udev/devices/lp3
  588. %dir %attr(0755,root,lp) %{_sysconfdir}/cups
  589. %config(noreplace) %attr(0640,root,lp) %{_sysconfdir}/cups/cupsd.conf
  590. %attr(0640,root,lp) %{_sysconfdir}/cups/cupsd.conf.default
  591. %config(noreplace) %attr(0600,root,lp) %{_sysconfdir}/cups/classes.conf
  592. %config(noreplace) %attr(0644,root,lp) %{_sysconfdir}/cups/client.conf
  593. %config(noreplace) %attr(0644,root,lp) %{_sysconfdir}/cups/cups-files.conf
  594. %config(noreplace) %attr(0644,root,lp) %{_sysconfdir}/cups/cups-files.conf.default
  595. #%config(noreplace) %attr(0644,root,lp) %{_sysconfdir}/cups/pdftops.conf
  596. %config(noreplace) %attr(0600,root,lp) %{_sysconfdir}/cups/printers.conf
  597. %config(noreplace) %attr(0644,root,lp) %{_sysconfdir}/cups/snmp.conf
  598. %config(noreplace) %attr(0644,root,lp) %{_sysconfdir}/cups/snmp.conf.default
  599. %config(noreplace) %attr(0644,root,lp) %{_sysconfdir}/cups/subscriptions.conf
  600. #config(noreplace) %{_sysconfdir}/cups/mime.types
  601. #config(noreplace) %{_sysconfdir}/cups/mime.convs
  602. #%config(noreplace) %{_sysconfdir}/cups/pstoraster.convs
  603. %config(noreplace) %{_sysconfdir}/cups/dvitops.types
  604. %config(noreplace) %{_sysconfdir}/cups/dvitops.convs
  605. %config(noreplace) %attr(0644,root,lp) %{_sysconfdir}/cups/lpoptions
  606. %dir %attr(0755,root,lp) %{_sysconfdir}/cups/ppd
  607. %dir %attr(0700,root,lp) %{_sysconfdir}/cups/ssl
  608. %config(noreplace) %{_sysconfdir}/pam.d/cups
  609. %if %{with systemd}
  610. %{_unitdir}/%{name}.service
  611. %{_unitdir}/%{name}.socket
  612. %{_unitdir}/%{name}.path
  613. %config(noreplace) %{_tmpfilesdir}/cups*.conf
  614. %else
  615. %config(noreplace) %{_sysconfdir}/logrotate.d/cups
  616. %config(noreplace) %{_sysconfdir}/xinetd.d/cups-lpd
  617. %dir %attr(0755,root,lp) /var/run/cups
  618. %dir %attr(0511,lp,sys) /var/run/cups/certs
  619. %config(noreplace) %{initdir}/cups
  620. %endif
  621. %{_bindir}/cupstestppd
  622. #{_bindir}/cupstestdsc
  623. %{_bindir}/ippfind
  624. %{_bindir}/ipptool
  625. %{_bindir}/ppd*
  626. %dir %{_libdir}/cups
  627. %{_libdir}/cups/backend
  628. %{_libdir}/cups/cgi-bin
  629. %dir %{_libdir}/cups/daemon
  630. %{_libdir}/cups/daemon/cups-exec
  631. %{_libdir}/cups/daemon/cups-deviced
  632. %{_libdir}/cups/daemon/cups-driverd
  633. %{_libdir}/cups/notifier
  634. %{_libdir}/cups/filter
  635. %{_libdir}/cups/monitor
  636. %{_libdir}/cups/driver
  637. %{_mandir}/man1/cups.1*
  638. %{_mandir}/man1/cupstest*
  639. %{_mandir}/man1/ipp*
  640. %{_mandir}/man1/ppd*
  641. %{_mandir}/man[578]/*
  642. %{_sbindir}/*
  643. %exclude %{_sbindir}/lpc.cups
  644. %{_datadir}/cups
  645. %{_datadir}/locale/*/*
  646. %{_datadir}/ppd
  647. %dir %attr(1770,root,lp) /var/spool/cups/tmp
  648. %dir %attr(0710,root,lp) /var/spool/cups
  649. %dir %attr(0755,lp,sys) /var/log/cups
  650. %{_datadir}/pixmaps/cupsprinter.png
  651. %{_sysconfdir}/cron.daily/cups
  652. %config(noreplace) %{_sysconfdir}/dbus-1/system.d/cups.conf
  653. %dir %{_libdir}/cups/command
  654. %{_libdir}/cups/command/ippevepcl
  655. %{_libdir}/cups/command/ippeveps
  656. %files libs
  657. %defattr(-,root,root)
  658. %license LICENSE
  659. %license NOTICE
  660. %{_libdir}/*.so.*
  661. %files devel
  662. %defattr(-,root,root)
  663. %{_bindir}/cups-config
  664. %{_libdir}/pkgconfig/*
  665. %{_libdir}/*.so
  666. %{_includedir}/cups
  667. %{_mandir}/man1/cups-config.1*
  668. %{_sysconfdir}/rpm/macros.cups
  669. %files client
  670. %{_sbindir}/lpc.cups
  671. %{_bindir}/cancel*
  672. %{_bindir}/lp*
  673. %{_mandir}/man1/lp*.1.gz
  674. %{_mandir}/man1/cancel-cups.1.gz
  675. %{_mandir}/man8/lpc-cups.8.gz
  676. %{_bindir}/ippeveprinter
  677. %{_mandir}/man1/ippeveprinter.1.gz
  678. %files lpd
  679. %defattr(-,root,root)
  680. %if %{with systemd}
  681. %{_unitdir}/cups-lpd.socket
  682. %{_unitdir}/cups-lpd@.service
  683. %endif
  684. %{_libdir}/cups/daemon/cups-lpd
  685. %{_mandir}/man8/cups-lpd.8.gz
  686. %if %{build_compat32}
  687. %files -n compat32-%{name}-devel
  688. %defattr(-,root,root)
  689. %{_libdir}/*.so
  690. %files -n compat32-%{name}-libs
  691. %license LICENSE
  692. %license NOTICE
  693. %defattr(-,root,root)
  694. %{_libdir}/*.so.*
  695. %endif
  696. %changelog
  697. * Tue Oct 03 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.7-1
  698. - new upstream release.
  699. - dropped to support 32bit drivers.
  700. * Sun Nov 08 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.3.3-2
  701. - shifted to OpenPrinting version.
  702. * Fri May 22 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.3.3-1
  703. - new upstream release.
  704. - added systemd support (disabled as default).
  705. - splitted the main package into 3 subpackages: cups, cups-client, cups-lpd.
  706. * Wed May 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.11-1
  707. - new upstream release.
  708. * Thu Jan 24 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.10-1
  709. - new upstream release.
  710. - dropped Patch10-11, 14, 17, 19-20, 27-28, 33-34 and 38.
  711. * Wed Jan 03 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.6-1
  712. - new upstream release.
  713. - replaced all patches from rawhide.
  714. - updated Patch102.
  715. * Wed Jun 29 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.4-2
  716. - rebuilt with new toolchain.
  717. * Thu Jun 16 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.4-1
  718. - new upstream release.
  719. * Sat May 14 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.3-3
  720. - changed R:openssl-devel in cups-devel to R:gnutls-devel.
  721. - added R:e2fsprogs-devel to cups-devel.
  722. * Tue May 10 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.3-2
  723. - rebuilt with gnutls.
  724. * Sat Feb 6 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.3-1
  725. - new upstream release.
  726. * Thu Dec 3 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.2-1
  727. - new upstream release.
  728. * Wed Dec 2 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.1-1
  729. - new upstream release.
  730. * Sun Oct 4 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.0-1
  731. - new upstream release.
  732. * Tue Jun 9 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.3-1
  733. - new upstream release.
  734. * Tue Feb 24 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.2-1
  735. - new upstream release.
  736. * Sun Oct 5 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.0-1
  737. - new upstream release.
  738. * Sun Jun 8 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.3-1
  739. - new upstream release.
  740. - removed Patch100 (fixed in upstream).
  741. * Tue Feb 11 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.1-1
  742. - new upstream release.
  743. * Sat Jan 04 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.0-1
  744. - new upstream release.
  745. * Tue Apr 17 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.8-6
  746. - modified initscript and added Patch104 to deal with wrong drivers.
  747. * Sun Feb 12 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.8-5
  748. - fixed %%changelog.
  749. * Sun Feb 12 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.8-4
  750. - removed /etc/cups/mime.{convs,types}.
  751. * Fri Feb 10 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.8-3
  752. - replaced some patches.
  753. - fixed to print splitted images (BTS:1217).
  754. * Sat Sep 10 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.8-2
  755. - added Patch103 to detect printers with 32bit drivers.
  756. * Thu Sep 08 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.8-1
  757. - new upstream release (against CVE-2011-2896).
  758. - added str3914.patch (against CVE-2011-3170).
  759. - updated patches.
  760. * Sun May 29 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.6-2
  761. - added Patch101.
  762. * Tue Mar 22 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.6-1
  763. - new upstream release.
  764. - dropped old patches.
  765. - shipped some patches from fedora development.
  766. * Sun Jul 4 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.11-6
  767. - add --disable-slp option in configure
  768. * Sun Jul 4 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.11-5
  769. - add Patch340 for fix CVE-2009-2820
  770. - add Patch350 for fix CVE-2009-3553
  771. - patch340,350 are from rhel5
  772. * Sun Jul 4 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.11-4
  773. - fix changelog typo
  774. - add Patch310 for fix CVE-2010-0540 (texttop)
  775. - add Patch320 for fix CVE-2010-0542 (web IF CSRF)
  776. - add Patch330 for fix CVE-2010-1748 (web IF uninit memory read)
  777. * Sun Mar 7 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.11-3
  778. - setuid 0 to lppasswd binary
  779. * Sat Mar 6 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.11-2
  780. - add Patch300 for fix CVE-2010-0393 (lppasswd)
  781. * Fri Jul 10 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.11-1
  782. - new upstream release
  783. * Sun Jun 28 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.3.10-2
  784. - Build requires krb5-devel.
  785. - The devel sub-package requires krb5-devel.
  786. * Thu Jun 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.10-1
  787. - new upstream release
  788. - remove LC_ALL from cjktexttops
  789. * Sat Apr 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.9-4
  790. - rebuild with openldap-2.4.11
  791. * Mon Mar 23 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.9-3
  792. - add /usr/lib/cups for 32bit binary drivers on x86_64.
  793. * Sat Jan 17 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.3.9-2
  794. - rebuild with gnutls-2.6.3
  795. * Wed Oct 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.9-1
  796. - new upstream release
  797. - renumber fedora patches
  798. - remove hal patch, hal backend module is now provided by hal-cups-utils
  799. * Mon Apr 21 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 1.3.7-2
  800. - remove libacl from dependency.
  801. * Fri Apr 18 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 1.3.7-1
  802. - new upstream release.
  803. - ship some patches from Fedora development.
  804. * Sun Aug 26 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.1.23-0vl13
  805. - add Patch300 and Patch310 for CVE-2007-0104 and CVE-2007-3387 respectively
  806. (same fixes for 1.1.23-0vl7.1 for Vine-4.1)
  807. * Sat May 26 2007 NAKAMURA Kenta <kenta@vinelinux.org> 1.1.23-0vl12
  808. - enabled Patch20: cups-gcc4.patch
  809. * Mon May 21 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.1.23-0vl11
  810. - always do %%configure on all archs (due to autoconf upgrade)
  811. * Thu May 17 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.23-0vl10
  812. - rebuild with new openssl
  813. * Thu May 03 2007 NAKAMURA Kenta <kenta@vinelinux.org> 1.1.23-0vl9
  814. - added compat32 subpackage for x86_64 arch support.
  815. * Sat Apr 28 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.23-0vl8
  816. - rebuild with dbus-1.0
  817. * Fri Oct 27 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.23-0vl7
  818. - add Patch50, Source20 to support hal backend.
  819. * Thu Jun 29 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.23-0vl6
  820. - add cjktexttops to use mpage for text-ps filter
  821. (Source18, Patch210)
  822. - mark mime.convs and mime.types as config file
  823. * Sat Mar 11 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.23-0vl5
  824. - add Patch43 for dbus support
  825. - add Patch200 to support UTF-8 ppd files
  826. * Wed Feb 15 2006 Shu KONNO <owa@bg.wakwak.com> 1.1.23-0vl4
  827. - fixed cups-link.patch of missing "-L../cups"
  828. - added %%configure for x86_64 architecture support
  829. * Sat Jan 28 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.23-0vl3
  830. - import some FC patches
  831. - fix several security bugs
  832. - CVS-2005-3625,CVS-2005-3626,CVS-2005-3627
  833. - CAN-2005-2097
  834. - CAN-2004-0888
  835. - CAN-2005-0064
  836. - apply upstream patches
  837. * Sun Mar 27 2005 Satoshi MACHINO <machino@vinelinux.org> 1.1.23-0vl2
  838. - added dvitops, dvitops.convs and dvitops.types
  839. * Tue Jan 04 2005 Satoshi MACHINO <machino@vinelinux.org> 1.1.23-0vl1
  840. - new upstream version(cups-1.1.23)
  841. - removed unused patches
  842. * Fri Dec 31 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.23-0vl0.1rc1
  843. - added cups-1.1.23rc1-scheduler_client.patch
  844. -- special thanks to kmuto@debian.org
  845. * Mon Dec 20 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.23-0vl0.0rc1
  846. - new upstream version (cups-1.1.23rc1)
  847. * Wed Nov 03 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.22-0vl1
  848. - new upstream version (cups-1.1.22)
  849. -- updated cups-resource-ja-1.1.22
  850. * Sun Oct 17 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.22-0vl0.0rc2
  851. - new upstream version (cups-1.1.22rc2)
  852. * Wed Oct 06 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.22-0vl0.0rc1
  853. - new upstream version (cups-1.1.22rc1)
  854. * Thu Sep 16 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.21-0vl1
  855. - new upstream version (cups-1.1.21)
  856. * Thu Aug 26 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.21-0vl0.1rc2
  857. - added some txt files in docdir
  858. * Wed Aug 25 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.21-0vl0.0rc2
  859. - new upstream version (cups-1.1.21rc2)
  860. - updated to cups-1.1.21rc2-makefile.patch(patch11)
  861. * Sun May 30 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.21-0vl0.0rc1
  862. - new upstream version (cups-1.1.21rc1)
  863. - updated cups-resource-ja-1.1.21.tar.bz2
  864. - updated ppdsdat.patch
  865. - dropped system-auth.patch
  866. * Fri Apr 23 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.20-0vl6
  867. - updated pstorater to v1.6
  868. * Sun Apr 18 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.20-0vl5
  869. - removed README.vine
  870. * Thu Apr 15 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.1.20-0vl4
  871. - rebuild
  872. * Wed Dec 10 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.20-0vl3
  873. - fixed DefaultCharset in cupsd.conf
  874. * Mon Dec 08 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.20-0vl2
  875. - added PCL XL/PCL 6 PPD and filter from ESP gs-7.07.1
  876. - updated pstoraster
  877. * Sun Dec 07 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.20-0vl1
  878. - new upstream version (cups-1.1.20)
  879. -- fixed resource-ja
  880. -- changed DefaultCharset in cupsd.conf
  881. -- removed patch100
  882. - raised update-alternatives's priority to 50
  883. * Sat Nov 15 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.19-0vl6
  884. - added Patch11 (cups-1.1.19-makefile.patch)
  885. -- fixed makefile
  886. - added resource-ja (imported from cups-1.2.x)
  887. - added Patch100(cups-1.1.19-lang-adhoc.patch)
  888. -- fixed "DefaultCharset EUC-JP" in cupsd.conf
  889. -- Don't fallback to C locale in setlocale()
  890. * Fri Nov 14 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.19-0vl5
  891. - merged to 1.1.20rc6 patch
  892. - dropped patches
  893. --cups-idefense-v2.patch, cups-1.1.17-sanity.patch
  894. - deleted needless dependence in Obsoletes
  895. * Thu Nov 13 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.19-0vl4
  896. - fixed init script for logrotation
  897. * Sun Oct 26 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.19-0vl3
  898. - fixed coding system in spec file
  899. - updated README.vine
  900. * Mon Jul 07 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.19-0vl2
  901. - added cups-1.1.17-sanity.patch
  902. - added Japanese descriptions
  903. * Fri Jun 06 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.19-0vl1
  904. - fixed spec file
  905. * Thu Jun 05 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.19-0vl0.1
  906. - new upstream vrsion
  907. - remade spec file
  908. * Sun May 18 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.19-0.rc5vl1
  909. -- disable D-BUS.
  910. - new upstream version
  911. - added some fixes. from cups-1.1.19-0.rc5.2
  912. -- disable D-BUS.
  913. -- Fix option parsing in lpq (bug #90823).
  914. -- No longer need error, sigchld patches.
  915. -- Ship cupstestppd.
  916. -- Mark banners as config files (bug #89069).
  917. * Fri Apr 18 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.18-0vl2
  918. - imported some patches from rawhide (cups-1.1.18-2)
  919. -- added cups-idefense-v2.patch
  920. -- added cups-1.1.17-pdftops.patch
  921. -- added cups-1.1.17-error.patch
  922. -- added cups-1.1.17-rcp.patch
  923. -- added cups-1.1.17-ppdsdat.patch
  924. -- added cups-1.1.17-sigchld.patch
  925. - Fix translation in the init script
  926. - Build ppds.dat on first install.
  927. - Use pkg-config information to find SSL libraries
  928. - Make 'service cups reload' update the configuration first
  929. - added README.vine
  930. * Sun Jan 05 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.18-0vl1
  931. - fixed alternative path
  932. * Fri Dec 27 2002 Satoshi MACHINO <machino@vinelinux.org> 1.1.18-0vl0
  933. - New upstream version
  934. - dropped patch4 (merged cups-1.1.18)
  935. - dropped epoch tag
  936. * Thu Dec 26 2002 Satoshi MACHINO <machino@vinelinux.org> 1.1.17-3vl0
  937. - build on Vine Linux
  938. * Tue Dec 10 2002 Tim Waugh <twaugh@redhat.com> 1.1.17-3
  939. - Fix cupsd startup hang (bug #79346).
  940. * Mon Dec 9 2002 Tim Waugh <twaugh@redhat.com> 1.1.17-2
  941. - Fix parallel backend behaviour when cancelling jobs.
  942. * Mon Dec 9 2002 Tim Waugh <twaugh@redhat.com> 1.1.17-1
  943. - 1.1.17.
  944. - No longer need libdir patch.
  945. - Fix logrotate script (bug #76791).
  946. * Wed Nov 20 2002 Tim Waugh <twaugh@redhat.com>
  947. - Build requires XFree86-devel (bug #78362).
  948. * Wed Nov 20 2002 Tim Waugh <twaugh@redhat.com>
  949. - 1.1.16.
  950. - Updated system-auth patch.
  951. - Add ncp backend script.
  952. * Wed Nov 13 2002 Tim Waugh <twaugh@redhat.com> 1.1.15-15
  953. - Set alternatives priority to 40.
  954. * Mon Nov 11 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.15-14
  955. - Buildrequire pam-devel.
  956. - Patch default PAM config file to remove directory names from module paths,
  957. allowing the configuration files to work equally well on multilib systems.
  958. - Patch default PAM config file to use system-auth, require the file at build-
  959. time because that's what data/Makefile checks for.
  960. * Fri Nov 8 2002 Tim Waugh <twaugh@redhat.com> 1.1.15-13
  961. - Use logrotate for log rotation (bug #76791).
  962. - No longer need cups.desktop, since redhat-config-printer handles it.
  963. * Thu Oct 17 2002 Tim Waugh <twaugh@redhat.com> 1.1.15-12
  964. - Revert to libdir for CUPS_SERVERBIN.
  965. * Thu Oct 17 2002 Tim Waugh <twaugh@redhat.com> 1.1.15-11
  966. - Use %%configure for multilib correctness.
  967. - Use libexec instead of lib for CUPS_SERVERBIN.
  968. - Ship translated man pages.
  969. - Remove unshipped files.
  970. - Fix file list permissions (bug #59021, bug #74738).
  971. - Fix messy initscript output (bug #65857).
  972. - Add 'reload' to initscript (bug #76114).
  973. * Fri Aug 30 2002 Bernhard Rosenkraenzer <bero@redhat.de> 1.1.15-10
  974. - Add generic postscript PPD file (#73061)
  975. * Mon Aug 19 2002 Tim Waugh <twaugh@redhat.com> 1.1.15-9
  976. - Fix prefix in pstoraster (bug #69573).
  977. * Mon Aug 19 2002 Tim Waugh <twaugh@redhat.com> 1.1.15-8
  978. - Disable cups-lpd by default (bug #71712).
  979. - No need for fread patch now that glibc is fixed.
  980. * Thu Aug 15 2002 Tim Waugh <twaugh@redhat.com> 1.1.15-7
  981. - Really add cups-lpd xinetd file (bug #63919).
  982. - Ship pstoraster (bug #69573).
  983. - Prevent fread from trying to read from beyond EOF (fixes a segfault
  984. with new glibc).
  985. * Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com> 1.1.15-6
  986. - rebuilt with gcc-3.2 (we hope)
  987. * Mon Aug 5 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.15-5
  988. - Add cups-lpd xinetd file (#63919)
  989. * Tue Jul 23 2002 Florian La Roche <Florian.LaRoche@redhat.de> 1.1.15-4
  990. - add a "exit 0" to postun script
  991. * Tue Jul 2 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.15-3
  992. - Add a symlink /usr/share/cups/doc -> /usr/share/doc/cups-devel-1.1.15
  993. because some applications expect to find the cups docs in
  994. /usr/share/cups/doc
  995. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  996. - automated rebuild
  997. * Fri Jun 21 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.15-1
  998. - 1.1.15-1
  999. - Fix up smb printing trigger (samba-client, not samba-clients)
  1000. - Start cupsd earlier, apparently it needs to be running before samba
  1001. starts up for smb printing to work.
  1002. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  1003. - automated rebuild
  1004. * Tue May 7 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.14-17
  1005. - Rebuild in current environment
  1006. - [-16 never existed because of build system breakage]
  1007. * Wed Apr 17 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.14-15
  1008. - Fix bug #63387
  1009. * Mon Apr 15 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.14-14
  1010. - Fix dangling symlink created by samba-clients trigger
  1011. * Wed Apr 10 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.14-13
  1012. - Add desktop file and icon for CUPS configuration
  1013. * Wed Apr 3 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.14-12
  1014. - Support SMB printing (#62407)
  1015. - Add HTML redirections to doc files to work around users mistaking
  1016. /usr/share/doc/cups-1.1.14 for the web frontend (#62405)
  1017. * Tue Apr 2 2002 Bill Nottingham <notting@redhat.com> 1.1.14-11
  1018. - fix subsys in initscript (#59206)
  1019. - don't strip binaries
  1020. * Mon Mar 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.14-10
  1021. - Make initscript use killproc instead of killall
  1022. * Fri Mar 8 2002 Bill Nottingham <notting@redhat.com> 1.1.14-9
  1023. - use alternatives --initscript support
  1024. * Mon Mar 4 2002 Bill Nottingham <notting@redhat.com> 1.1.14-8
  1025. - use the right path for the lpc man page, duh
  1026. * Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 1.1.14-7
  1027. - lpc man page is alternative too
  1028. - run ldconfig in -libs %post/%postun, not main
  1029. - remove alternatives in %preun
  1030. * Wed Feb 27 2002 Bill Nottingham <notting@redhat.com> 1.1.14-6
  1031. - don't source /etc/sysconfig/network in cups.init, we don't use any
  1032. values from it
  1033. * Tue Feb 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.14-4
  1034. - Fix bugs #60220 and #60352
  1035. * Thu Feb 21 2002 Tim Powers <timp@redhat.com>
  1036. - rebuild against correct version of openssl (0.9.6b)
  1037. * Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.14-2
  1038. - Add all man pages to alternatives (#59943)
  1039. - Update to real 1.1.14
  1040. * Tue Feb 12 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.14-1
  1041. - Update to almost-1.1.14
  1042. * Mon Feb 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.13-5
  1043. - Move cups-config to cups-devel subpackage
  1044. - Make alternatives usage a %%define to simplify builds for earlier
  1045. releases
  1046. - Explicitly provide things we're supplying through alternatives
  1047. to shut up kdeutils dependencies
  1048. * Tue Feb 5 2002 Tim Powers <timp@redhat.com>
  1049. - shut the alternatives stuff up for good
  1050. * Fri Feb 1 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.13-3
  1051. - Fix alternatives stuff
  1052. - Don't display error messages in %%post
  1053. * Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.13-2
  1054. - alternatives stuff
  1055. * Tue Jan 29 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.13-1
  1056. - 1.1.13
  1057. - Add patch for koi8-{r,u} and iso8859-8 encodings (#59018)
  1058. - Rename init scripts so we can safely "killall cupsd" from there
  1059. * Sat Jan 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.12-1
  1060. - Initial (conflicting, since alternatives isn't there yet) packaging for
  1061. Red Hat Linux
  1062. * Sat Jan 19 2002 Bernhard Rosenkraenzer <bero@redhat.com>
  1063. - 1.1.12
  1064. * Mon Nov 5 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.10-3
  1065. - Compress PPD files
  1066. - Fix build with gcc 3.1
  1067. - Fix init script
  1068. * Tue Sep 4 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.10-2
  1069. - Fix URL
  1070. - Generate printcap
  1071. - s/Copyright/License/g
  1072. * Tue Sep 4 2001 Than Ngo <than@redhat.com> 1.1.10-1
  1073. - update to 1.1.10-1 for ExtraBinge 7.2
  1074. * Tue May 29 2001 Michael Stefaniuc <mstefani@redhat.com>
  1075. - update to 1.1.8
  1076. - changed cupsd.conf to generate /etc/printcap
  1077. * Tue May 15 2001 Than Ngo <than@redhat.com>
  1078. - update to 1.1.7, bugfixes
  1079. * Thu Dec 14 2000 Than Ngo <than@redhat.com>
  1080. - fixed package dependency with lpr and LPRng
  1081. * Wed Oct 25 2000 Than Ngo <than@redhat.com>
  1082. - remove man/cat
  1083. * Tue Oct 24 2000 Than Ngo <than@redhat.com>
  1084. - don't start cupsd service in level 0, fixed
  1085. * Thu Oct 19 2000 Than Ngo <than@redhat.com>
  1086. - update to 1.1.4
  1087. - fix CUPS_DOCROOT (Bug #18717)
  1088. * Fri Aug 11 2000 Than Ngo <than@redhat.de>
  1089. - update to 1.1.2 (Bugfix release)
  1090. * Fri Aug 4 2000 Than Ngo <than@redhat.de>
  1091. - fix, cupsd read config file under /etc/cups (Bug #15432)
  1092. - add missing cups filters
  1093. * Wed Aug 2 2000 Tim Powers <timp@redhat.com>
  1094. - rebuilt against libpng-1.0.8
  1095. * Tue Aug 01 2000 Than Ngo <than@redhat.de>
  1096. - fix permission, add missing ldconfig in %post and %postun (Bug #14963)
  1097. * Sat Jul 29 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  1098. - 1.1.1 (this has some major bugfixes)
  1099. - Fix a typo in initscript (it's $?, not ?$)
  1100. - Fix /usr/etc vs. /etc trouble, don't insist on /usr/var (YUCK!)
  1101. - Create the spool dir
  1102. * Fri Jul 28 2000 Than Ngo <than@redhat.de>
  1103. - fix unclean code for building against gcc-2.96
  1104. - add missing restart function in startup script
  1105. * Fri Jul 28 2000 Tim Powers <timp@redhat.com>
  1106. - fixed initscript so that conrestart doesn't return 1 if the test fails
  1107. * Mon Jul 24 2000 Prospector <prospector@redhat.com>
  1108. - rebuilt
  1109. * Wed Jul 19 2000 Than Ngo <than@redhat.de>
  1110. - using service to fire them up
  1111. - fix Prereq section
  1112. * Mon Jul 17 2000 Tim Powers <timp@redhat.com>
  1113. - added defattr to the devel package
  1114. * Sun Jul 16 2000 Than Ngo <than@redhat.de>
  1115. - add cups config files
  1116. * Sat Jul 15 2000 Than Ngo <than@redhat.de>
  1117. - update to 1.1 release
  1118. - move back to /etc/rc.d/init.d
  1119. - fix cupsd.init to work with /etc/init.d and /etc/rc.d/init.d
  1120. - split cups
  1121. * Wed Jul 12 2000 Than Ngo <than@redhat.de>
  1122. - rebuilt
  1123. * Thu Jul 06 2000 Tim Powers <timp@redhat.com>
  1124. - fixed broken PreReq to now require /etc/init.d
  1125. * Tue Jun 27 2000 Tim Powers <timp@redhat.com>
  1126. - PreReq initscripts >= 5.20
  1127. * Mon Jun 26 2000 Tim Powers <timp@redhat.com>
  1128. - started changelog
  1129. - fixed init.d script location
  1130. - changed script in init.d quite a bit and made more like the rest of our
  1131. startup scripts