- Conform to packaging guidelines with update-alternatives
- Clenaup with spec-cleaner OBS-URL: https://build.opensuse.org/package/show/Archiving/dump?expand=0&rev=19
This commit is contained in:
parent
bc0ced5834
commit
a7b44b498a
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 27 11:43:24 UTC 2017 - mpluskal@suse.com
|
||||
|
||||
- Conform to packaging guidelines with update-alternatives
|
||||
- Clenaup with spec-cleaner
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 21 10:13:12 UTC 2017 - svalx@svalx.net
|
||||
|
||||
|
11
dump.spec
11
dump.spec
@ -78,9 +78,12 @@ cp %{SOURCE1} rmt/
|
||||
%patch5 -p1
|
||||
|
||||
%build
|
||||
autoreconf -fi
|
||||
%configure --enable-ermt --enable-rmt=no --with-rmtpath=%{_bindir}
|
||||
make %{?_smp_mflags}
|
||||
autoreconf -fiv
|
||||
%configure \
|
||||
--enable-ermt \
|
||||
--enable-rmt=no \
|
||||
--with-rmtpath=%{_bindir}
|
||||
make %{?_smp_mflags} V=1
|
||||
|
||||
%install
|
||||
%make_install
|
||||
@ -96,7 +99,7 @@ ln -sf %{_sysconfdir}/alternatives/rmt.1%{ext_man} %{buildroot}%{_mandir}/man1/r
|
||||
--slave %{_mandir}/man1/rmt.1%{ext_man} rmt.1%{ext_man} %{_mandir}/man1/ermt.1%{ext_man}
|
||||
|
||||
%postun rmt
|
||||
if [ "$1" = 0 ] ; then
|
||||
if [ ! -f %{_bindir}/ermt ] ; then
|
||||
"%{_sbindir}/update-alternatives" --remove rmt %{_bindir}/ermt
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user