]> git.pld-linux.org Git - packages/udns.git/blob - udns.spec
- updated to 0.4
[packages/udns.git] / udns.spec
1 Summary:        udns library tools
2 Summary(pl.UTF-8):      Narzędzia korzystające z biblioteki udns
3 Name:           udns
4 Version:        0.4
5 Release:        1
6 License:        LGPL v2.1+
7 Group:          Networking/Utilities
8 Source0:        http://www.corpit.ru/mjt/udns/%{name}-%{version}.tar.gz
9 # Source0-md5:  51e141b044b078d71ebb71f823959c1b
10 URL:            http://www.corpit.ru/mjt/udns.html
11 Requires:       %{name}-libs = %{version}-%{release}
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 dnsget and rblcheck tools using udns library.
16
17 %description -l pl.UTF-8
18 dnsget i rblcheck używające biblioteki udns.
19
20 %package libs
21 Summary:        A library that performs asynchronous DNS operations
22 Summary(pl.UTF-8):      Biblioteka do wykonywania asynchronicznych zapytań DNS
23 Group:          Libraries
24
25 %description libs
26 A library that performs asynchronous DNS operations.
27
28 %description libs -l pl.UTF-8
29 Biblioteka do wykonywania asynchronicznych zapytań DNS.
30
31 %package devel
32 Summary:        Header files for udns library
33 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki udns
34 Group:          Development/Libraries
35 Requires:       %{name}-libs = %{version}-%{release}
36
37 %description devel
38 Header files for udns library.
39
40 %description devel -l pl.UTF-8
41 Pliki nagłówkowe biblioteki udns.
42
43 %package static
44 Summary:        Static udns library
45 Summary(pl.UTF-8):      Statyczna biblioteka udns
46 Group:          Development/Libraries
47 Requires:       %{name}-devel = %{version}-%{release}
48
49 %description static
50 Static udns library.
51
52 %description static -l pl.UTF-8
53 Statyczna biblioteka udns.
54
55 %prep
56 %setup -q
57
58 %build
59 ./configure
60 %{__make} staticlib sharedlib dnsget_s ex-rdns_s rblcheck_s \
61         CC="%{__cc}" \
62         CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall -W" \
63         LDFLAGS="%{rpmldflags} %{rpmcflags}"
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT{%{_bindir},%{_examplesdir}/%{name}-%{version},%{_includedir},%{_libdir},%{_mandir}/man{1,3}}
68
69 install dnsget_s $RPM_BUILD_ROOT%{_bindir}/dnsget
70 install ex-rdns_s $RPM_BUILD_ROOT%{_bindir}/ex-rdns
71 install rblcheck_s $RPM_BUILD_ROOT%{_bindir}/rblcheck
72 install libudns.* $RPM_BUILD_ROOT%{_libdir}
73 cp -fd libudns_s.so $RPM_BUILD_ROOT%{_libdir}/libudns.so
74 cp -p ex-rdns.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
75 cp -p udns.h $RPM_BUILD_ROOT%{_includedir}
76 cp -p *.1 $RPM_BUILD_ROOT%{_mandir}/man1
77 cp -p *.3 $RPM_BUILD_ROOT%{_mandir}/man3
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %post   libs -p /sbin/ldconfig
83 %postun libs -p /sbin/ldconfig
84
85 %files
86 %defattr(644,root,root,755)
87 %attr(755,root,root) %{_bindir}/dnsget
88 %attr(755,root,root) %{_bindir}/rblcheck
89 %{_mandir}/man1/dnsget.1*
90 %{_mandir}/man1/rblcheck.1*
91
92 %files libs
93 %defattr(644,root,root,755)
94 %doc NEWS NOTES TODO
95 %attr(755,root,root) %{_libdir}/libudns.so.*
96
97 %files devel
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_bindir}/ex-rdns
100 %attr(755,root,root) %{_libdir}/libudns.so
101 %{_includedir}/udns.h
102 %{_examplesdir}/%{name}-%{version}
103 %{_mandir}/man3/udns.3*
104
105 %files static
106 %defattr(644,root,root,755)
107 %{_libdir}/libudns.a
This page took 0.108934 seconds and 4 git commands to generate.