diff --git a/libnsl.spec b/libnsl.spec index 7a38eb6..48ddc17 100644 --- a/libnsl.spec +++ b/libnsl.spec @@ -16,23 +16,22 @@ # +%define debug_package_requires libnsl2 = %{version}-%{release} Name: libnsl Version: 1.2.0 Release: 0 Summary: Network Support Library (NIS/NIS+) License: LGPL-2.1 Group: System/Libraries -Url: http://github.com/thkukuk/libnsl +URL: http://github.com/thkukuk/libnsl Source: %{name}-%{version}.tar.bz2 Source1: baselibs.conf BuildRequires: autoconf BuildRequires: libtool BuildRequires: pkg-config -BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} >= 1310 BuildRequires: libtirpc-devel >= 1.0 %endif -%define debug_package_requires libnsl2 = %{version}-%{release} %description The Network Support Library for NIS/NIS+ was formerly part of glibc and @@ -54,7 +53,7 @@ The NIS+ code is deprecated and only there "as is". Summary: Development package for Network Support Library (NIS/NIS+) Group: Development/Libraries/C and C++ Requires: libnsl2 = %{version} -Requires: pkgconfig(libtirpc) >= 1.0.1 +Requires: pkgconfig(libtirpc) >= 1.0.1 %description devel The Network Support Library for NIS/NIS+ was formerly part of glibc and @@ -73,7 +72,7 @@ make %{?_smp_mflags} %install # Don't strip .symtab to allow debugging export STRIP_KEEP_SYMTAB=libnsl*.so* -make %{?_smp_mflags} DESTDIR=%{buildroot} install +%make_install # Remove .la file rm %{buildroot}%{_libdir}/%{name}.la @@ -84,12 +83,10 @@ make %{?_smp_mflags} check %postun -n libnsl2 -p /sbin/ldconfig %files -n libnsl2 -%defattr(-,root,root) %doc COPYING %{_libdir}/libnsl.so.2* %files devel -%defattr(-,root,root) %{_libdir}/libnsl.so %{_includedir}/* %{_libdir}/pkgconfig/*