]> git.pld-linux.org Git - packages/libnet1.git/blob - libnet1.spec
- based on libnet from Ra
[packages/libnet1.git] / libnet1.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:           libnet1
5 Version:        1.0.2a
6 Release:        1
7 License:        BSD
8 Group:          Libraries
9 Source0:        http://www.packetfactory.net/libnet/dist/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
31 Biblioteka dostarcza API dla popularnych nisko-poziomowych funkcji
32 sieciowych (g³ównie wstrzykuj±cych pakiety).
33
34 %description -l pt_BR
35 Este pacote fornece uma API simples para funções de rede de baixo
36 nível comumente usadas (principalmente injeção de pacotes). Usando
37 libnet, é simples construir e enviar pacotes de rede arbitrários.
38
39 %package devel
40 Summary:        Header files and develpment documentation for libnet
41 Summary(pl):    Pliki nag³ówkowe i dokumetacja do libnet
42 Summary(pt_BR): Arquivos do pacote libnet para desenvolvimento
43 Group:          Development/Libraries
44 Requires:       %{name} = %{version}
45
46 %description devel
47 Header files and develpment documentation for libnet.
48
49 %description devel -l pl
50 Pliki nag³ówkowe i dokumetacja do libnet.
51
52 %description devel -l pt_BR
53 Arquivos de cabeçalho e bibliotecas usadas no desenvolvimento de
54 aplicativos que usam libnet.
55
56 %package static
57 Summary:        Static libnet library
58 Summary(pl):    Biblioteka statyczna libnet
59 Summary(pt_BR): Arquivos do pacote libnet para desenvolvimento estático
60 Group:          Development/Libraries
61 Requires:       %{name}-devel = %{version}
62
63 %description static
64 Static libnet library.
65
66 %description static -l pl
67 Biblioteka statyczna libnet.
68
69 %description static -l pt_BR
70 Arquivos de cabeçalho e bibliotecas usadas no desenvolvimento de
71 aplicativos estáticos que usam libnet.
72
73 %prep
74 %setup -q -n Libnet-%{version}
75 %patch0 -p1
76 %patch1 -p1
77 %patch2 -p1
78 mv include/libnet include/libnet1
79
80 %build
81 install %{_datadir}/automake/config.* .
82 %{__aclocal}
83 %{__autoconf}
84 %configure \
85         --with-pf_packet=yes
86 %{__make} CFLAGS="%{rpmcflags}"
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90
91 mv include/libnet.h include/libnet1.h
92 mv doc/libnet.3 doc/libnet1.3
93 mv libnet-config libnet1-config
94
95 %{__make} install \
96         DESTDIR=$RPM_BUILD_ROOT \
97         MAN_PREFIX=%{_mandir}/man3
98
99 ln -sf libnet1.so.1.0   $RPM_BUILD_ROOT%{_libdir}/libnet1.so
100 ln -sf libnet1.so       $RPM_BUILD_ROOT%{_libdir}/libpwrite1.so
101 ln -sf libnet1.a        $RPM_BUILD_ROOT%{_libdir}/libpwrite1.a
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %post   -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
108
109 %files
110 %defattr(644,root,root,755)
111 %doc README doc/CHANGELOG*
112 %attr(755,root,root) %{_libdir}/lib*.so.*.*
113
114 %files devel
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_bindir}/*
117 %attr(755,root,root) %{_libdir}/lib*.so
118 %{_includedir}/*.h
119 %{_includedir}/libnet1
120 %{_mandir}/man*/*
121
122 %files static
123 %defattr(644,root,root,755)
124 %{_libdir}/lib*.a
This page took 0.086852 seconds and 4 git commands to generate.