]> 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 1f3c4300e57b75a6f9416e4cd51b931c2059d41d..f067cf9b0cb48a6a4a1a3e5a83855590c5fcdc93 100644 (file)
 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.1b
-Release:       1
+Version:       1.0.2a
+Release:       6
 Epoch:         1
 License:       BSD
 Group:         Libraries
-Group(pl):     Biblioteki
-Group(fr):     Librairies
 Source0:       http://www.packetfactory.net/libnet/dist/%{name}-%{version}.tar.gz
-Patch0:                libnet-shared.patch
+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
-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.
+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).
+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
-Group(pl):     Programowanie/Biblioteki
-Group(fr):     Development/Librairies
 Requires:      %{name} = %{version}
 
 %description devel
 Header files and develpment documentation for libnet.
 
-%description -l pl devel
+%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
-Group(pl):     Programowanie/Biblioteki
-Group(fr):     Development/Librairies
 Requires:      %{name}-devel = %{version}
 
 %description static
 Static libnet library.
 
-%description -l pl static
+%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}
 %patch0 -p1
 
 %build
+%{__aclocal}
+%{__autoconf}
 %configure \
        --with-pf_packet=yes
-%{__make}
+%{__make} CFLAGS="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} \
+%{__make} install \
        DESTDIR=$RPM_BUILD_ROOT \
-       MAN_PREFIX=%{_mandir}/man3 \
-       install
+       MAN_PREFIX=%{_mandir}/man3
 
-ln -sf libnet.so       $RPM_BUILD_ROOT%{_libdir}/libpwrite
+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
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
-       README doc/CHANGELOG*
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
 %defattr(644,root,root,755)
-%doc *.gz doc/*.gz
+%doc README doc/CHANGELOG*
 %attr(755,root,root) %{_libdir}/lib*.so.*.*
-%attr(755,root,root) %{_libdir}/libpwrite
 
 %files devel
 %defattr(644,root,root,755)
-%doc doc/html
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %{_libdir}/lib*.so
 %{_includedir}/*.h
This page took 0.075112 seconds and 4 git commands to generate.