]> git.pld-linux.org Git - packages/libnet1.git/blob - libnet1.spec
- x32 rebuild
[packages/libnet1.git] / libnet1.spec
1 Summary:        "libpwrite" Network Routine Library
2 Summary(pl.UTF-8):      Biblioteka czynności sieciowych
3 Summary(pt_BR.UTF-8):   API para funções de rede de baixo nível
4 Name:           libnet1
5 Version:        1.0.2a
6 Release:        4
7 License:        BSD
8 Group:          Libraries
9 Source0:        http://www.packetfactory.net/libnet/dist/deprecated/libnet-%{version}.tar.gz
10 # Source0-md5:  ddf53f0f484184390e8c2a1bd0853667
11 Patch0:         %{name}-shared.patch
12 Patch1:         %{name}-include.patch
13 Patch2:         %{name}-name.patch
14 URL:            http://www.packetfactory.net/libnet/
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  libpcap-devel
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 sieciowa (Network Library, libnet) dostarcza proste API
32 dla często używanych niskopoziomowych funkcji sieciowych (głównie
33 wstrzykujących pakiety). Przy użyciu libnet można łatwo tworzyć
34 dowolne pakiety sieciowe. Biblioteka jest przenośnym szkieletem do
35 niskopoziomowego tworzenia i obsługi pakietów sieciowych (szczególnie
36 w połączeniu z libpcap). Zawiera funkcje do tworzenia pakietów w
37 warstwie IP oraz w warstwie połączenia, a także wiele funkcji
38 uzupełniających.
39
40 %description -l pt_BR.UTF-8
41 Este pacote fornece uma API simples para funções de rede de baixo
42 nível comumente usadas (principalmente injeção de pacotes). Usando
43 libnet, é simples construir e enviar pacotes de rede arbitrários.
44
45 %package devel
46 Summary:        Header files and develpment documentation for libnet
47 Summary(pl.UTF-8):      Pliki nagłówkowe i dokumetacja do libnet
48 Summary(pt_BR.UTF-8):   Arquivos do pacote libnet para desenvolvimento
49 Group:          Development/Libraries
50 Requires:       %{name} = %{version}-%{release}
51
52 %description devel
53 Header files and develpment documentation for libnet.
54
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe i dokumentacja do libnet.
57
58 %description devel -l pt_BR.UTF-8
59 Arquivos de cabeçalho e bibliotecas usadas no desenvolvimento de
60 aplicativos que usam libnet.
61
62 %package static
63 Summary:        Static libnet library
64 Summary(pl.UTF-8):      Biblioteka statyczna libnet
65 Summary(pt_BR.UTF-8):   Arquivos do pacote libnet para desenvolvimento estático
66 Group:          Development/Libraries
67 Requires:       %{name}-devel = %{version}-%{release}
68
69 %description static
70 Static libnet library.
71
72 %description static -l pl.UTF-8
73 Biblioteka statyczna libnet.
74
75 %description static -l pt_BR.UTF-8
76 Arquivos de cabeçalho e bibliotecas usadas no desenvolvimento de
77 aplicativos estáticos que usam libnet.
78
79 %prep
80 %setup -q -n Libnet-%{version}
81 %patch0 -p1
82 %patch1 -p1
83 %patch2 -p1
84 mv include/libnet include/libnet1
85
86 %build
87 install %{_datadir}/automake/config.* .
88 %{__aclocal}
89 %{__autoconf}
90 %configure \
91         --with-pf_packet=yes
92 %{__make} CFLAGS="%{rpmcflags}"
93
94 %install
95 rm -rf $RPM_BUILD_ROOT
96
97 mv include/libnet.h include/libnet1.h
98 mv doc/libnet.3 doc/libnet1.3
99 mv libnet-config libnet1-config
100
101 %{__make} install \
102         DESTDIR=$RPM_BUILD_ROOT \
103         MAN_PREFIX=%{_mandir}/man3
104
105 ln -sf libnet1.so.1.0   $RPM_BUILD_ROOT%{_libdir}/libnet1.so
106 ln -sf libnet1.so       $RPM_BUILD_ROOT%{_libdir}/libpwrite1.so
107 ln -sf libnet1.a        $RPM_BUILD_ROOT%{_libdir}/libpwrite1.a
108
109 %clean
110 rm -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*
118 %attr(755,root,root) %{_libdir}/libnet1.so.*.*
119
120 %files devel
121 %defattr(644,root,root,755)
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
126 %{_includedir}/libnet1
127 %{_mandir}/man3/libnet1.3*
128
129 %files static
130 %defattr(644,root,root,755)
131 %{_libdir}/libnet1.a
132 %{_libdir}/libpwrite1.a
This page took 0.072256 seconds and 3 git commands to generate.