Hello community,

here is the log from the commit of package parallel-printer-support for 
openSUSE:Factory checked in at 2012-05-15 17:42:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/parallel-printer-support (Old)
 and      /work/SRC/openSUSE:Factory/.parallel-printer-support.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "parallel-printer-support", Maintainer is ""

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/parallel-printer-support/parallel-printer-support.changes
        2011-11-18 15:46:26.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.parallel-printer-support.new/parallel-printer-support.changes
   2012-05-15 17:42:34.000000000 +0200
@@ -1,0 +2,13 @@
+Mon May 14 18:28:30 UTC 2012 - je...@suse.com
+
+- Simplified the spec file.
+  - %files can create device nodes itself
+  - %doc README.SUSE works without having to install it specially
+  - no need to have a tarball with a single README in it.
+
+-------------------------------------------------------------------
+Fri May 11 00:00:00 UTC 2012 - silvi...@fastmail.fm
+
+- Added code to create lp0 up to lp3
+
+-------------------------------------------------------------------
@@ -18 +31 @@
-Mon Oct 24 00:00:00 UTC 2011 - Silviu Marin-Caea silvi...@fastmail.fm
+Mon Oct 24 00:00:00 UTC 2011 - silvi...@fastmail.fm

Old:
----
  vendor-files.tar.bz2

New:
----
  README.SUSE

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ parallel-printer-support.spec ++++++
--- /var/tmp/diff_new_pack.H6Zzvd/_old  2012-05-15 17:42:35.000000000 +0200
+++ /var/tmp/diff_new_pack.H6Zzvd/_new  2012-05-15 17:42:35.000000000 +0200
@@ -1,5 +1,7 @@
+#
 # spec file for package parallel-printer-support
 #
+# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 # Copyright (c) 2011 Silviu Marin-Caea
 # Copyright (c) 2011 B1 Systems GmbH, Vohburg, Germany.
 #
@@ -12,44 +14,53 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-#
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 Name:           parallel-printer-support
 Version:        1.00
-Release:        2
-License:        BSD-2-Clause
+Release:        0
 Summary:        Parallel Printer Support
-Url:            http://www.opensuse.org
+License:        BSD-2-Clause
 Group:          Hardware/Printing
-Source:         vendor-files.tar.bz2
+Url:            http://www.opensuse.org
+Source:         README.SUSE
 Requires:       aaa_base
-Requires:       coreutils
+Requires:       udev
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
 Supplements:    cups
 
 %description
-This package creates a static udev node for the parallel port.  The purpose is 
to load
-the "lp" kernel module automatically the first time data is sent to the 
parallel port.
+This package creates static udev nodes for the parallel ports.  The
+purpose is to load the "lp" kernel module automatically the first time
+data is sent to the parallel port.
 
-%prep
-%setup -c -q
+Since the lp kernel module can't autodetect devices, this is the only
+way to load the parallel printer modules without manual intervention.
 
-%build
+%prep
+%setup -c -q -T
+cp %{SOURCE0} .
 
 %install
-mkdir -p %{buildroot}%{_datadir}/doc/packages/parallel-printer-support
-install -m 644 README.SUSE 
%{buildroot}%{_datadir}/doc/packages/parallel-printer-support
+%if 0%{?sles_version} == 11
+mkdir -p $RPM_BUILD_ROOT/lib/udev/devices
+%endif
+
+%build
 
 %files
 %defattr(-,root,root,0755)
-%{_datadir}/doc/packages/parallel-printer-support
-%ghost %attr(660,root,lp) %dev(c,6,0) /lib/udev/devices/lp0
-
-%post
-test -c /lib/udev/devices/lp0 || mknod -m 0660 /lib/udev/devices/lp0 c 6 0
-chown root:lp  /lib/udev/devices/lp0
+%doc README.SUSE
+%if 0%{?sles_version} == 11
+%dir /lib/udev
+%dir /lib/udev/devices
+%endif
+%attr(660,root,lp) %dev(char,6,0) /lib/udev/devices/lp0
+%attr(660,root,lp) %dev(char,6,1) /lib/udev/devices/lp1
+%attr(660,root,lp) %dev(char,6,2) /lib/udev/devices/lp2
+%attr(660,root,lp) %dev(char,6,3) /lib/udev/devices/lp3
 
 %changelog

++++++ README.SUSE ++++++
Starting with version 11.4 of openSUSE, udev no longer provides static
/dev nodes and relies on packages to provide them if needed.

When data is first sent to the parallel port, loading the kernel module "lp"
is triggered.
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to