From 32887028010098f863bbca25bd8ca7b6fd4256a74a2e270521d4e154ce140f09 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Sun, 12 Nov 2017 07:00:22 +0000 Subject: [PATCH] - Disable rpcgen sub-package and install header files in tirpc sub-directory until we deprecate sunrpc in glibc - Update to version 1.2 - fix possible buffer overrun in rpcgen - Update to version 1.1 - ship own rpcgen - Initial package OBS-URL: https://build.opensuse.org/package/show/network:NIS/rpcsvc-proto?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + rpcsvc-proto-1.2.tar.bz2 | 3 ++ rpcsvc-proto.changes | 23 ++++++++++++ rpcsvc-proto.spec | 80 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 130 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 rpcsvc-proto-1.2.tar.bz2 create mode 100644 rpcsvc-proto.changes create mode 100644 rpcsvc-proto.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/rpcsvc-proto-1.2.tar.bz2 b/rpcsvc-proto-1.2.tar.bz2 new file mode 100644 index 0000000..b63b494 --- /dev/null +++ b/rpcsvc-proto-1.2.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7aa538d76946566665e5b1be5b434222f76066a9095ab1e98050318b80a9ce39 +size 121240 diff --git a/rpcsvc-proto.changes b/rpcsvc-proto.changes new file mode 100644 index 0000000..280e29a --- /dev/null +++ b/rpcsvc-proto.changes @@ -0,0 +1,23 @@ +------------------------------------------------------------------- +Sun Nov 12 07:58:36 CET 2017 - kukuk@suse.de + +- Disable rpcgen sub-package and install header files in tirpc + sub-directory until we deprecate sunrpc in glibc + +------------------------------------------------------------------- +Thu Feb 23 15:33:51 CET 2017 - kukuk@suse.de + +- Update to version 1.2 + - fix possible buffer overrun in rpcgen + +------------------------------------------------------------------- +Tue Apr 5 14:00:00 CEST 2016 - kukuk@suse.de + +- Update to version 1.1 + - ship own rpcgen + +------------------------------------------------------------------- +Thu Mar 31 13:52:42 CEST 2016 - kukuk@suse.de + +- Initial package + diff --git a/rpcsvc-proto.spec b/rpcsvc-proto.spec new file mode 100644 index 0000000..ce41da0 --- /dev/null +++ b/rpcsvc-proto.spec @@ -0,0 +1,80 @@ +# +# spec file for package rpcsvc-proto +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: rpcsvc-proto +Version: 1.2 +Release: 0 +Summary: RPC protocol definitions +License: LGPL-2.1 and BSD-3-Clause +Group: System/Libraries +Url: http://github.com/thkukuk/rpcsvc-proto +Source: %{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +The rpcsvc-proto package includes several rpcsvc header files +and RPC protocol definitions from SunRPC sources (as shipped with +glibc). + +%package devel +Summary: RPC protocol definitions +Group: Development/Libraries/C and C++ + +%description devel +The rpcsvc-proto package includes several rpcsvc header files +and RPC protocol definitions from SunRPC sources (as shipped with +glibc). + +%package -n rpcgen +Summary: RPC protocol compiler +Group: Development/Tools +Provides: glibc-devel:%{_bindir}/rpcgen + +%description -n rpcgen +rpcgen is a tool that generates C code to implement an RPC protocol. +The input to rpcgen is a language similar to C known as RPC Language +(Remote Procedure Call Language). + +%prep +%setup -q + +%build +%configure --includedir=%{_includedir}/tirpc +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* + + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/tirpc +%dir %{_includedir}/tirpc/rpcsvc +%{_includedir}/tirpc/rpcsvc/* + +%if 0 +%files -n rpcgen +%defattr(-,root,root) +%{_bindir}/rpcgen +%{_mandir}/man1/rpcgen.1* +%endif + +%changelog