source: projects/specs/branches/6/lib/liba/libasyncns/libasyncns-vl.spec @ 2352

Revision 2352, 3.0 KB checked in by Takemikaduchi, 13 years ago (diff)

pulseaudio: add BuildRequires?, others: create compat32- sub package

Line 
1%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
2
3Summary: Asynchronous Name Service Library
4Summary(ja): 非同期ネームサービスライブラリ
5
6Name: libasyncns
7Version: 0.8
8Release: 1%{?_dist_release}
9Group: System Environment/Libraries
10Source0: http://0pointer.de/lennart/projects/libasyncns/libasyncns-%{version}.tar.gz
11License: LGPLv2+
12Url: http://0pointer.de/lennart/projects/libasyncns/
13BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
14
15%description
16A small and lightweight library that implements easy to use asynchronous
17wrappers around the libc NSS functions getaddrinfo(), res_query() and related.
18
19%package devel
20Summary: Development Files for libasyncns Client Development
21Summary(ja): %{name} クライアント用の開発ファイル
22Group: Development/Libraries
23Requires: %{name} = %{version}-%{release}
24Requires: pkgconfig
25
26%description devel
27Development Files for libasyncns Client Development
28
29# compat32
30%package -n compat32-%{name}
31Summary: Asynchronous Name Service Library
32Summary(ja): 非同期ネームサービスライブラリ
33Group: System Environment/Libraries
34Requires: %{name} = %{version}-%{release}
35
36%description -n compat32-%{name}
37A small and lightweight library that implements easy to use asynchronous
38wrappers around the libc NSS functions getaddrinfo(), res_query() and related.
39
40%package -n compat32-%{name}-devel
41Summary: Development Files for libasyncns Client Development
42Summary(ja): %{name} クライアント用の開発ファイル
43Group: Development/Libraries
44Requires: compat32-%{name} = %{version}-%{release}
45Requires: %{name}-devel = %{version}-%{release}
46
47%description -n compat32-%{name}-devel
48Development Files for libasyncns Client Development
49
50
51%post -p /sbin/ldconfig
52%postun -p /sbin/ldconfig
53
54%post -n compat32-%{name} -p /sbin/ldconfig
55%postun -n compat32-%{name} -p /sbin/ldconfig
56
57%prep
58%setup -q
59
60%build
61%configure --disable-static
62make
63
64%install
65rm -rf $RPM_BUILD_ROOT
66make DESTDIR=$RPM_BUILD_ROOT install
67find $RPM_BUILD_ROOT \( -name *.a -o -name *.la \) -exec rm {} \;
68
69%clean
70rm -rf $RPM_BUILD_ROOT
71
72%files
73%defattr(-,root,root)
74%doc README LICENSE
75%{_libdir}/libasyncns.so.*
76%{_docdir}/%{name}/README*
77%{_docdir}/%{name}/style.css
78
79%files devel
80%defattr(-,root,root)
81%{_includedir}/asyncns.h
82%{_libdir}/libasyncns.so
83%{_libdir}/pkgconfig/libasyncns.pc
84
85# compat32
86%if %{build_compat32}
87%files -n compat32-%{name}
88%defattr(-,root,root,-)
89%{_libdir}/libasyncns.so.*
90
91%files -n compat32-%{name}-devel
92%defattr(-,root,root)
93%{_libdir}/libasyncns.so
94%{_libdir}/pkgconfig/libasyncns.pc
95%endif
96
97
98%changelog
99* Wed Dec 15 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8-1
100- new upstream release
101- create compat32-libasyncns sub package
102- remove unrecognized configure options "--disable-rpath"
103
104* Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4-2
105- rebuild with rpm-4.8.1 for pkg-config file
106
107* Tue Sep 30 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4-1
108- initial build for Vine Linux
109
110* Sun Jul 27 2008 Lennart Poettering <lpoetter@redhat.com> 0.4-1
111- Initial packaging
Note: See TracBrowser for help on using the repository browser.