source: projects/specs/trunk/lib/libn/libnsl2/libnsl2-vl.spec @ 12355

Revision 12355, 1.8 KB checked in by tomop, 4 years ago (diff)

fixed the location of libnsl2

Line 
1Name:         libnsl2
2Version:      1.2.0
3Release:      1%{?_dist_release}
4Summary:      Public client interface library for NIS(YP) and NIS+
5
6Vendor:       Project Vine
7Distribution: Vine Linux
8
9License:      BSD and LGPLv2+
10Group:        System Environment/Libraries
11URL:          https://github.com/thkukuk/libnsl
12
13
14Source0:      https://github.com/thkukuk/libnsl/archive/v%{version}.tar.gz#/libnsl-%{version}.tar.gz
15
16Patch1:       0001-Don-t-include-ltmain.sh-since-this-would-require-the.patch
17Patch2:       0002-Remove-outdated-download-url-issue-4.patch
18Patch3:       0003-Detect-recursive-lock-between-yp_all-and-do_ypcall.patch
19Patch4:       0004-Detect-recursive-NIS-calls.patch
20
21Patch100:     libnsl2-1.0.5-include_stdint.patch
22
23BuildRequires: autoconf, automake, gettext-devel, libtool, libtirpc-devel
24
25%description
26This package contains the libnsl library. This library contains
27the public client interface for NIS(YP) and NIS+.
28This code was formerly part of glibc, but is now standalone to
29be able to link against TI-RPC for IPv6 support.
30
31%package devel
32Summary: Development files for libnsl
33Group: Development/Libraries
34Requires: %{name}%{?_isa} = %{version}-%{release}
35Requires: glibc-devel >= 2.28
36
37%description devel
38Development files for libnsl2
39
40
41%prep
42%autosetup -n libnsl-%{version} -p1
43
44%build
45export CFLAGS="%{optflags}"
46autoreconf -fiv
47%configure\
48    --libdir=%{_libdir}\
49    --includedir=%{_includedir}
50
51%make_build
52
53
54%install
55rm -rf %{buildroot}
56%make_install
57
58rm %{buildroot}/%{_libdir}/libnsl.a
59rm %{buildroot}/%{_libdir}/libnsl.la
60
61%files
62%license COPYING
63%{_libdir}/libnsl.so.2
64%{_libdir}/libnsl.so.2.0.0
65
66%files devel
67%{_libdir}/libnsl.so
68%{_includedir}/*
69%{_libdir}/pkgconfig/libnsl.pc
70
71%changelog
72* Fri Jan 25 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.0-1
73- initial build for Vine Linux.
74
Note: See TracBrowser for help on using the repository browser.