This commit is contained in:
parent
b3856b013b
commit
7c41ef6f6f
@ -16,23 +16,22 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define debug_package_requires libnsl2 = %{version}-%{release}
|
||||||
Name: libnsl
|
Name: libnsl
|
||||||
Version: 1.2.0
|
Version: 1.2.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Network Support Library (NIS/NIS+)
|
Summary: Network Support Library (NIS/NIS+)
|
||||||
License: LGPL-2.1
|
License: LGPL-2.1
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Url: http://github.com/thkukuk/libnsl
|
URL: http://github.com/thkukuk/libnsl
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
Source1: baselibs.conf
|
Source1: baselibs.conf
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
%if 0%{?suse_version} >= 1310
|
%if 0%{?suse_version} >= 1310
|
||||||
BuildRequires: libtirpc-devel >= 1.0
|
BuildRequires: libtirpc-devel >= 1.0
|
||||||
%endif
|
%endif
|
||||||
%define debug_package_requires libnsl2 = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Network Support Library for NIS/NIS+ was formerly part of glibc and
|
The Network Support Library for NIS/NIS+ was formerly part of glibc and
|
||||||
@ -73,7 +72,7 @@ make %{?_smp_mflags}
|
|||||||
%install
|
%install
|
||||||
# Don't strip .symtab to allow debugging
|
# Don't strip .symtab to allow debugging
|
||||||
export STRIP_KEEP_SYMTAB=libnsl*.so*
|
export STRIP_KEEP_SYMTAB=libnsl*.so*
|
||||||
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
%make_install
|
||||||
# Remove .la file
|
# Remove .la file
|
||||||
rm %{buildroot}%{_libdir}/%{name}.la
|
rm %{buildroot}%{_libdir}/%{name}.la
|
||||||
|
|
||||||
@ -84,12 +83,10 @@ make %{?_smp_mflags} check
|
|||||||
%postun -n libnsl2 -p /sbin/ldconfig
|
%postun -n libnsl2 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n libnsl2
|
%files -n libnsl2
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
%{_libdir}/libnsl.so.2*
|
%{_libdir}/libnsl.so.2*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/libnsl.so
|
%{_libdir}/libnsl.so
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_libdir}/pkgconfig/*
|
%{_libdir}/pkgconfig/*
|
||||||
|
Loading…
Reference in New Issue
Block a user