initial checkin
authorAnas Nashif <anas.nashif@intel.com>
Sat, 12 Jan 2013 06:09:16 +0000 (22:09 -0800)
committerChanho Park <chanho61.park@samsung.com>
Tue, 16 Dec 2014 09:24:45 +0000 (18:24 +0900)
packaging/libtirpc.spec [new file with mode: 0644]

diff --git a/packaging/libtirpc.spec b/packaging/libtirpc.spec
new file mode 100644 (file)
index 0000000..7d50a20
--- /dev/null
@@ -0,0 +1,66 @@
+Name:           libtirpc
+License:        BSD-4-Clause
+Group:          System/Libraries
+Version:        0.2.2
+Release:        0
+Summary:        Transport Independent RPC Library
+#BuildRequires:  libgssglue-devel
+BuildRequires:  libtool
+BuildRequires:  pkg-config
+Url:            http://sourceforge.net/projects/libtirpc/
+Source:         %{name}-%{version}.tar.bz2
+Source100:        baselibs.conf
+
+%description
+The Transport Independent RPC library (TI-RPC) is a replacement for the
+standard SunRPC library in glibc which does not support IPv6 addresses.
+This implementation allows the support of other transports than UDP and
+TCP over IPv4
+
+
+%package devel
+License:        BSD-4-Clause
+Summary:        Transport Independent RPC Library
+Group:          Development/Libraries/C and C++
+Requires:       libtirpc = %{version} 
+Requires:       glibc-devel
+
+%description devel
+The Transport Independent RPC library (TI-RPC) is a replacement for the
+standard SunRPC library in glibc which does not support IPv6 addresses.
+This implementation allows the support of other transports than UDP and
+TCP over IPv4
+
+%prep
+%setup -q
+
+%build
+autoreconf -fiv
+%configure --disable-static --with-pic --libdir=/%{_lib} 
+%{__make} %{?_smp_mflags}
+
+%install
+%make_install
+mkdir -p $RPM_BUILD_ROOT%{_libdir}
+%{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/%{name}.so) %{buildroot}%{_libdir}/%{name}.so
+mv -v $RPM_BUILD_ROOT/%{_lib}/pkgconfig $RPM_BUILD_ROOT/%{_libdir}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files 
+%defattr(-,root,root)
+%config %{_sysconfdir}/netconfig
+/%{_lib}/libtirpc.so.1*
+
+%files devel
+%defattr(-,root,root)
+%{_libdir}/libtirpc.so
+%dir /usr/include/tirpc/
+/usr/include/tirpc/*
+/usr/%{_lib}/pkgconfig/*
+
+%docs_package
+
+%changelog