]> git.pld-linux.org Git - packages/libnet.git/blob - libnet.spec
- use more macros, some cosmetics, added missing "rm -f missing" and use new %doc
[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:        6
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 ln -sf libnet.so.1.0    $RPM_BUILD_ROOT%{_libdir}/libnet.so
90 ln -sf libnet.so        $RPM_BUILD_ROOT%{_libdir}/libpwrite.so
91 ln -sf libnet.a         $RPM_BUILD_ROOT%{_libdir}/libpwrite.a
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %post   -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
98
99 %files
100 %defattr(644,root,root,755)
101 %doc README doc/CHANGELOG*
102 %attr(755,root,root) %{_libdir}/lib*.so.*.*
103
104 %files devel
105 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_bindir}/*
107 %attr(755,root,root) %{_libdir}/lib*.so
108 %{_includedir}/*.h
109 %{_includedir}/libnet
110 %{_mandir}/man*/*
111
112 %files static
113 %defattr(644,root,root,755)
114 %{_libdir}/lib*.a
This page took 0.055708 seconds and 4 git commands to generate.