[cups-filters] 1.0.28: cups-browsed daemon and service

Jiří Popelka jpopelka at fedoraproject.org
Wed Jan 2 16:17:27 UTC 2013


commit 8f8fc52aeb92dc2185fee10ac441ce927c2f4a61
Author: Jiri Popelka <jpopelka at redhat.com>
Date:   Wed Jan 2 17:14:42 2013 +0100

    1.0.28: cups-browsed daemon and service

 .gitignore                      |    1 +
 cups-browsed.service            |   10 ++++++++
 cups-filters-1.0.28-initd.patch |   12 ++++++++++
 cups-filters.spec               |   45 ++++++++++++++++++++++++++++++++++----
 sources                         |    2 +-
 5 files changed, 64 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a6128f2..2913707 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
 /cups-filters-1.0.23.tar.xz
 /cups-filters-1.0.24.tar.xz
 /cups-filters-1.0.25.tar.xz
+/cups-filters-1.0.28.tar.xz
diff --git a/cups-browsed.service b/cups-browsed.service
new file mode 100644
index 0000000..144956c
--- /dev/null
+++ b/cups-browsed.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Make remote CUPS printers available locally
+After=cups.service avahi-daemon.service
+Wants=cups.service avahi-daemon.service
+
+[Service]
+ExecStart=/usr/sbin/cups-browsed
+
+[Install]
+WantedBy=multi-user.target
diff --git a/cups-filters-1.0.28-initd.patch b/cups-filters-1.0.28-initd.patch
new file mode 100644
index 0000000..20e3f7f
--- /dev/null
+++ b/cups-filters-1.0.28-initd.patch
@@ -0,0 +1,12 @@
+diff -up cups-filters-1.0.28/configure.ac.initd cups-filters-1.0.28/configure.ac
+--- cups-filters-1.0.28/configure.ac.initd	2012-12-29 14:23:28.000000000 +0100
++++ cups-filters-1.0.28/configure.ac	2013-01-02 15:50:12.513655482 +0100
+@@ -287,7 +287,7 @@ elif test "x$rcdir" != xno; then
+ 	fi
+ fi
+ 
+-AM_CONDITIONAL([RCLINKS], [test "x$INITDDIR" = "x"])
++AM_CONDITIONAL([RCLINKS], [test "x$INITDIR" != "x"])
+ 
+ if test "x${INITDIR}" != "x" -a "x${INITDDIR}" = "x"; then
+    INITDDIR="${INITDIR}/init.d"
diff --git a/cups-filters.spec b/cups-filters.spec
index 6881037..202dfbe 100644
--- a/cups-filters.spec
+++ b/cups-filters.spec
@@ -3,7 +3,7 @@
 
 Summary: OpenPrinting CUPS filters and backends
 Name:    cups-filters
-Version: 1.0.25
+Version: 1.0.28
 Release: 1%{?dist}
 
 # For a breakdown of the licensing, see COPYING file
@@ -13,13 +13,16 @@ Release: 1%{?dist}
 # GPLv2+:  filters: textonly, texttops, imagetops
 # GPLv3:   filters: bannertopdf
 # GPLv3+:  filters: urftopdf
+# LGPLv2+:   utils: cups-browsed
 # MIT:     filters: pdftoijs, pdftoopvp, pdftopdf, pdftoraster
-License: GPLv2 and GPLv2+ and GPLv3 and GPLv3+ and MIT
+License: GPLv2 and GPLv2+ and GPLv3 and GPLv3+ and LGPLv2+ and MIT
 
 Group:   System Environment/Base
+Url:     http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdf_as_standard_print_job_format
+Source0: http://www.openprinting.org/download/cups-filters/cups-filters-%{version}.tar.xz
+Source1: cups-browsed.service
 
-Source: http://www.openprinting.org/download/cups-filters/cups-filters-%{version}.tar.xz
-Url:    http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdf_as_standard_print_job_format
+Patch0: cups-filters-1.0.28-initd.patch
 
 Requires: cups-filters-libs%{?_isa} = %{version}-%{release}
 
@@ -39,6 +42,9 @@ BuildRequires: ghostscript-devel
 BuildRequires: freetype-devel
 BuildRequires: fontconfig-devel
 BuildRequires: lcms2-devel
+# cups-browsed
+BuildRequires: avahi-devel
+BuildRequires: systemd
 
 # Make sure we get postscriptdriver tags.
 BuildRequires: python-cups
@@ -51,6 +57,11 @@ BuildRequires: libtool
 Requires: cups-filesystem
 Requires: poppler-utils
 
+# cups-browsed
+Requires(post): systemd
+Requires(preun): systemd
+Requires(postun): systemd
+
 %package libs
 Summary: OpenPrinting CUPS filters and backends - cupsfilters and fontembed libraries
 Group:   System Environment/Libraries
@@ -80,14 +91,19 @@ This is the development package for OpenPrinting CUPS filters and backends.
 %prep
 %setup -q
 
+# don't create symlinks in /etc/rcx.d/ when --with-rcdir=no
+%patch0 -p1 -b .initd
+
 %build
 # work-around Rpath
 ./autogen.sh
 
 # --with-pdftops=pdftops - use Poppler instead of Ghostscript (see README)
+# --with-rcdir=no - don't install SysV init script
 %configure --disable-static \
            --disable-silent-rules \
-           --with-pdftops=pdftops
+           --with-pdftops=pdftops \
+           --with-rcdir=no
 
 make %{?_smp_mflags}
 
@@ -105,10 +121,24 @@ rm -f %{buildroot}%{_libdir}/lib*.la
 # Not sure what is this good for.
 rm -f %{buildroot}%{_bindir}/ttfread
 
+# systemd unit file
+mkdir -p %{buildroot}%{_unitdir}
+install -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}
+
+%post
+%systemd_post cups-browsed.service
+
+%preun
+%systemd_preun cups-browsed.service
+
+%postun
+%systemd_postun_with_restart cups-browsed.service 
+
 %post libs -p /sbin/ldconfig
 
 %postun libs -p /sbin/ldconfig
 
+
 %files
 %doc __doc/README __doc/AUTHORS __doc/NEWS
 %config(noreplace) %{_sysconfdir}/fonts/conf.d/99pdftoopvp.conf
@@ -123,6 +153,8 @@ rm -f %{buildroot}%{_bindir}/ttfread
 %{_datadir}/cups/mime/cupsfilters.types
 %{_datadir}/cups/mime/cupsfilters.convs
 %{_datadir}/ppd/cupsfilters
+%{_sbindir}/cups-browsed
+%{_unitdir}/cups-browsed.service
 
 %files libs
 %doc __doc/COPYING fontembed/README
@@ -138,6 +170,9 @@ rm -f %{buildroot}%{_bindir}/ttfread
 %{_libdir}/libfontembed.so
 
 %changelog
+* Wed Jan 02 2013 Jiri Popelka <jpopelka at redhat.com> 1.0.28-1
+- 1.0.28: cups-browsed daemon and service
+
 * Thu Nov 29 2012 Jiri Popelka <jpopelka at redhat.com> 1.0.25-1
 - 1.0.25
 
diff --git a/sources b/sources
index 8766904..0955f97 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-77f72864b8a1b631ca20c936af0b9f72  cups-filters-1.0.25.tar.xz
+c22d415c784a30e6f65ac101584a23d0  cups-filters-1.0.28.tar.xz


More information about the scm-commits mailing list