source: projects/specs/trunk/c/cups/cups-vl.spec @ 12412

Revision 12412, 48.4 KB checked in by tomop, 4 years ago (diff)

updated 2 packages

cups-2.3.3-1

libexif-0.6.22-1

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