Initial version for 1.0.4
This commit is contained in:
parent
0580a315fe
commit
aab1d34adf
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
|||||||
|
/libnsl-libnsl-1.0.4.tar.gz
|
78
libnsl2.spec
Normal file
78
libnsl2.spec
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
Name: libnsl2
|
||||||
|
Version: 1.0.4
|
||||||
|
Release: 4%{?dist}
|
||||||
|
Summary: Public client interface library for NIS(YP) and NIS+
|
||||||
|
|
||||||
|
License: BSD and LGPLv2+
|
||||||
|
Group: System Environment/Libraries
|
||||||
|
URL: https://github.com/thkukuk/libnsl
|
||||||
|
|
||||||
|
|
||||||
|
Source0: https://github.com/thkukuk/libnsl/archive/libnsl-%{version}.tar.gz#/libnsl-libnsl-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: autoconf, automake, gettext-devel, libtool, libtirpc-devel
|
||||||
|
|
||||||
|
%description
|
||||||
|
This package contains the libnsl library. This library contains
|
||||||
|
the public client interface for NIS(YP) and NIS+.
|
||||||
|
This code was formerly part of glibc, but is now standalone to
|
||||||
|
be able to link against TI-RPC for IPv6 support.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for libnsl
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Development files for libnsl2
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n libnsl-libnsl-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
export CFLAGS="%{optflags}"
|
||||||
|
|
||||||
|
autoreconf -fiv
|
||||||
|
|
||||||
|
%configure\
|
||||||
|
--libdir=%{_libdir}/nsl\
|
||||||
|
--includedir=%{_includedir}/nsl\
|
||||||
|
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
|
||||||
|
%make_install
|
||||||
|
|
||||||
|
rm %{buildroot}/%{_libdir}/nsl/libnsl.a
|
||||||
|
rm %{buildroot}/%{_libdir}/nsl/libnsl.la
|
||||||
|
mv %{buildroot}/%{_libdir}/nsl/pkgconfig %{buildroot}/%{_libdir}
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
|
||||||
|
echo "%{_libdir}/nsl" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%dir %{_libdir}/nsl
|
||||||
|
%{_libdir}/nsl/libnsl.so.2
|
||||||
|
%{_libdir}/nsl/libnsl.so.2.0.0
|
||||||
|
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/*
|
||||||
|
|
||||||
|
%license COPYING
|
||||||
|
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_libdir}/nsl/libnsl.so
|
||||||
|
%{_includedir}/nsl/
|
||||||
|
%{_libdir}/pkgconfig/libnsl.pc
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Apr 10 2017 Matej Mužila <mmuzila@redhat.com> 1.0.4-4
|
||||||
|
- Initial version for 1.0.4
|
||||||
|
|
Loading…
Reference in New Issue
Block a user