Blame SPECS/libnet.spec

c95d7f
Summary:	C library for portable packet creation and injection
c95d7f
Name:		libnet
c95d7f
Version:	1.1.6
c95d7f
Release:	7%{?dist}
c95d7f
License:	BSD
c95d7f
Group:		System Environment/Libraries
c95d7f
URL:		http://www.sourceforge.net/projects/libnet-dev/
c95d7f
Source:		http://downloads.sourceforge.net/libnet-dev/%{name}-%{version}.tar.gz
c95d7f
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
c95d7f
c95d7f
%description
c95d7f
Libnet is an API to help with the construction and handling of network
c95d7f
packets. It provides a portable framework for low-level network packet
c95d7f
writing and handling (use libnet in conjunction with libpcap and you can
c95d7f
write some really cool stuff). Libnet includes packet creation at the IP
c95d7f
layer and at the link layer as well as a host of supplementary and
c95d7f
complementary functionality.
c95d7f
c95d7f
%package devel
c95d7f
Summary:	Development files for the libnet library
c95d7f
Group:		Development/Libraries
c95d7f
Requires:	%{name} = %{version}-%{release}
c95d7f
c95d7f
%description devel
c95d7f
The libnet-devel package includes header files and libraries necessary
c95d7f
for developing programs which use the libnet library. Libnet is very handy
c95d7f
with which to write network tools and network test code. See the manpage
c95d7f
and sample test code for more detailed information.
c95d7f
c95d7f
%prep
c95d7f
%setup -q
c95d7f
c95d7f
# Keep the sample directory untouched by make
c95d7f
rm -rf __dist_sample
c95d7f
mkdir __dist_sample
c95d7f
cp -a sample __dist_sample
c95d7f
c95d7f
%build
c95d7f
%configure --libdir=%{_libdir}
c95d7f
make %{?_smp_mflags}
c95d7f
c95d7f
%install
c95d7f
rm -rf $RPM_BUILD_ROOT
c95d7f
make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
c95d7f
c95d7f
# Move %%{name}.so to %%{_libdir}, remove static .a and libtool .la files
c95d7f
rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}.{a,la,so}
c95d7f
pushd $RPM_BUILD_ROOT/%{_libdir}
c95d7f
#mkdir -p $RPM_BUILD_ROOT%%{_libdir}
c95d7f
ln -sf ../../%{_libdir}/$(ls %{name}.so.?.?.?) $RPM_BUILD_ROOT%{_libdir}/%{name}.so
c95d7f
popd
c95d7f
c95d7f
# Prepare samples directory and perform some fixes
c95d7f
rm -rf __dist_sample/sample/win32
c95d7f
rm -f __dist_sample/sample/Makefile.{am,in}
c95d7f
sed -e 's@#include "../include/libnet.h"@#include <libnet.h>@' \
c95d7f
  __dist_sample/sample/libnet_test.h > __dist_sample/sample/libnet_test.h.new
c95d7f
touch -c -r __dist_sample/sample/libnet_test.h{,.new}
c95d7f
mv -f __dist_sample/sample/libnet_test.h{.new,}
c95d7f
c95d7f
# Remove makefile relics from documentation
c95d7f
rm -f doc/html/Makefile*
c95d7f
c95d7f
%clean
c95d7f
rm -rf $RPM_BUILD_ROOT
c95d7f
c95d7f
%post -p /sbin/ldconfig
c95d7f
c95d7f
%postun -p /sbin/ldconfig
c95d7f
c95d7f
%files
c95d7f
%defattr(-,root,root,-)
c95d7f
%doc README doc/CHANGELOG doc/CONTRIB doc/COPYING
c95d7f
%{_libdir}/%{name}.so.*
c95d7f
c95d7f
%files devel
c95d7f
%defattr(-,root,root,-)
c95d7f
%doc doc/CHANGELOG doc/CONTRIB doc/COPYING doc/DESIGN_NOTES doc/MIGRATION doc/PACKET_BUILDING
c95d7f
%doc doc/RAWSOCKET_NON_SEQUITUR doc/TODO doc/html/ __dist_sample/sample/
c95d7f
%{_bindir}/%{name}-config
c95d7f
%{_libdir}/%{name}.so
c95d7f
%{_includedir}/libnet.h
c95d7f
%{_includedir}/%{name}/
c95d7f
%{_mandir}/man3/%{name}*.3*
c95d7f
c95d7f
%changelog
c95d7f
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.1.6-7
c95d7f
- Mass rebuild 2014-01-24
c95d7f
c95d7f
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.1.6-6
c95d7f
- Mass rebuild 2013-12-27
c95d7f
c95d7f
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-5
c95d7f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c95d7f
c95d7f
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-4
c95d7f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c95d7f
c95d7f
* Mon Apr 02 2012 Jon Ciesla <limburgher@gmail.com> - 1.1.6-3
c95d7f
- Removed redundant leading slashes.
c95d7f
c95d7f
* Mon Apr 02 2012 Jon Ciesla <limburgher@gmail.com> - 1.1.6-2
c95d7f
- Move from lib to libdir.
c95d7f
c95d7f
* Fri Mar 30 2012 Jon Ciesla <limburgher@gmail.com> - 1.1.6-1
c95d7f
- Upgrade to 1.1.6, BZ 808394.
c95d7f
c95d7f
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-3
c95d7f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c95d7f
c95d7f
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-2
c95d7f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c95d7f
c95d7f
* Tue Dec 28 2010 Robert Scheck <robert@fedoraproject.org> 1.1.5-1
c95d7f
- Upgrade to 1.1.5
c95d7f
c95d7f
* Fri Jul 09 2010 Robert Scheck <robert@fedoraproject.org> 1.1.4-4
c95d7f
- Added patch for capability support rather UID check (#589770)
c95d7f
c95d7f
* Fri Aug 21 2009 Robert Scheck <robert@fedoraproject.org> 1.1.4-3
c95d7f
- Move libnet.so.* to /lib[64] to avoid static linking (#518150)
c95d7f
c95d7f
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-2
c95d7f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c95d7f
c95d7f
* Thu Jun 11 2009 Robert Scheck <robert@fedoraproject.org> 1.1.4-1
c95d7f
- Upgrade to 1.1.4
c95d7f
c95d7f
* Sat Jun 06 2009 Robert Scheck <robert@fedoraproject.org> 1.1.3-2
c95d7f
- Added upstream patch to solve HAVE_CONFIG_H (#501633, #502400)
c95d7f
c95d7f
* Sat May 16 2009 Robert Scheck <robert@fedoraproject.org> 1.1.3-1
c95d7f
- Upgrade to 1.1.3
c95d7f
c95d7f
* Sun Apr 19 2009 Robert Scheck <robert@fedoraproject.org> 1.1.2.1-14
c95d7f
- Enabled a shared library and made lots of spec file cleanups
c95d7f
c95d7f
* Mon Feb 23 2009 Robert Scheck <robert@fedoraproject.org> 1.1.2.1-13
c95d7f
- Rebuild against gcc 4.4 and rpm 4.6
c95d7f
c95d7f
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.2.1-12
c95d7f
- Autorebuild for GCC 4.3
c95d7f
c95d7f
* Wed Aug  1 2007 Patrice Dumas <pertusus@free.fr> 1.1.2.1-11
c95d7f
- build with -fPIC (#250296)
c95d7f
c95d7f
* Fri Jan 12 2007 Patrice Dumas <pertusus@free.fr> 1.1.2.1-10
c95d7f
- add debian patch to correct bad checksums
c95d7f
c95d7f
* Tue Aug 29 2006 Patrice Dumas <pertusus@free.fr> 1.1.2.1-9
c95d7f
- rebuild for FC6
c95d7f
c95d7f
* Fri Feb 17 2006 Patrice Dumas <pertusus@free.fr> 1.1.2.1-8
c95d7f
- rebuild for fc5
c95d7f
c95d7f
* Thu Dec 22 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-7
c95d7f
- rebuild
c95d7f
c95d7f
* Mon Sep 12 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-6
c95d7f
- bump release and add dist tag
c95d7f
c95d7f
* Tue Aug 30 2005 Paul Howarth <paul@city-fan.org> 1.1.2.1-5
c95d7f
- spec file cleanup
c95d7f
c95d7f
* Fri Aug 26 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-4
c95d7f
- use pushd and popd (from Oliver Falk) 
c95d7f
c95d7f
* Mon Aug 22 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-3
c95d7f
- Correct dos end of lines
c95d7f
- add in devel: Provides: %%{name} = %%{version}-%%{release} 
c95d7f
c95d7f
* Fri Aug 12 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-2
c95d7f
- put everything in a devel subpackage
c95d7f
- add smpflags
c95d7f
- clean in sample
c95d7f
c95d7f
* Fri Aug 12 2005 Patrice Dumas <pertusus@free.fr> 1.1.2.1-1
c95d7f
- rebuild changing only name
c95d7f
c95d7f
* Wed Jun 02 2004 Marcin Garski <garski@poczta.onet.pl> 1.1.2.1-2.fc2
c95d7f
- Rebuild for Fedora Core 2
c95d7f
c95d7f
* Sat May 08 2004 Marcin Garski <garski@poczta.onet.pl> 1.1.2.1-1
c95d7f
- Initial specfile