cups-vl.spec 46 KB

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