]> git.pld-linux.org Git - packages/libdnet.git/blame - libdnet.spec
- converted to UTF-8
[packages/libdnet.git] / libdnet.spec
CommitLineData
9a9d8aa7 1# Conditional build:
a52e5b9a 2%bcond_without static_libs # don't build static library
9a9d8aa7 3#
2c8b491e 4Summary: Interface to several low-level networking routines
a84a9021 5Summary(pl.UTF-8): Interfejs do niektórych niskopoziomowych funkcji sieciowych
fc8f353f 6Name: libdnet
8dbe1ead 7Version: 1.8
fc8f353f
SZ
8Release: 1
9License: BSD
10Group: Libraries
5989e2a4 11Source0: http://dl.sourceforge.net/libdnet/%{name}-%{version}.tar.gz
8dbe1ead
JB
12# Source0-md5: 187054990cd8e4e1aa6845912b34236d
13Patch0: %{name}-ac.patch
14Patch1: %{name}-am.patch
fc8f353f 15URL: http://libdnet.sourceforge.net/
8dbe1ead 16BuildRequires: autoconf >= 2.53
5989e2a4
JB
17BuildRequires: automake
18BuildRequires: libtool
fc8f353f
SZ
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22libdnet provides a simplified, portable interface to several low-level
23networking routines, including:
24* network address manipulation
25* kernel arp cache and route table lookup and manipulation
26* network firewalling (IP filter, ipfw, ipchains, pf, ...)
27* network interface lookup and manipulation
1a655718 28* raw IP packet and Ethernet frame transmission
fc8f353f 29
a84a9021
JR
30%description -l pl.UTF-8
31libdnet zapewnia uproszczony, przenośny interfejs do niektórych
32niskopoziomowych funkcji sieciowych, włączając w to:
33* manipulację adresami sieciowymi
34* przeglądanie i modyfikację pamięci podręcznej ARP oraz tablic routingu
fc8f353f 35* firewalling (IP filter, ipfw, ipchains, pf, ...)
a84a9021 36* wysyłanie ,,surowych'' pakietów IP i ramek Ethernetowych
fc8f353f
SZ
37
38%package devel
2c8b491e 39Summary: Header files for libdnet
a84a9021 40Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libdnet
fc8f353f 41Group: Development/Libraries
8dbe1ead 42Requires: %{name} = %{version}-%{release}
fc8f353f
SZ
43
44%description devel
45Header files for libdnet.
46
a84a9021
JR
47%description devel -l pl.UTF-8
48Pliki nagłówkowe biblioteki libdnet.
fc8f353f
SZ
49
50%package static
51Summary: libdnet static library
a84a9021 52Summary(pl.UTF-8): Statyczna biblioteka libdnet
fc8f353f 53Group: Development/Libraries
8dbe1ead 54Requires: %{name}-devel = %{version}-%{release}
fc8f353f
SZ
55
56%description static
57libdnet static library.
58
a84a9021 59%description static -l pl.UTF-8
fc8f353f
SZ
60Statyczna biblioteka libdnet.
61
62%package progs
2c8b491e 63Summary: Sample applications to use with libdnet
a84a9021 64Summary(pl.UTF-8): Przykładowe aplikacje do wykorzystania libdnet
fc8f353f 65Group: Applications/Networking
8dbe1ead 66Requires: %{name} = %{version}-%{release}
fc8f353f
SZ
67
68%description progs
69Sample applications to use with libdnet.
70
a84a9021
JR
71%description progs -l pl.UTF-8
72Przykładowe aplikacje do wykorzystania libdnet.
fc8f353f
SZ
73
74%prep
75%setup -q
76%patch0 -p1
77%patch1 -p1
78
79%build
fc8f353f 80%{__libtoolize}
8dbe1ead 81%{__aclocal} -I config
fc8f353f
SZ
82%{__autoconf}
83%{__autoheader}
84%{__automake}
a52e5b9a 85%configure \
86 %{!?with_static_libs:--disable-static}
fc8f353f
SZ
87%{__make}
88
89%install
90rm -rf $RPM_BUILD_ROOT
fc8f353f 91
8dbe1ead
JB
92%{__make} install \
93 DESTDIR=$RPM_BUILD_ROOT
fc8f353f
SZ
94
95%clean
96rm -rf $RPM_BUILD_ROOT
97
98%post -p /sbin/ldconfig
99%postun -p /sbin/ldconfig
100
101%files
102%defattr(644,root,root,755)
103%doc THANKS TODO
8dbe1ead 104%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
fc8f353f
SZ
105
106%files devel
107%defattr(644,root,root,755)
108%attr(755,root,root) %{_bindir}/*-config
8dbe1ead
JB
109%attr(755,root,root) %{_libdir}/lib*.so
110%{_libdir}/lib*.la
fc8f353f
SZ
111%{_includedir}/dnet
112%{_includedir}/*.h
113%{_mandir}/man3/*
114
a52e5b9a 115%if %{with static_libs}
fc8f353f
SZ
116%files static
117%defattr(644,root,root,755)
8dbe1ead 118%{_libdir}/lib*.a
a52e5b9a 119%endif
fc8f353f
SZ
120
121%files progs
122%defattr(644,root,root,755)
123%attr(755,root,root) %{_sbindir}/*
124%{_mandir}/man8/*
This page took 0.073958 seconds and 4 git commands to generate.