]> git.pld-linux.org Git - packages/libnet1.git/blame - libnet1.spec
- x32 rebuild
[packages/libnet1.git] / libnet1.spec
CommitLineData
d310be62 1Summary: "libpwrite" Network Routine Library
7adb3d27
ER
2Summary(pl.UTF-8): Biblioteka czynności sieciowych
3Summary(pt_BR.UTF-8): API para funções de rede de baixo nível
d310be62 4Name: libnet1
5Version: 1.0.2a
47da18dc 6Release: 4
d310be62 7License: BSD
8Group: Libraries
292cc962 9Source0: http://www.packetfactory.net/libnet/dist/deprecated/libnet-%{version}.tar.gz
d310be62 10# Source0-md5: ddf53f0f484184390e8c2a1bd0853667
11Patch0: %{name}-shared.patch
12Patch1: %{name}-include.patch
13Patch2: %{name}-name.patch
14URL: http://www.packetfactory.net/libnet/
15BuildRequires: autoconf
16BuildRequires: automake
17BuildRequires: libpcap-devel
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21The Network Library provides a simple API for commonly used low-level
22network functions (mainly packet injection). Using libnet, it is easy
23to build and write arbitrary network packets. It provides a portable
24framework for low-level network packet writing and handling (use
25libnet in conjunction with libpcap and you can write some really cool
26stuff). Libnet includes packet creation at the IP layer and at the
27link layer as well as a host of supplementary and complementary
28functionality.
29
0963a4cc 30%description -l pl.UTF-8
292cc962
JB
31Biblioteka sieciowa (Network Library, libnet) dostarcza proste API
32dla często używanych niskopoziomowych funkcji sieciowych (głównie
33wstrzykujących pakiety). Przy użyciu libnet można łatwo tworzyć
34dowolne pakiety sieciowe. Biblioteka jest przenośnym szkieletem do
35niskopoziomowego tworzenia i obsługi pakietów sieciowych (szczególnie
36w połączeniu z libpcap). Zawiera funkcje do tworzenia pakietów w
37warstwie IP oraz w warstwie połączenia, a także wiele funkcji
38uzupełniających.
d310be62 39
0963a4cc
JR
40%description -l pt_BR.UTF-8
41Este pacote fornece uma API simples para funções de rede de baixo
42nível comumente usadas (principalmente injeção de pacotes). Usando
43libnet, é simples construir e enviar pacotes de rede arbitrários.
d310be62 44
45%package devel
46Summary: Header files and develpment documentation for libnet
7adb3d27
ER
47Summary(pl.UTF-8): Pliki nagłówkowe i dokumetacja do libnet
48Summary(pt_BR.UTF-8): Arquivos do pacote libnet para desenvolvimento
d310be62 49Group: Development/Libraries
c33ed2ee 50Requires: %{name} = %{version}-%{release}
d310be62 51
52%description devel
53Header files and develpment documentation for libnet.
54
0963a4cc
JR
55%description devel -l pl.UTF-8
56Pliki nagłówkowe i dokumentacja do libnet.
d310be62 57
0963a4cc
JR
58%description devel -l pt_BR.UTF-8
59Arquivos de cabeçalho e bibliotecas usadas no desenvolvimento de
d310be62 60aplicativos que usam libnet.
61
62%package static
63Summary: Static libnet library
7adb3d27
ER
64Summary(pl.UTF-8): Biblioteka statyczna libnet
65Summary(pt_BR.UTF-8): Arquivos do pacote libnet para desenvolvimento estático
d310be62 66Group: Development/Libraries
c33ed2ee 67Requires: %{name}-devel = %{version}-%{release}
d310be62 68
69%description static
70Static libnet library.
71
0963a4cc 72%description static -l pl.UTF-8
d310be62 73Biblioteka statyczna libnet.
74
0963a4cc
JR
75%description static -l pt_BR.UTF-8
76Arquivos de cabeçalho e bibliotecas usadas no desenvolvimento de
77aplicativos estáticos que usam libnet.
d310be62 78
79%prep
80%setup -q -n Libnet-%{version}
81%patch0 -p1
82%patch1 -p1
83%patch2 -p1
84mv include/libnet include/libnet1
85
86%build
87install %{_datadir}/automake/config.* .
88%{__aclocal}
89%{__autoconf}
90%configure \
91 --with-pf_packet=yes
92%{__make} CFLAGS="%{rpmcflags}"
93
94%install
95rm -rf $RPM_BUILD_ROOT
96
97mv include/libnet.h include/libnet1.h
98mv doc/libnet.3 doc/libnet1.3
99mv libnet-config libnet1-config
100
101%{__make} install \
102 DESTDIR=$RPM_BUILD_ROOT \
103 MAN_PREFIX=%{_mandir}/man3
104
105ln -sf libnet1.so.1.0 $RPM_BUILD_ROOT%{_libdir}/libnet1.so
106ln -sf libnet1.so $RPM_BUILD_ROOT%{_libdir}/libpwrite1.so
107ln -sf libnet1.a $RPM_BUILD_ROOT%{_libdir}/libpwrite1.a
108
109%clean
110rm -rf $RPM_BUILD_ROOT
111
112%post -p /sbin/ldconfig
113%postun -p /sbin/ldconfig
114
115%files
116%defattr(644,root,root,755)
117%doc README doc/CHANGELOG*
292cc962 118%attr(755,root,root) %{_libdir}/libnet1.so.*.*
d310be62 119
120%files devel
121%defattr(644,root,root,755)
292cc962
JB
122%attr(755,root,root) %{_bindir}/libnet1-config
123%attr(755,root,root) %{_libdir}/libnet1.so
124%attr(755,root,root) %{_libdir}/libpwrite1.so
125%{_includedir}/libnet1.h
d310be62 126%{_includedir}/libnet1
292cc962 127%{_mandir}/man3/libnet1.3*
d310be62 128
129%files static
130%defattr(644,root,root,755)
292cc962
JB
131%{_libdir}/libnet1.a
132%{_libdir}/libpwrite1.a
This page took 0.129608 seconds and 4 git commands to generate.