]> git.pld-linux.org Git - packages/libnet.git/blob - libnet.spec
- rel 4
[packages/libnet.git] / libnet.spec
1 Summary:        C library for portable packet creation and injection
2 Summary(pl.UTF-8):      Biblioteka C do przenośnego tworzenia i wprowadzania pakietów
3 Summary(pt_BR.UTF-8):   API para funções de rede de baixo nível
4 Name:           libnet
5 Version:        1.1.2.1
6 Release:        4
7 Epoch:          1
8 License:        BSD
9 Group:          Libraries
10 Source0:        http://www.packetfactory.net/libnet/dist/%{name}-%{version}.tar.gz
11 # Source0-md5:  be845c41170d72c7db524f3411b50256
12 Patch0:         %{name}-shared.patch
13 Patch1:         %{name}-am.patch
14 URL:            http://www.packetfactory.net/libnet/
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  libtool
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 The Network Library provides a simple API for commonly used low-level
22 network functions (mainly packet injection). Using libnet, it is easy
23 to build and write arbitrary network packets. It provides a portable
24 framework for low-level network packet writing and handling (use
25 libnet in conjunction with libpcap and you can write some really cool
26 stuff). Libnet includes packet creation at the IP layer and at the
27 link layer as well as a host of supplementary and complementary
28 functionality.
29
30 %description -l pl.UTF-8
31 Biblioteka dostarcza API dla popularnych niskopoziomowych funkcji
32 sieciowych (głównie wprowadzania pakietów). Przy użyciu libnet można
33 łatwo stworzyć dowolne pakiety sieciowe. Biblioteka dostarcza
34 przenośny szkielet do niskopoziomowego zapisu i obsługi pakietów
35 sieciowych (w połączeniu z libpcap można napisać coś naprawdę
36 fajnego). Libnet obejmuje tworzenie pakietów w warstwie IP i
37 połączenia, a także funkcjonalność dodatkową i uzupełniającą.
38
39 %description -l pt_BR.UTF-8
40 Este pacote fornece uma API simples para funções de rede de baixo
41 nível comumente usadas (principalmente injeção de pacotes). Usando
42 libnet, é simples construir e enviar pacotes de rede arbitrários.
43
44 %package devel
45 Summary:        Header files and develpment documentation for libnet
46 Summary(pl.UTF-8):      Pliki nagłówkowe i dokumetacja do libnet
47 Summary(pt_BR.UTF-8):   Arquivos do pacote libnet para desenvolvimento
48 Group:          Development/Libraries
49 Requires:       %{name} = %{epoch}:%{version}-%{release}
50
51 %description devel
52 Header files and develpment documentation for libnet.
53
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe i dokumentacja do libnet.
56
57 %description devel -l pt_BR.UTF-8
58 Arquivos de cabeçalho e bibliotecas usadas no desenvolvimento de
59 aplicativos que usam libnet.
60
61 %package static
62 Summary:        Static libnet library
63 Summary(pl.UTF-8):      Biblioteka statyczna libnet
64 Summary(pt_BR.UTF-8):   Arquivos do pacote libnet para desenvolvimento estático
65 Group:          Development/Libraries
66 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
67
68 %description static
69 Static libnet library.
70
71 %description static -l pl.UTF-8
72 Biblioteka statyczna libnet.
73
74 %description static -l pt_BR.UTF-8
75 Arquivos de cabeçalho e bibliotecas usadas no desenvolvimento de
76 aplicativos estáticos que usam libnet.
77
78 %package examples
79 Summary:        libnet - example programs
80 Summary(pl.UTF-8):      libnet - programy przykładowe
81 Group:          Development/Libraries
82 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
83
84 %description examples
85 libnet - example programs.
86
87 %description examples -l pl.UTF-8
88 libnet - programy przykładowe.
89
90 %prep
91 %setup -q -n %{name}
92 %patch0 -p1
93 %patch1 -p1
94
95 %build
96 %{__libtoolize}
97 %{__aclocal}
98 %{__autoconf}
99 %{__automake}
100 %configure \
101         --with-pf_packet=yes
102 %{__make} \
103         CFLAGS="%{rpmcflags}"
104
105 %install
106 rm -rf $RPM_BUILD_ROOT
107 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_mandir}/man3,%{_bindir}}
108
109 %{__make} install \
110         DESTDIR=$RPM_BUILD_ROOT
111
112 ln -sf libnet.so        $RPM_BUILD_ROOT%{_libdir}/libpwrite.so
113 ln -sf libnet.a         $RPM_BUILD_ROOT%{_libdir}/libpwrite.a
114 install sample/*.[ch]   $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
115 install doc/man/man3/libnet-functions.h.3 $RPM_BUILD_ROOT%{_mandir}/man3
116 install libnet-config   $RPM_BUILD_ROOT%{_bindir}
117
118 %clean
119 rm -rf $RPM_BUILD_ROOT
120
121 %post   -p /sbin/ldconfig
122 %postun -p /sbin/ldconfig
123
124 %files
125 %defattr(644,root,root,755)
126 %doc README doc/{CHANGELOG,MIGRATION,PACKET_BUILDING}
127 %attr(755,root,root) %{_libdir}/lib*.so.*.*
128
129 %files devel
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_bindir}/libnet-config
132 %attr(755,root,root) %{_libdir}/lib*.so
133 %{_libdir}/lib*.la
134 %{_includedir}/*.h
135 %{_includedir}/libnet
136 %{_mandir}/man*/*
137
138 %files static
139 %defattr(644,root,root,755)
140 %{_libdir}/lib*.a
141
142 %files examples
143 %defattr(644,root,root,755)
144 %{_examplesdir}/%{name}-%{version}
This page took 0.093413 seconds and 4 git commands to generate.