Hello community,
here is the log from the commit of package parallel-printer-support for
openSUSE:Factory checked in at 2012-10-10 09:20:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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
2012-05-15 17:42:34.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.parallel-printer-support.new/parallel-printer-support.changes
2012-10-10 09:23:34.000000000 +0200
@@ -1,0 +2,6 @@
+Mon Oct 8 08:29:41 UTC 2012 - [email protected]
+
+- Create device node via tmpfiles.d since /lib/udev/devices is not
+ supported with openSUSE 12.3.
+
+-------------------------------------------------------------------
New:
----
parallel-printer.conf
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ parallel-printer-support.spec ++++++
--- /var/tmp/diff_new_pack.l0SFae/_old 2012-10-10 09:23:36.000000000 +0200
+++ /var/tmp/diff_new_pack.l0SFae/_new 2012-10-10 09:23:36.000000000 +0200
@@ -26,6 +26,9 @@
Group: Hardware/Printing
Url: http://www.opensuse.org
Source: README.SUSE
+Source1: parallel-printer.conf
+# For /usr/bin/systemd-tmpfiles
+Requires(post): systemd
Requires: aaa_base
Requires: udev
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -48,12 +51,26 @@
%if 0%{?sles_version} == 11
mkdir -p $RPM_BUILD_ROOT/lib/udev/devices
%endif
-
+%if 0%{suse_version} > 1220
+mkdir -p $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/
+install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/
+%endif
%build
+%if 0%{suse_version} > 1220
+%post
+# Create devices nodes at installation time
+systemd-tmpfiles --create /usr/lib/tmpfiles.d/parallel-printer.conf
+
+%endif
+
%files
%defattr(-,root,root,0755)
%doc README.SUSE
+%if %{suse_version} > 1220
+%dir /usr/lib/tmpfiles.d/
+/usr/lib/tmpfiles.d/parallel-printer.conf
+%else
%if 0%{?sles_version} == 11
%dir /lib/udev
%dir /lib/udev/devices
@@ -62,5 +79,6 @@
%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
+%endif
%changelog
++++++ parallel-printer.conf ++++++
# Static device nodes for parallel printer
# See tmpfiles.d(5) for details
#Type Path Mode UID GID Age Argument
c /dev/lp0 0660 root lp - 6:0
c /dev/lp1 0660 root lp - 6:1
c /dev/lp2 0660 root lp - 6:2
c /dev/lp3 0660 root lp - 6:3
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]