Accepting request 479977 from Base:System

1

OBS-URL: https://build.opensuse.org/request/show/479977
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mt-st?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2017-03-17 14:07:25 +00:00 committed by Git OBS Bridge
commit 0c1402091c
2 changed files with 24 additions and 10 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Mar 16 11:29:23 UTC 2017 - mpluskal@suse.com
- Cleanup with spec-cleaner
- Refresh udev rules via scriplets
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Aug 7 16:25:51 UTC 2016 - olaf@aepfle.de Sun Aug 7 16:25:51 UTC 2016 - olaf@aepfle.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package mt-st # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -28,9 +28,11 @@ Source1: https://github.com/iustin/mt-st/releases/download/%{name}-%{vers
Source2: stinit.def Source2: stinit.def
Source3: 61-storage-tape-init.rules Source3: 61-storage-tape-init.rules
Source4: %{name}.keyring Source4: %{name}.keyring
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: pkgconfig
BuildRequires: pkgconfig(udev) BuildRequires: pkgconfig(udev)
Requires: udev Requires: udev
Requires(post): udev
Requires(postun): udev
Provides: mt_st = %{version}-%{release} Provides: mt_st = %{version}-%{release}
Obsoletes: mt_st < %{version}-%{release} Obsoletes: mt_st < %{version}-%{release}
@ -42,17 +44,23 @@ may not work with all drivers). The stinit program allows the setting
of some SCSI tape parameters. of some SCSI tape parameters.
%prep %prep
%setup -q -n %{name}-%{version} %setup -q
%build %build
make %{?_smp_mflags} CFLAGS="%{optflags} -pipe" DEFTAPE=/dev/nst0 make %{?_smp_mflags} CFLAGS="%{optflags} -pipe" DEFTAPE=/dev/nst0
%install %install
%makeinstall EXEC_PREFIX=/usr %make_install EXEC_PREFIX=%{_prefix}
install -d %{buildroot}%{_sysconfdir} install -D -p -m 0644 %{SOURCE2} \
install %{SOURCE2} %{buildroot}%{_sysconfdir} %{buildroot}%{_sysconfdir}/stinit.def
install -d %{buildroot}%{_udevrulesdir} install -D -p -m 0644 %{SOURCE3} \
install -m 0644 %{SOURCE3} %{buildroot}%{_udevrulesdir} %{buildroot}%{_udevrulesdir}/61-storage-tape-init.rules
%post
%udev_rules_update
%postun
%udev_rules_update
%files %files
%defattr(-,root,root) %defattr(-,root,root)
@ -61,7 +69,7 @@ install -m 0644 %{SOURCE3} %{buildroot}%{_udevrulesdir}
%{_sbindir}/stinit %{_sbindir}/stinit
%{_mandir}/man1/mt.1%{ext_man} %{_mandir}/man1/mt.1%{ext_man}
%{_mandir}/man8/stinit.8%{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 %{_udevrulesdir}/61-storage-tape-init.rules
%changelog %changelog