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