Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:aevseev
libnet
libnet.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libnet.spec of Package libnet
%define realname libnet %define srcext tar.xz %define so_ver 9 # turn off the generation of debuginfo rpm (RH9) ?? %global debug_package %{nil} # Common info Name: %{realname}%{?so_ver} Version: 0 Release: wiz%{?extraver:0.}1%{?dist} License: BSD-2-Clause Group: System/Libraries URL: https://codedocs.xyz/libnet/libnet/ Summary: Portable framework for low-level network packet construction # Install-time parameters Provides: %{realname} # Build-time parameters BuildRequires: autoconf >= 2.69 automake >= 1.14 libtool >= 2.4.2 BuildRequires: pkg-config # manpages BuildRequires: doxygen BuildRoot: %{_tmppath}/%{name}-root Source: %{realname}-%{version}%{?extraver}.%{srcext} %description Libnet is an API to help with the construction and injection of 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. %package -n %{realname}-devel Group: Development/Languages/C and C++ Summary: Development files for %{name} Requires: %{name} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} %description -n %{realname}-devel Development files for %{name}. libnet provides a fairly portable framework for network packet construction and injection. %prep %setup -q -n %{realname}-%{version}%{?extraver} test -x configure || autoreconf --install %build _CFLAGS='%{optflags} %{?gcc_lto}' _LDFLAGS='-Wl,--as-needed -Wl,--strip-all -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro %{?gcc_lto}' %configure \ --disable-static \ CFLAGS="$_CFLAGS" \ LDFLAGS="$_LDFLAGS" %{__make} %{?_smp_mflags} %install %{__make} install DESTDIR=%{buildroot} %clean [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} %files %defattr(-,root,root) %license LICENSE %doc README.md ChangeLog.md %{_libdir}/%{realname}.so.%{?so_ver}* # Development stuff %files -n %{realname}-devel %defattr(-,root,root) %license LICENSE %doc README.md ChangeLog.md %doc doc/CONTRIB doc/DESIGN_NOTES doc/HACKING.md doc/MIGRATION.md %doc doc/PACKET_BUILDING doc/RAWSOCKET.md %doc doc/html/ %{_bindir}/libnet-config %{_libdir}/pkgconfig/%{realname}.pc %dir %{_includedir}/%{realname}/ %{_includedir}/%{realname}/*.h %{_includedir}/%{realname}.h %{_libdir}/%{realname}.so %doc %{_mandir}/man3/* %exclude %{_libdir}/*.la %exclude %{_datadir}/doc/ %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor