Package libnet2: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | Name: libnet2 Version: 1.1.6 Release: alt1 Summary: C library for portable packet creation and injection Group: System/Libraries License: BSD-style Url: http://www.sourceforge.net/projects/libnet-dev/ # http://git.altlinux.org/gears/l/libnet2.git Source: libnet-%version-%release.tar Source1: libnet-config.1 Provides: libnet = %version-%release Obsoletes: libnet < %version-%release BuildRequires: doxygen %def_disable static %package devel Summary: Development Libnet library, header files, documentation and examples Group: Development/C Provides: libnet-devel = %version-%release Obsoletes: libnet-devel < %version-%release Conflicts: libnet1-devel Requires: %name = %version-%release %package devel-static Summary: Static Libnet library Group: Development/C Provides: libnet-devel-static = %version-%release Obsoletes: libnet-devel-static < %version-%release Conflicts: libnet1-devel-static Requires: %name-devel = %version-%release %description Libnet is an API to help with the construction and handling 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. Libnet is avery handy with which to write network tools and network test code. See the manpage and sample test code for more detailed information. %description devel Libnet is an API to help with the construction and handling 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. Libnet is avery handy with which to write network tools and network test code. See the manpage and sample test code for more detailed information. This package contains the development library, it's header files, documentation and examples needed to develop Libnet-based applications. %description devel-static Libnet is an API to help with the construction and handling 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. Libnet is avery handy with which to write network tools and network test code. See the manpage and sample test code for more detailed information. This package contains the static library required to develop statically linked Libnet-based applications. %prep %setup -n libnet-%version-%release bzip2 -9k doc/CHANGELOG %build %add_optflags -fno-strict-aliasing %autoreconf export ac_cv_libnet_linux_procfs=yes %configure %{subst_enable static} make -C doc doc %make_build %install %makeinstall_std mkdir -p %buildroot%_man1dir install -pm644 %_sourcedir/libnet-config.1 %buildroot%_man1dir/ # Relocate shared libraries from %_libdir/ to /%_lib/ mkdir %buildroot/%_lib for f in %buildroot%_libdir/lib*.so; do t=$(readlink "$f") || continue ln -sf ../../%_lib/"$t" "$f" done mv %buildroot%_libdir/lib*.so.* %buildroot/%_lib/ %define _customdocdir %_docdir/libnet-%version %files /%_lib/*.so.* %files devel %_bindir/* %_libdir/*.so %_includedir/* %_mandir/man?/* %doc doc/{CHANGELOG.bz2,COPYING,DESIGN_NOTES,MIGRATION,PACKET_BUILDING,RAWSOCKET_NON_SEQUITUR,TODO} %if_enabled static %files devel-static %_libdir/*.a %endif %changelog * Mon Apr 02 2012 Dmitry V. Levin <ldv@altlinux.org> 1.1.6-alt1 - Updated to libnet-1.1.6. * Mon Apr 25 2011 Dmitry V. Levin <ldv@altlinux.org> 1.1.5-alt1 - Updated to libnet-1.1.5-42-g4aac7af. * Sun Nov 07 2010 Dmitry V. Levin <ldv@altlinux.org> 1.1.4-alt1 - Updated to 1.1.4. * Fri Dec 19 2008 Dmitry V. Levin <ldv@altlinux.org> 1.1.2.1-alt4 - Removed obsolete %%post_ldconfig/%%postun_ldconfig calls. - Imported patches from Debian libnet-1.1.2.1-4 package. * Fri Sep 28 2007 Dmitry V. Levin <ldv@altlinux.org> 1.1.2.1-alt3 - Relocated shared library from /usr/lib to /lib (#12938). * Sun Apr 08 2007 Dmitry V. Levin <ldv@altlinux.org> 1.1.2.1-alt2 - Backported upstream fix to libnet_in_cksum(). - Disabled gcc optimization based on strict aliasing rules. * Sun Sep 05 2004 Dmitry V. Levin <ldv@altlinux.org> 1.1.2.1-alt1 - Updated to 1.1.2.1. - Updated patches. - Added libnet-config(1) manpage. - Do not build and package static library by default. * Tue Dec 09 2003 Dmitry V. Levin <ldv@altlinux.org> 1.1.0-alt3 - Do not package .la files. * Sat Sep 27 2003 Dmitry V. Levin <ldv@altlinux.org> 1.1.0-alt2 - Fixed libnet_init() to work without complete root privileges. * Sun Nov 24 2002 Dmitry V. Levin <ldv@altlinux.org> 1.1.0-alt1 - Updated to 1.1.0 - Ported to autoconf >= 2.53, automake >= 1.6.1 - Libtoolized. - Renamed to libnet2. * Mon Apr 15 2002 Dmitry V. Levin <ldv@alt-linux.org> 1.0.2a-ipl2mdk - Moved static libraries to devel-static subpackage. * Thu Feb 08 2001 Dmitry V. Levin <ldv@fandra.org> 1.0.2a-ipl1mdk - 1.0.2a * Mon Feb 05 2001 Dmitry V. Levin <ldv@fandra.org> 1.0.2-ipl1mdk - 1.0.2 * Sat Sep 02 2000 Dmitry V. Levin <ldv@fandra.org> 1.0.1b-ipl1mdk - 1.0.1b - Build and package shared library too. * Fri Mar 24 2000 Dmitry V. Levin <ldv@fandra.org> - 1.0.1 * Wed Mar 15 2000 Dmitry V. Levin <ldv@fandra.org> - removed Makefile.in from examples - updated to rpm-3.0.4 * Thu Nov 11 1999 Dmitry V. Levin <ldv@fandra.org> - 1.0 * Tue Sep 16 1999 Dmitry V. Levin <ldv@fandra.org> - initial revision |