cups-vl.spec 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418
  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.12
  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. %{_unitdir}/system-cups.slice
  611. %config(noreplace) %{_tmpfilesdir}/cups*.conf
  612. %else
  613. %config(noreplace) %{_sysconfdir}/logrotate.d/cups
  614. %config(noreplace) %{_sysconfdir}/xinetd.d/cups-lpd
  615. %dir %attr(0755,root,lp) /var/run/cups
  616. %dir %attr(0511,lp,sys) /var/run/cups/certs
  617. %config(noreplace) %{initdir}/cups
  618. %endif
  619. %{_bindir}/cupstestppd
  620. #{_bindir}/cupstestdsc
  621. %{_bindir}/ippfind
  622. %{_bindir}/ipptool
  623. %{_bindir}/ppd*
  624. %dir %{_libdir}/cups
  625. %{_libdir}/cups/backend
  626. %{_libdir}/cups/cgi-bin
  627. %dir %{_libdir}/cups/daemon
  628. %{_libdir}/cups/daemon/cups-exec
  629. %{_libdir}/cups/daemon/cups-deviced
  630. %{_libdir}/cups/daemon/cups-driverd
  631. %{_libdir}/cups/notifier
  632. %{_libdir}/cups/filter
  633. %{_libdir}/cups/monitor
  634. %{_libdir}/cups/driver
  635. %{_mandir}/man1/cups.1*
  636. %{_mandir}/man1/cupstest*
  637. %{_mandir}/man1/ipp*
  638. %{_mandir}/man1/ppd*
  639. %{_mandir}/man[578]/*
  640. %{_sbindir}/*
  641. %exclude %{_sbindir}/lpc.cups
  642. %{_datadir}/cups
  643. %{_datadir}/locale/*/*
  644. %{_datadir}/ppd
  645. %dir %attr(1770,root,lp) /var/spool/cups/tmp
  646. %dir %attr(0710,root,lp) /var/spool/cups
  647. %dir %attr(0755,lp,sys) /var/log/cups
  648. %{_datadir}/pixmaps/cupsprinter.png
  649. %{_sysconfdir}/cron.daily/cups
  650. %config(noreplace) %{_sysconfdir}/dbus-1/system.d/cups.conf
  651. %dir %{_libdir}/cups/command
  652. %{_libdir}/cups/command/ippevepcl
  653. %{_libdir}/cups/command/ippeveps
  654. %files libs
  655. %defattr(-,root,root)
  656. %license LICENSE
  657. %license NOTICE
  658. %{_libdir}/*.so.*
  659. %files devel
  660. %defattr(-,root,root)
  661. %{_bindir}/cups-config
  662. %{_libdir}/pkgconfig/*
  663. %{_libdir}/*.so
  664. %{_includedir}/cups
  665. %{_mandir}/man1/cups-config.1*
  666. %{_sysconfdir}/rpm/macros.cups
  667. %files client
  668. %{_sbindir}/lpc.cups
  669. %{_bindir}/cancel*
  670. %{_bindir}/lp*
  671. %{_mandir}/man1/lp*.1.gz
  672. %{_mandir}/man1/cancel-cups.1.gz
  673. %{_mandir}/man8/lpc-cups.8.gz
  674. %{_bindir}/ippeveprinter
  675. %{_mandir}/man1/ippeveprinter.1.gz
  676. %files lpd
  677. %defattr(-,root,root)
  678. %if %{with systemd}
  679. %{_unitdir}/cups-lpd.socket
  680. %{_unitdir}/cups-lpd@.service
  681. %endif
  682. %{_libdir}/cups/daemon/cups-lpd
  683. %{_mandir}/man8/cups-lpd.8.gz
  684. %if %{build_compat32}
  685. %files -n compat32-%{name}-devel
  686. %defattr(-,root,root)
  687. %{_libdir}/*.so
  688. %files -n compat32-%{name}-libs
  689. %license LICENSE
  690. %license NOTICE
  691. %defattr(-,root,root)
  692. %{_libdir}/*.so.*
  693. %endif
  694. %changelog
  695. * Wed Apr 9 2025 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.12-1
  696. - new upstream release.
  697. * Fri Oct 04 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.11-1
  698. - new upstream release.
  699. * Tue Jun 18 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.10-1
  700. - new upstream release.
  701. * Wed Jun 12 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.9-1
  702. - new upstream release.
  703. * Tue Oct 03 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.7-1
  704. - new upstream release.
  705. - dropped to support 32bit drivers.
  706. * Sun Nov 08 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.3.3-2
  707. - shifted to OpenPrinting version.
  708. * Fri May 22 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.3.3-1
  709. - new upstream release.
  710. - added systemd support (disabled as default).
  711. - splitted the main package into 3 subpackages: cups, cups-client, cups-lpd.
  712. * Wed May 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.11-1
  713. - new upstream release.
  714. * Thu Jan 24 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.10-1
  715. - new upstream release.
  716. - dropped Patch10-11, 14, 17, 19-20, 27-28, 33-34 and 38.
  717. * Wed Jan 03 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.6-1
  718. - new upstream release.
  719. - replaced all patches from rawhide.
  720. - updated Patch102.
  721. * Wed Jun 29 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.4-2
  722. - rebuilt with new toolchain.
  723. * Thu Jun 16 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.4-1
  724. - new upstream release.
  725. * Sat May 14 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.3-3
  726. - changed R:openssl-devel in cups-devel to R:gnutls-devel.
  727. - added R:e2fsprogs-devel to cups-devel.
  728. * Tue May 10 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.3-2
  729. - rebuilt with gnutls.
  730. * Sat Feb 6 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.3-1
  731. - new upstream release.
  732. * Thu Dec 3 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.2-1
  733. - new upstream release.
  734. * Wed Dec 2 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.1-1
  735. - new upstream release.
  736. * Sun Oct 4 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.0-1
  737. - new upstream release.
  738. * Tue Jun 9 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.3-1
  739. - new upstream release.
  740. * Tue Feb 24 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.2-1
  741. - new upstream release.
  742. * Sun Oct 5 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.0-1
  743. - new upstream release.
  744. * Sun Jun 8 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.3-1
  745. - new upstream release.
  746. - removed Patch100 (fixed in upstream).
  747. * Tue Feb 11 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.1-1
  748. - new upstream release.
  749. * Sat Jan 04 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.0-1
  750. - new upstream release.
  751. * Tue Apr 17 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.8-6
  752. - modified initscript and added Patch104 to deal with wrong drivers.
  753. * Sun Feb 12 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.8-5
  754. - fixed %%changelog.
  755. * Sun Feb 12 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.8-4
  756. - removed /etc/cups/mime.{convs,types}.
  757. * Fri Feb 10 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.8-3
  758. - replaced some patches.
  759. - fixed to print splitted images (BTS:1217).
  760. * Sat Sep 10 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.8-2
  761. - added Patch103 to detect printers with 32bit drivers.
  762. * Thu Sep 08 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.8-1
  763. - new upstream release (against CVE-2011-2896).
  764. - added str3914.patch (against CVE-2011-3170).
  765. - updated patches.
  766. * Sun May 29 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.6-2
  767. - added Patch101.
  768. * Tue Mar 22 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.6-1
  769. - new upstream release.
  770. - dropped old patches.
  771. - shipped some patches from fedora development.
  772. * Sun Jul 4 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.11-6
  773. - add --disable-slp option in configure
  774. * Sun Jul 4 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.11-5
  775. - add Patch340 for fix CVE-2009-2820
  776. - add Patch350 for fix CVE-2009-3553
  777. - patch340,350 are from rhel5
  778. * Sun Jul 4 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.11-4
  779. - fix changelog typo
  780. - add Patch310 for fix CVE-2010-0540 (texttop)
  781. - add Patch320 for fix CVE-2010-0542 (web IF CSRF)
  782. - add Patch330 for fix CVE-2010-1748 (web IF uninit memory read)
  783. * Sun Mar 7 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.11-3
  784. - setuid 0 to lppasswd binary
  785. * Sat Mar 6 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.11-2
  786. - add Patch300 for fix CVE-2010-0393 (lppasswd)
  787. * Fri Jul 10 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.11-1
  788. - new upstream release
  789. * Sun Jun 28 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.3.10-2
  790. - Build requires krb5-devel.
  791. - The devel sub-package requires krb5-devel.
  792. * Thu Jun 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.10-1
  793. - new upstream release
  794. - remove LC_ALL from cjktexttops
  795. * Sat Apr 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.9-4
  796. - rebuild with openldap-2.4.11
  797. * Mon Mar 23 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.9-3
  798. - add /usr/lib/cups for 32bit binary drivers on x86_64.
  799. * Sat Jan 17 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.3.9-2
  800. - rebuild with gnutls-2.6.3
  801. * Wed Oct 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.9-1
  802. - new upstream release
  803. - renumber fedora patches
  804. - remove hal patch, hal backend module is now provided by hal-cups-utils
  805. * Mon Apr 21 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 1.3.7-2
  806. - remove libacl from dependency.
  807. * Fri Apr 18 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 1.3.7-1
  808. - new upstream release.
  809. - ship some patches from Fedora development.
  810. * Sun Aug 26 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.1.23-0vl13
  811. - add Patch300 and Patch310 for CVE-2007-0104 and CVE-2007-3387 respectively
  812. (same fixes for 1.1.23-0vl7.1 for Vine-4.1)
  813. * Sat May 26 2007 NAKAMURA Kenta <kenta@vinelinux.org> 1.1.23-0vl12
  814. - enabled Patch20: cups-gcc4.patch
  815. * Mon May 21 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.1.23-0vl11
  816. - always do %%configure on all archs (due to autoconf upgrade)
  817. * Thu May 17 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.23-0vl10
  818. - rebuild with new openssl
  819. * Thu May 03 2007 NAKAMURA Kenta <kenta@vinelinux.org> 1.1.23-0vl9
  820. - added compat32 subpackage for x86_64 arch support.
  821. * Sat Apr 28 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.23-0vl8
  822. - rebuild with dbus-1.0
  823. * Fri Oct 27 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.23-0vl7
  824. - add Patch50, Source20 to support hal backend.
  825. * Thu Jun 29 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.23-0vl6
  826. - add cjktexttops to use mpage for text-ps filter
  827. (Source18, Patch210)
  828. - mark mime.convs and mime.types as config file
  829. * Sat Mar 11 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.23-0vl5
  830. - add Patch43 for dbus support
  831. - add Patch200 to support UTF-8 ppd files
  832. * Wed Feb 15 2006 Shu KONNO <owa@bg.wakwak.com> 1.1.23-0vl4
  833. - fixed cups-link.patch of missing "-L../cups"
  834. - added %%configure for x86_64 architecture support
  835. * Sat Jan 28 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.23-0vl3
  836. - import some FC patches
  837. - fix several security bugs
  838. - CVS-2005-3625,CVS-2005-3626,CVS-2005-3627
  839. - CAN-2005-2097
  840. - CAN-2004-0888
  841. - CAN-2005-0064
  842. - apply upstream patches
  843. * Sun Mar 27 2005 Satoshi MACHINO <machino@vinelinux.org> 1.1.23-0vl2
  844. - added dvitops, dvitops.convs and dvitops.types
  845. * Tue Jan 04 2005 Satoshi MACHINO <machino@vinelinux.org> 1.1.23-0vl1
  846. - new upstream version(cups-1.1.23)
  847. - removed unused patches
  848. * Fri Dec 31 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.23-0vl0.1rc1
  849. - added cups-1.1.23rc1-scheduler_client.patch
  850. -- special thanks to kmuto@debian.org
  851. * Mon Dec 20 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.23-0vl0.0rc1
  852. - new upstream version (cups-1.1.23rc1)
  853. * Wed Nov 03 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.22-0vl1
  854. - new upstream version (cups-1.1.22)
  855. -- updated cups-resource-ja-1.1.22
  856. * Sun Oct 17 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.22-0vl0.0rc2
  857. - new upstream version (cups-1.1.22rc2)
  858. * Wed Oct 06 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.22-0vl0.0rc1
  859. - new upstream version (cups-1.1.22rc1)
  860. * Thu Sep 16 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.21-0vl1
  861. - new upstream version (cups-1.1.21)
  862. * Thu Aug 26 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.21-0vl0.1rc2
  863. - added some txt files in docdir
  864. * Wed Aug 25 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.21-0vl0.0rc2
  865. - new upstream version (cups-1.1.21rc2)
  866. - updated to cups-1.1.21rc2-makefile.patch(patch11)
  867. * Sun May 30 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.21-0vl0.0rc1
  868. - new upstream version (cups-1.1.21rc1)
  869. - updated cups-resource-ja-1.1.21.tar.bz2
  870. - updated ppdsdat.patch
  871. - dropped system-auth.patch
  872. * Fri Apr 23 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.20-0vl6
  873. - updated pstorater to v1.6
  874. * Sun Apr 18 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.20-0vl5
  875. - removed README.vine
  876. * Thu Apr 15 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.1.20-0vl4
  877. - rebuild
  878. * Wed Dec 10 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.20-0vl3
  879. - fixed DefaultCharset in cupsd.conf
  880. * Mon Dec 08 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.20-0vl2
  881. - added PCL XL/PCL 6 PPD and filter from ESP gs-7.07.1
  882. - updated pstoraster
  883. * Sun Dec 07 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.20-0vl1
  884. - new upstream version (cups-1.1.20)
  885. -- fixed resource-ja
  886. -- changed DefaultCharset in cupsd.conf
  887. -- removed patch100
  888. - raised update-alternatives's priority to 50
  889. * Sat Nov 15 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.19-0vl6
  890. - added Patch11 (cups-1.1.19-makefile.patch)
  891. -- fixed makefile
  892. - added resource-ja (imported from cups-1.2.x)
  893. - added Patch100(cups-1.1.19-lang-adhoc.patch)
  894. -- fixed "DefaultCharset EUC-JP" in cupsd.conf
  895. -- Don't fallback to C locale in setlocale()
  896. * Fri Nov 14 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.19-0vl5
  897. - merged to 1.1.20rc6 patch
  898. - dropped patches
  899. --cups-idefense-v2.patch, cups-1.1.17-sanity.patch
  900. - deleted needless dependence in Obsoletes
  901. * Thu Nov 13 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.19-0vl4
  902. - fixed init script for logrotation
  903. * Sun Oct 26 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.19-0vl3
  904. - fixed coding system in spec file
  905. - updated README.vine
  906. * Mon Jul 07 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.19-0vl2
  907. - added cups-1.1.17-sanity.patch
  908. - added Japanese descriptions
  909. * Fri Jun 06 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.19-0vl1
  910. - fixed spec file
  911. * Thu Jun 05 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.19-0vl0.1
  912. - new upstream vrsion
  913. - remade spec file
  914. * Sun May 18 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.19-0.rc5vl1
  915. -- disable D-BUS.
  916. - new upstream version
  917. - added some fixes. from cups-1.1.19-0.rc5.2
  918. -- disable D-BUS.
  919. -- Fix option parsing in lpq (bug #90823).
  920. -- No longer need error, sigchld patches.
  921. -- Ship cupstestppd.
  922. -- Mark banners as config files (bug #89069).
  923. * Fri Apr 18 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.18-0vl2
  924. - imported some patches from rawhide (cups-1.1.18-2)
  925. -- added cups-idefense-v2.patch
  926. -- added cups-1.1.17-pdftops.patch
  927. -- added cups-1.1.17-error.patch
  928. -- added cups-1.1.17-rcp.patch
  929. -- added cups-1.1.17-ppdsdat.patch
  930. -- added cups-1.1.17-sigchld.patch
  931. - Fix translation in the init script
  932. - Build ppds.dat on first install.
  933. - Use pkg-config information to find SSL libraries
  934. - Make 'service cups reload' update the configuration first
  935. - added README.vine
  936. * Sun Jan 05 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.18-0vl1
  937. - fixed alternative path
  938. * Fri Dec 27 2002 Satoshi MACHINO <machino@vinelinux.org> 1.1.18-0vl0
  939. - New upstream version
  940. - dropped patch4 (merged cups-1.1.18)
  941. - dropped epoch tag
  942. * Thu Dec 26 2002 Satoshi MACHINO <machino@vinelinux.org> 1.1.17-3vl0
  943. - build on Vine Linux
  944. * Tue Dec 10 2002 Tim Waugh <twaugh@redhat.com> 1.1.17-3
  945. - Fix cupsd startup hang (bug #79346).
  946. * Mon Dec 9 2002 Tim Waugh <twaugh@redhat.com> 1.1.17-2
  947. - Fix parallel backend behaviour when cancelling jobs.
  948. * Mon Dec 9 2002 Tim Waugh <twaugh@redhat.com> 1.1.17-1
  949. - 1.1.17.
  950. - No longer need libdir patch.
  951. - Fix logrotate script (bug #76791).
  952. * Wed Nov 20 2002 Tim Waugh <twaugh@redhat.com>
  953. - Build requires XFree86-devel (bug #78362).
  954. * Wed Nov 20 2002 Tim Waugh <twaugh@redhat.com>
  955. - 1.1.16.
  956. - Updated system-auth patch.
  957. - Add ncp backend script.
  958. * Wed Nov 13 2002 Tim Waugh <twaugh@redhat.com> 1.1.15-15
  959. - Set alternatives priority to 40.
  960. * Mon Nov 11 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.15-14
  961. - Buildrequire pam-devel.
  962. - Patch default PAM config file to remove directory names from module paths,
  963. allowing the configuration files to work equally well on multilib systems.
  964. - Patch default PAM config file to use system-auth, require the file at build-
  965. time because that's what data/Makefile checks for.
  966. * Fri Nov 8 2002 Tim Waugh <twaugh@redhat.com> 1.1.15-13
  967. - Use logrotate for log rotation (bug #76791).
  968. - No longer need cups.desktop, since redhat-config-printer handles it.
  969. * Thu Oct 17 2002 Tim Waugh <twaugh@redhat.com> 1.1.15-12
  970. - Revert to libdir for CUPS_SERVERBIN.
  971. * Thu Oct 17 2002 Tim Waugh <twaugh@redhat.com> 1.1.15-11
  972. - Use %%configure for multilib correctness.
  973. - Use libexec instead of lib for CUPS_SERVERBIN.
  974. - Ship translated man pages.
  975. - Remove unshipped files.
  976. - Fix file list permissions (bug #59021, bug #74738).
  977. - Fix messy initscript output (bug #65857).
  978. - Add 'reload' to initscript (bug #76114).
  979. * Fri Aug 30 2002 Bernhard Rosenkraenzer <bero@redhat.de> 1.1.15-10
  980. - Add generic postscript PPD file (#73061)
  981. * Mon Aug 19 2002 Tim Waugh <twaugh@redhat.com> 1.1.15-9
  982. - Fix prefix in pstoraster (bug #69573).
  983. * Mon Aug 19 2002 Tim Waugh <twaugh@redhat.com> 1.1.15-8
  984. - Disable cups-lpd by default (bug #71712).
  985. - No need for fread patch now that glibc is fixed.
  986. * Thu Aug 15 2002 Tim Waugh <twaugh@redhat.com> 1.1.15-7
  987. - Really add cups-lpd xinetd file (bug #63919).
  988. - Ship pstoraster (bug #69573).
  989. - Prevent fread from trying to read from beyond EOF (fixes a segfault
  990. with new glibc).
  991. * Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com> 1.1.15-6
  992. - rebuilt with gcc-3.2 (we hope)
  993. * Mon Aug 5 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.15-5
  994. - Add cups-lpd xinetd file (#63919)
  995. * Tue Jul 23 2002 Florian La Roche <Florian.LaRoche@redhat.de> 1.1.15-4
  996. - add a "exit 0" to postun script
  997. * Tue Jul 2 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.15-3
  998. - Add a symlink /usr/share/cups/doc -> /usr/share/doc/cups-devel-1.1.15
  999. because some applications expect to find the cups docs in
  1000. /usr/share/cups/doc
  1001. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  1002. - automated rebuild
  1003. * Fri Jun 21 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.15-1
  1004. - 1.1.15-1
  1005. - Fix up smb printing trigger (samba-client, not samba-clients)
  1006. - Start cupsd earlier, apparently it needs to be running before samba
  1007. starts up for smb printing to work.
  1008. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  1009. - automated rebuild
  1010. * Tue May 7 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.14-17
  1011. - Rebuild in current environment
  1012. - [-16 never existed because of build system breakage]
  1013. * Wed Apr 17 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.14-15
  1014. - Fix bug #63387
  1015. * Mon Apr 15 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.14-14
  1016. - Fix dangling symlink created by samba-clients trigger
  1017. * Wed Apr 10 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.14-13
  1018. - Add desktop file and icon for CUPS configuration
  1019. * Wed Apr 3 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.14-12
  1020. - Support SMB printing (#62407)
  1021. - Add HTML redirections to doc files to work around users mistaking
  1022. /usr/share/doc/cups-1.1.14 for the web frontend (#62405)
  1023. * Tue Apr 2 2002 Bill Nottingham <notting@redhat.com> 1.1.14-11
  1024. - fix subsys in initscript (#59206)
  1025. - don't strip binaries
  1026. * Mon Mar 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.14-10
  1027. - Make initscript use killproc instead of killall
  1028. * Fri Mar 8 2002 Bill Nottingham <notting@redhat.com> 1.1.14-9
  1029. - use alternatives --initscript support
  1030. * Mon Mar 4 2002 Bill Nottingham <notting@redhat.com> 1.1.14-8
  1031. - use the right path for the lpc man page, duh
  1032. * Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 1.1.14-7
  1033. - lpc man page is alternative too
  1034. - run ldconfig in -libs %post/%postun, not main
  1035. - remove alternatives in %preun
  1036. * Wed Feb 27 2002 Bill Nottingham <notting@redhat.com> 1.1.14-6
  1037. - don't source /etc/sysconfig/network in cups.init, we don't use any
  1038. values from it
  1039. * Tue Feb 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.14-4
  1040. - Fix bugs #60220 and #60352
  1041. * Thu Feb 21 2002 Tim Powers <timp@redhat.com>
  1042. - rebuild against correct version of openssl (0.9.6b)
  1043. * Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.14-2
  1044. - Add all man pages to alternatives (#59943)
  1045. - Update to real 1.1.14
  1046. * Tue Feb 12 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.14-1
  1047. - Update to almost-1.1.14
  1048. * Mon Feb 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.13-5
  1049. - Move cups-config to cups-devel subpackage
  1050. - Make alternatives usage a %%define to simplify builds for earlier
  1051. releases
  1052. - Explicitly provide things we're supplying through alternatives
  1053. to shut up kdeutils dependencies
  1054. * Tue Feb 5 2002 Tim Powers <timp@redhat.com>
  1055. - shut the alternatives stuff up for good
  1056. * Fri Feb 1 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.13-3
  1057. - Fix alternatives stuff
  1058. - Don't display error messages in %%post
  1059. * Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.13-2
  1060. - alternatives stuff
  1061. * Tue Jan 29 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.13-1
  1062. - 1.1.13
  1063. - Add patch for koi8-{r,u} and iso8859-8 encodings (#59018)
  1064. - Rename init scripts so we can safely "killall cupsd" from there
  1065. * Sat Jan 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.12-1
  1066. - Initial (conflicting, since alternatives isn't there yet) packaging for
  1067. Red Hat Linux
  1068. * Sat Jan 19 2002 Bernhard Rosenkraenzer <bero@redhat.com>
  1069. - 1.1.12
  1070. * Mon Nov 5 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.10-3
  1071. - Compress PPD files
  1072. - Fix build with gcc 3.1
  1073. - Fix init script
  1074. * Tue Sep 4 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.10-2
  1075. - Fix URL
  1076. - Generate printcap
  1077. - s/Copyright/License/g
  1078. * Tue Sep 4 2001 Than Ngo <than@redhat.com> 1.1.10-1
  1079. - update to 1.1.10-1 for ExtraBinge 7.2
  1080. * Tue May 29 2001 Michael Stefaniuc <mstefani@redhat.com>
  1081. - update to 1.1.8
  1082. - changed cupsd.conf to generate /etc/printcap
  1083. * Tue May 15 2001 Than Ngo <than@redhat.com>
  1084. - update to 1.1.7, bugfixes
  1085. * Thu Dec 14 2000 Than Ngo <than@redhat.com>
  1086. - fixed package dependency with lpr and LPRng
  1087. * Wed Oct 25 2000 Than Ngo <than@redhat.com>
  1088. - remove man/cat
  1089. * Tue Oct 24 2000 Than Ngo <than@redhat.com>
  1090. - don't start cupsd service in level 0, fixed
  1091. * Thu Oct 19 2000 Than Ngo <than@redhat.com>
  1092. - update to 1.1.4
  1093. - fix CUPS_DOCROOT (Bug #18717)
  1094. * Fri Aug 11 2000 Than Ngo <than@redhat.de>
  1095. - update to 1.1.2 (Bugfix release)
  1096. * Fri Aug 4 2000 Than Ngo <than@redhat.de>
  1097. - fix, cupsd read config file under /etc/cups (Bug #15432)
  1098. - add missing cups filters
  1099. * Wed Aug 2 2000 Tim Powers <timp@redhat.com>
  1100. - rebuilt against libpng-1.0.8
  1101. * Tue Aug 01 2000 Than Ngo <than@redhat.de>
  1102. - fix permission, add missing ldconfig in %post and %postun (Bug #14963)
  1103. * Sat Jul 29 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  1104. - 1.1.1 (this has some major bugfixes)
  1105. - Fix a typo in initscript (it's $?, not ?$)
  1106. - Fix /usr/etc vs. /etc trouble, don't insist on /usr/var (YUCK!)
  1107. - Create the spool dir
  1108. * Fri Jul 28 2000 Than Ngo <than@redhat.de>
  1109. - fix unclean code for building against gcc-2.96
  1110. - add missing restart function in startup script
  1111. * Fri Jul 28 2000 Tim Powers <timp@redhat.com>
  1112. - fixed initscript so that conrestart doesn't return 1 if the test fails
  1113. * Mon Jul 24 2000 Prospector <prospector@redhat.com>
  1114. - rebuilt
  1115. * Wed Jul 19 2000 Than Ngo <than@redhat.de>
  1116. - using service to fire them up
  1117. - fix Prereq section
  1118. * Mon Jul 17 2000 Tim Powers <timp@redhat.com>
  1119. - added defattr to the devel package
  1120. * Sun Jul 16 2000 Than Ngo <than@redhat.de>
  1121. - add cups config files
  1122. * Sat Jul 15 2000 Than Ngo <than@redhat.de>
  1123. - update to 1.1 release
  1124. - move back to /etc/rc.d/init.d
  1125. - fix cupsd.init to work with /etc/init.d and /etc/rc.d/init.d
  1126. - split cups
  1127. * Wed Jul 12 2000 Than Ngo <than@redhat.de>
  1128. - rebuilt
  1129. * Thu Jul 06 2000 Tim Powers <timp@redhat.com>
  1130. - fixed broken PreReq to now require /etc/init.d
  1131. * Tue Jun 27 2000 Tim Powers <timp@redhat.com>
  1132. - PreReq initscripts >= 5.20
  1133. * Mon Jun 26 2000 Tim Powers <timp@redhat.com>
  1134. - started changelog
  1135. - fixed init.d script location
  1136. - changed script in init.d quite a bit and made more like the rest of our
  1137. startup scripts