Hello community, here is the log from the commit of package mt-st for openSUSE:Factory checked in at 2017-03-17 15:07:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mt-st (Old) and /work/SRC/openSUSE:Factory/.mt-st.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mt-st" Fri Mar 17 15:07:25 2017 rev:3 rq:479977 version:1.3 Changes: -------- --- /work/SRC/openSUSE:Factory/mt-st/mt-st.changes 2016-08-09 22:15:46.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.mt-st.new/mt-st.changes 2017-03-17 15:07:26.438275765 +0100 @@ -1,0 +2,6 @@ +Thu Mar 16 11:29:23 UTC 2017 - mplus...@suse.com + +- Cleanup with spec-cleaner +- Refresh udev rules via scriplets + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mt-st.spec ++++++ --- /var/tmp/diff_new_pack.rM9Mu1/_old 2017-03-17 15:07:27.062187712 +0100 +++ /var/tmp/diff_new_pack.rM9Mu1/_new 2017-03-17 15:07:27.066187147 +0100 @@ -1,7 +1,7 @@ # # spec file for package mt-st # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,9 +28,11 @@ Source2: stinit.def Source3: 61-storage-tape-init.rules Source4: %{name}.keyring -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: pkgconfig BuildRequires: pkgconfig(udev) Requires: udev +Requires(post): udev +Requires(postun): udev Provides: mt_st = %{version}-%{release} Obsoletes: mt_st < %{version}-%{release} @@ -42,17 +44,23 @@ of some SCSI tape parameters. %prep -%setup -q -n %{name}-%{version} +%setup -q %build make %{?_smp_mflags} CFLAGS="%{optflags} -pipe" DEFTAPE=/dev/nst0 %install -%makeinstall EXEC_PREFIX=/usr -install -d %{buildroot}%{_sysconfdir} -install %{SOURCE2} %{buildroot}%{_sysconfdir} -install -d %{buildroot}%{_udevrulesdir} -install -m 0644 %{SOURCE3} %{buildroot}%{_udevrulesdir} +%make_install EXEC_PREFIX=%{_prefix} +install -D -p -m 0644 %{SOURCE2} \ + %{buildroot}%{_sysconfdir}/stinit.def +install -D -p -m 0644 %{SOURCE3} \ + %{buildroot}%{_udevrulesdir}/61-storage-tape-init.rules + +%post +%udev_rules_update + +%postun +%udev_rules_update %files %defattr(-,root,root) @@ -61,7 +69,7 @@ %{_sbindir}/stinit %{_mandir}/man1/mt.1%{ext_man} %{_mandir}/man8/stinit.8%{ext_man} -%config(noreplace) %attr(644,root,root) %{_sysconfdir}/stinit.def +%config(noreplace) %{_sysconfdir}/stinit.def %{_udevrulesdir}/61-storage-tape-init.rules %changelog