Accepting request 849612 from home:lnussel:usrmove
- prepare usrmerge (boo#1029961) OBS-URL: https://build.opensuse.org/request/show/849612 OBS-URL: https://build.opensuse.org/package/show/network:utilities/hostname?expand=0&rev=23
This commit is contained in:
parent
dae92bab6e
commit
442be326b5
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 19 16:04:14 UTC 2020 - Ludwig Nussel <lnussel@suse.de>
|
||||||
|
|
||||||
|
- prepare usrmerge (boo#1029961)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 26 07:43:53 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
Wed Aug 26 07:43:53 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -44,11 +44,15 @@ make %{?_smp_mflags} CFLAGS="%{optflags} -D_GNU_SOURCE"
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
install -D -p -m 755 %{name} %{buildroot}%{_bindir}/%{name}
|
install -D -p -m 755 %{name} %{buildroot}%{_bindir}/%{name}
|
||||||
|
%if !0%{?usrmerged}
|
||||||
install -d -m 755 %{buildroot}/bin/
|
install -d -m 755 %{buildroot}/bin/
|
||||||
ln -sf %{_bindir}/%{name} %{buildroot}/bin/%{name}
|
ln -sf %{_bindir}/%{name} %{buildroot}/bin/%{name}
|
||||||
|
%endif
|
||||||
install -D -p -m 644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
|
install -D -p -m 644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
|
||||||
for prog in dnsdomainname domainname ypdomainname nisdomainname; do
|
for prog in dnsdomainname domainname ypdomainname nisdomainname; do
|
||||||
|
%if !0%{?usrmerged}
|
||||||
ln -sf %{_bindir}/%{name} %{buildroot}/bin/$prog
|
ln -sf %{_bindir}/%{name} %{buildroot}/bin/$prog
|
||||||
|
%endif
|
||||||
ln -sf %{_bindir}/%{name} %{buildroot}%{_bindir}/$prog
|
ln -sf %{_bindir}/%{name} %{buildroot}%{_bindir}/$prog
|
||||||
ln -sf hostname.1 %{buildroot}%{_mandir}/man1/${prog}.1
|
ln -sf hostname.1 %{buildroot}%{_mandir}/man1/${prog}.1
|
||||||
done
|
done
|
||||||
@ -67,11 +71,13 @@ install -p -m 0644 nis-domainname.service %{buildroot}%{_unitdir}
|
|||||||
%files
|
%files
|
||||||
%license COPYRIGHT
|
%license COPYRIGHT
|
||||||
%doc debian/changelog
|
%doc debian/changelog
|
||||||
|
%if !0%{?usrmerged}
|
||||||
/bin/%{name}
|
/bin/%{name}
|
||||||
/bin/domainname
|
/bin/domainname
|
||||||
/bin/dnsdomainname
|
/bin/dnsdomainname
|
||||||
/bin/nisdomainname
|
/bin/nisdomainname
|
||||||
/bin/ypdomainname
|
/bin/ypdomainname
|
||||||
|
%endif
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_bindir}/domainname
|
%{_bindir}/domainname
|
||||||
%{_bindir}/dnsdomainname
|
%{_bindir}/dnsdomainname
|
||||||
|
Loading…
Reference in New Issue
Block a user