]> git.pld-linux.org Git - packages/libnet.git/blob - libnet.spec
- adapterized and made spec %%debug ready or added using %%rpm*flags macros
[packages/libnet.git] / libnet.spec
1 Summary:        "libpwrite" Network Routine Library
2 Summary(pl):    Biblioteka czynno¶ci sieciowych
3 Name:           libnet
4 Version:        1.0.1b
5 Release:        3
6 Epoch:          1
7 License:        BSD
8 Group:          Libraries
9 Group(de):      Libraries
10 Group(es):      Bibliotecas
11 Group(fr):      Librairies
12 Group(pl):      Biblioteki
13 Source0:        http://www.packetfactory.net/libnet/dist/%{name}-%{version}.tar.gz
14 Patch0:         %{name}-shared.patch
15 URL:            http://www.packetfactory.net/libnet/
16 BuildRequires:  libpcap-devel
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 The Network Library provides a simple API for commonly used low-level
21 network functions (mainly packet injection). Using libnet, it is easy
22 to build and write arbitrary network packets. It provides a portable
23 framework for low-level network packet writing and handling (use
24 libnet in conjunction with libpcap and you can write some really cool
25 stuff). Libnet includes packet creation at the IP layer and at the
26 link layer as well as a host of supplementary and complementary
27 functionality.
28
29 %description -l pl
30 Biblioteka dostarcza API dla popularnych nisko-poziomowych funkcji
31 sieciowych (g³ównie wstrzykuj±cych pakiety).
32
33 %package devel
34 Summary:        Header files and develpment documentation for libnet
35 Summary(pl):    Pliki nag³ówkowe i dokumetacja do libnet
36 Group:          Development/Libraries
37 Group(de):      Entwicklung/Libraries
38 Group(fr):      Development/Librairies
39 Group(pl):      Programowanie/Biblioteki
40 Requires:       %{name} = %{version}
41
42 %description devel
43 Header files and develpment documentation for libnet.
44
45 %description -l pl devel
46 Pliki nag³ówkowe i dokumetacja do libnet.
47
48 %package static
49 Summary:        Static libnet library
50 Summary(pl):    Biblioteka statyczna libnet
51 Group:          Development/Libraries
52 Group(de):      Entwicklung/Libraries
53 Group(fr):      Development/Librairies
54 Group(pl):      Programowanie/Biblioteki
55 Requires:       %{name}-devel = %{version}
56
57 %description static
58 Static libnet library.
59
60 %description -l pl static
61 Biblioteka statyczna libnet.
62
63 %prep
64 %setup -q -n Libnet-%{version}
65 %patch0 -p1
66
67 %build
68 %configure \
69         --with-pf_packet=yes
70 %{__make} CFLAGS="%{rpmcflags}"
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74
75 %{__make} install \
76         DESTDIR=$RPM_BUILD_ROOT \
77         MAN_PREFIX=%{_mandir}/man3
78
79 (cd $RPM_BUILD_ROOT%{_libdir} ; ln -sf libnet.so.*.* libnet.so )
80 ln -sf libnet.so $RPM_BUILD_ROOT%{_libdir}/libpwrite
81
82 gzip -9nf README doc/CHANGELOG*
83
84 %post   -p /sbin/ldconfig
85 %postun -p /sbin/ldconfig
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %files
91 %defattr(644,root,root,755)
92 %doc *.gz doc/*.gz
93 %attr(755,root,root) %{_libdir}/lib*.so.*.*
94 %attr(755,root,root) %{_libdir}/libpwrite
95
96 %files devel
97 %defattr(644,root,root,755)
98 %doc doc/html
99 %attr(755,root,root) %{_bindir}/*
100 %attr(755,root,root) %{_libdir}/lib*.so
101 %{_includedir}/*.h
102 %{_includedir}/libnet
103 %{_mandir}/man*/*
104
105 %files static
106 %defattr(644,root,root,755)
107 %{_libdir}/lib*.a
This page took 0.095315 seconds and 4 git commands to generate.