]> git.pld-linux.org Git - packages/libnet.git/blobdiff - libnet.spec
- use more macros, some cosmetics, added missing "rm -f missing" and use new %doc
[packages/libnet.git] / libnet.spec
index 54b6edb245519f92cb552e366a988ad784e0a817..f067cf9b0cb48a6a4a1a3e5a83855590c5fcdc93 100644 (file)
-Summary:       Packet creation and handling library
-Summary(pl):   Biblioteka do generacji i obróbki pakietów
+Summary:       "libpwrite" Network Routine Library
+Summary(pl):   Biblioteka czynno¶ci sieciowych
+Summary(pt_BR):        API para funções de rede de baixo nível
 Name:          libnet
-Version:       1.0
-Release:       1
-Copyright:     distributable
-Group:         Development/Libraries
-Group(pl):     Programowanie/Biblioteki
-Source:                http://www.packetfactory.net/libnet/dist/%{name}-%{version}.tgz
-Patch:         libnet-autoconf.patch
-URL:           http://www.packetfactory.net/libnet
-BuildPreReq:   libpcap-devel
-BuildRoot:     /tmp/%{name}-%{version}-root
+Version:       1.0.2a
+Release:       6
+Epoch:         1
+License:       BSD
+Group:         Libraries
+Source0:       http://www.packetfactory.net/libnet/dist/%{name}-%{version}.tar.gz
+Patch0:                %{name}-shared.patch
+URL:           http://www.packetfactory.net/libnet/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libpcap-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Libnet is a collection of routines to help with the construction and
-sending of network packets at the link layer and the IP layer. 
-Use libnet in conjunction with packet capture library (libpcap) 
-and you can write some really cool stuff!.
+The Network Library provides a simple API for commonly used low-level
+network functions (mainly packet injection). Using libnet, it is easy
+to build and write arbitrary network packets. It provides a portable
+framework for low-level network packet writing and handling (use
+libnet in conjunction with libpcap and you can write some really cool
+stuff). Libnet includes packet creation at the IP layer and at the
+link layer as well as a host of supplementary and complementary
+functionality.
+
+%description -l pl
+Biblioteka dostarcza API dla popularnych nisko-poziomowych funkcji
+sieciowych (g³ównie wstrzykuj±cych pakiety).
+
+%description -l pt_BR
+Este pacote fornece uma API simples para funções de rede de baixo
+nível comumente usadas (principalmente injeção de pacotes). Usando
+libnet, é simples construir e enviar pacotes de rede arbitrários.
+
+%package devel
+Summary:       Header files and develpment documentation for libnet
+Summary(pl):   Pliki nag³ówkowe i dokumetacja do libnet
+Summary(pt_BR):        Arquivos do pacote libnet para desenvolvimento
+Group:         Development/Libraries
+Requires:      %{name} = %{version}
+
+%description devel
+Header files and develpment documentation for libnet.
+
+%description devel -l pl
+Pliki nag³ówkowe i dokumetacja do libnet.
+
+%description devel -l pt_BR
+Arquivos de cabeçalho e bibliotecas usadas no desenvolvimento de
+aplicativos que usam libnet.
+
+%package static
+Summary:       Static libnet library
+Summary(pl):   Biblioteka statyczna libnet
+Summary(pt_BR):        Arquivos do pacote libnet para desenvolvimento estático
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}
 
-%description -l pl 
-Libnet jest bibliotek± na któr± sk³adaj± siê procedury pomagaj±ce
-w tworzeniu i wysy³aniu pakietów w sieciowych warstwach: danych oraz IP.
-W po³±czeniu z bibliotek± do przechwytywania pakietów (libpcap), libnet
-pozwoli Ci na napisanie naprawdê fajnych rzeczy!.
+%description static
+Static libnet library.
+
+%description static -l pl
+Biblioteka statyczna libnet.
+
+%description static -l pt_BR
+Arquivos de cabeçalho e bibliotecas usadas no desenvolvimento de
+aplicativos estáticos que usam libnet.
 
 %prep
 %setup -q -n Libnet-%{version}
-%patch -p0
-
-rm -rf doc/{.#CHANGELOG.1.13,CVS,html/CVS}
-rm -rf example/{CVS,html/CVS}
+%patch0 -p1
 
 %build
-autoconf
+%{__aclocal}
+%{__autoconf}
 %configure \
        --with-pf_packet=yes
-
-make CFLAGS="$RPM_OPT_FLAGS -funroll-loops -fomit-frame-pointer -Wall"
+%{__make} CFLAGS="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/usr/src/examples/libnet
-
-make install DESTDIR=$RPM_BUILD_ROOT
 
-ln -sf libnet.a $RPM_BUILD_ROOT%{_libdir}/libpwrite.a
-cp example/*    $RPM_BUILD_ROOT/usr/src/examples/libnet
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       MAN_PREFIX=%{_mandir}/man3
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
-       doc/{CHANGELOG*,README*,COPYING,PORTS,TODO}
+ln -sf libnet.so.1.0   $RPM_BUILD_ROOT%{_libdir}/libnet.so
+ln -sf libnet.so       $RPM_BUILD_ROOT%{_libdir}/libpwrite.so
+ln -sf libnet.a                $RPM_BUILD_ROOT%{_libdir}/libpwrite.a
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
-%doc doc/*.gz
+%doc README doc/CHANGELOG*
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
+
+%files devel
+%defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_includedir}/*.h
+%{_includedir}/libnet
+%{_mandir}/man*/*
 
-%{_includedir}/*
-%{_libdir}/*.a
-%{_mandir}/man3/*
-/usr/src/examples/libnet
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a
This page took 0.048494 seconds and 4 git commands to generate.