]> git.pld-linux.org Git - packages/libnet.git/blob - libnet.spec
- merge translations from Conectiva.
[packages/libnet.git] / libnet.spec
1 Summary:        "libpwrite" Network Routine Library
2 Summary(pl):    Biblioteka czynno¶ci sieciowych
3 Summary(pt_BR): API para funções de rede de baixo nível
4 Name:           libnet
5 Version:        1.0.2a
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 Patch0:         %{name}-shared.patch
12 URL:            http://www.packetfactory.net/libnet/
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  libpcap-devel
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 The Network Library provides a simple API for commonly used low-level
20 network functions (mainly packet injection). Using libnet, it is easy
21 to build and write arbitrary network packets. It provides a portable
22 framework for low-level network packet writing and handling (use
23 libnet in conjunction with libpcap and you can write some really cool
24 stuff). Libnet includes packet creation at the IP layer and at the
25 link layer as well as a host of supplementary and complementary
26 functionality.
27
28 %description -l pl
29 Biblioteka dostarcza API dla popularnych nisko-poziomowych funkcji
30 sieciowych (g³ównie wstrzykuj±cych pakiety).
31
32 %description -l pt_BR
33 Este pacote fornece uma API simples para funções de rede de baixo
34 nível comumente usadas (principalmente injeção de pacotes). Usando
35 libnet, é simples construir e enviar pacotes de rede arbitrários.
36
37 %package devel
38 Summary:        Header files and develpment documentation for libnet
39 Summary(pl):    Pliki nag³ówkowe i dokumetacja do libnet
40 Summary(pt_BR): Arquivos do pacote libnet para desenvolvimento
41 Group:          Development/Libraries
42 Requires:       %{name} = %{version}
43
44 %description devel
45 Header files and develpment documentation for libnet.
46
47 %description devel -l pl
48 Pliki nag³ówkowe i dokumetacja do libnet.
49
50 %description devel -l pt_BR
51 Arquivos de cabeçalho e bibliotecas usadas no desenvolvimento de
52 aplicativos que usam libnet.
53
54 %package static
55 Summary:        Static libnet library
56 Summary(pl):    Biblioteka statyczna libnet
57 Summary(pt_BR): Arquivos do pacote libnet para desenvolvimento estático
58 Group:          Development/Libraries
59 Requires:       %{name}-devel = %{version}
60
61 %description static
62 Static libnet library.
63
64 %description static -l pl
65 Biblioteka statyczna libnet.
66
67 %description static -l pt_BR
68 Arquivos de cabeçalho e bibliotecas usadas no desenvolvimento de
69 aplicativos estáticos que usam libnet.
70
71 %prep
72 %setup -q -n Libnet-%{version}
73 %patch0 -p1
74
75 %build
76 aclocal
77 autoconf
78 %configure \
79         --with-pf_packet=yes
80 %{__make} CFLAGS="%{rpmcflags}"
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84
85 %{__make} install \
86         DESTDIR=$RPM_BUILD_ROOT \
87         MAN_PREFIX=%{_mandir}/man3
88
89 (cd $RPM_BUILD_ROOT%{_libdir} ; ln -sf libnet.so.*.* libnet.so )
90 ln -sf libnet.so $RPM_BUILD_ROOT%{_libdir}/libpwrite
91
92 gzip -9nf README doc/CHANGELOG*
93
94 %post   -p /sbin/ldconfig
95 %postun -p /sbin/ldconfig
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %files
101 %defattr(644,root,root,755)
102 %doc *.gz doc/*.gz
103 %attr(755,root,root) %{_libdir}/lib*.so.*.*
104 %attr(755,root,root) %{_libdir}/libpwrite
105
106 %files devel
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_bindir}/*
109 %attr(755,root,root) %{_libdir}/lib*.so
110 %{_includedir}/*.h
111 %{_includedir}/libnet
112 %{_mandir}/man*/*
113
114 %files static
115 %defattr(644,root,root,755)
116 %{_libdir}/lib*.a
This page took 0.052735 seconds and 4 git commands to generate.