- Re-enable rpcgen sub-package, but rename files, for easier

migration later

OBS-URL: https://build.opensuse.org/package/show/network:NIS/rpcsvc-proto?expand=0&rev=2
This commit is contained in:
Thorsten Kukuk 2017-11-12 09:01:45 +00:00 committed by Git OBS Bridge
parent 3288702801
commit 2b53297675
2 changed files with 12 additions and 8 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Nov 12 10:00:55 CET 2017 - kukuk@suse.de
- Re-enable rpcgen sub-package, but rename files, for easier
migration later
-------------------------------------------------------------------
Sun Nov 12 07:58:36 CET 2017 - kukuk@suse.de

View File

@ -42,7 +42,7 @@ glibc).
%package -n rpcgen
Summary: RPC protocol compiler
Group: Development/Tools
Group: Development/Tools/Other
Provides: glibc-devel:%{_bindir}/rpcgen
%description -n rpcgen
@ -59,9 +59,9 @@ make %{?_smp_mflags}
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
# Don't create rpcgen sub-package until we deprecate sunrpc in glibc
rm -f %{buildroot}%{_bindir}/rpcgen
rm -f %{buildroot}%{_mandir}/man1/rpcgen.1*
# Rename temporary to avoid conflict with glibc for easier migration
mv %{buildroot}%{_bindir}/rpcgen %{buildroot}%{_bindir}/rpcgen-tirpc
mv %{buildroot}%{_mandir}/man1/rpcgen.1 %{buildroot}%{_mandir}/man1/rpcgen-tirpc.1
%files devel
@ -70,11 +70,9 @@ rm -f %{buildroot}%{_mandir}/man1/rpcgen.1*
%dir %{_includedir}/tirpc/rpcsvc
%{_includedir}/tirpc/rpcsvc/*
%if 0
%files -n rpcgen
%defattr(-,root,root)
%{_bindir}/rpcgen
%{_mandir}/man1/rpcgen.1*
%endif
%{_bindir}/rpcgen-tirpc
%{_mandir}/man1/rpcgen-tirpc.1*
%changelog