Package libgnet: 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 178 179 180 181 182 183 184 185 186 187 188 189 190 191 | %define oname gnet %define ver_major 2.0 %def_disable static Name: lib%oname Version: %ver_major.8 Release: alt4.1 Summary: GNet is a simple network library License: LGPL Group: System/Libraries URL: http://www.gnetlibrary.org/ Packager: GNOME Maintainers Team <gnome@packages.altlinux.org> Source: %gnome_ftp/%oname/%ver_major/%oname-%version.tar.bz2 Source1: %name-%ver_major.map Patch1: %name-%version-alt-versioning.patch Patch2: libgnet-fix-move_define.patch Patch3: libgnet-2.0.8-alt-DSO.patch BuildRequires: rpm-build-gnome BuildRequires: gtk-doc libcheck-devel BuildRequires: glib2-devel >= 2.6.0 BuildRequires: gcc-c++ %description GNet is a simple network library. It is written in C, object-oriented, and built upon GLib. It is intended to be easy to use and port. GNet comes with documentation and examples. It is licensed under the GNU Library General Public Licence. Features: * TCP "client" and "server" sockets * UDP and IP Multicast sockets * High-level TCP connection and server objects * Asynchronous socket IO * Internet address abstraction * Asynchronous DNS lookup * IPv4 and IPv6 support * Byte packing and unpacking * URI parsing * SHA and MD5 hashes * Base64 encoding and decoding * SOCKS support * High-level HTTP connection object %package devel Summary: Header files for the Gnet library Group: Development/C Requires: %name = %version-%release %description devel Gnet is a simple network library. It is writen in C, object-oriented, and built upon glib. This package allows you to develop applications that use the Gnet library. %if_enabled static %package devel-static Summary: Static Gnet library Group: Development/C Requires: %name-devel = %version-%release glib2-devel-static %description devel-static Gnet is a simple network library. It is writen in C, object-oriented, and built upon glib. This package allows you to develop statically linked applications that use the Gnet library. %endif %prep %setup -q -n %oname-%version %patch1 -p1 %patch2 -p1 %patch3 -p2 install -p -m644 %SOURCE1 src/libgnet-2.0.map %build %autoreconf %configure \ %{subst_enable static} \ --with-html-dir=%_docdir %make_build %install %make_install DESTDIR=%buildroot install %make -C examples clean rm -f examples/Makefile* rm -Rf examples/.deps/ rm -Rf %buildroot%_docdir %files %_libdir/*.so.* %files devel %_libdir/*.so %_libdir/gnet-2.0 %_pkgconfigdir/* %_includedir/* %_datadir/aclocal/* %doc AUTHORS ChangeLog HACKING NEWS README TODO doc/html examples %if_enabled static %files devel-static %_libdir/*.a %endif %changelog * Wed Jul 11 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.8-alt4.1 - Fixed build * Mon Nov 29 2010 Alexey Shabalin <shaba@altlinux.ru> 2.0.8-alt4 - fix build by moving a #define before it's used (tnx debian) * Fri Feb 05 2010 Alexey Shabalin <shaba@altlinux.ru> 2.0.8-alt3 - rm glib-devel from Requires in devel package (ALT #22900) * Fri Feb 05 2010 Alexey Shabalin <shaba@altlinux.ru> 2.0.8-alt2 - fix build: update buildreq * Tue Sep 22 2009 Alexey Shabalin <shaba@altlinux.ru> 2.0.8-alt1 - 2.0.8 - add Packager - change description - add versioning - drop obsoleted post scripts * Mon Nov 20 2006 Alexey Shabalin <shaba@altlinux.ru> 2.0.7-alt1 - 2.0.7 - disable default build static libs * Thu Mar 18 2004 Anton Farygin <rider@altlinux.ru> 2.0.5-alt1 - 2.0.5 * Wed Oct 23 2002 AEN <aen@altlinux.ru> 1.1.7-alt2 - pkgconfig file added to devel * Sat Oct 05 2002 Rider <rider@altlinux.ru> 1.1.7-alt1 - 1.1.7 * Sun Aug 25 2002 Rider <rider@altlinux.ru> 1.1.5-alt1 - 1.1.5 * Tue May 29 2001 Dmitry V. Levin <ldv@altlinux.ru> 1.1.0-alt1 - 1.1.0 - Moved static library to devel-static subpackage. * Sat Jan 13 2001 Dmitry V. Levin <ldv@fandra.org> 1.0.4-ipl2mdk - RE adaptions. * Thu Nov 16 2000 Vincent Saugey <vince@mandrakesoft.com> 1.0.4-2mdk - add provides to dev package * Mon Oct 30 2000 Vincent Saugey <vince@mandrakesoft.com> 1.0.4-1mdk - Up to 1.0.4 - Put auconf macro and gnetconfig binarie in devel package - make compliant with new mandrake lib policy - add dependencie on dev package - Patch configure for gnet.h found gnetconfig.h in /usr/lib * Mon Oct 2 2000 Vincent Saugey <vince@mandrakesoft.com> 1.0.3-4mdk - Change devel doc to devel package * Fri Sep 1 2000 Vincent Saugey <vince@mandrakesoft.com> 1.0.3-3mdk - change name - Rebuild for next release * Tue Aug 31 2000 Lenny Cartier <lenny@mandrakesoft.com> 1.0.3-2mdk - macros - BM * Tue Jul 4 2000 Vincent Saugey <vince@mandrakesoft.com> 1.0.3-1mdk - First mdk release - Mandrake adaptation - Clean spec file * Mon Feb 28 2000 David Helder <dhelder@umich.edu> - Updated for version 1.0 * Sat Jan 15 2000 Xavier Nicolovici <nicolovi@club-internet.fr> - Moved lib*.so and lib*a to the devel package - Creation of a gnet.spec.in for autoconf process * Wed Jan 14 2000 Xavier Nicolovici <nicolovi@club-internet.fr> - HTML documentation has been move to /usr/doc/gnet-{version}/html * Thu Jan 13 2000 Xavier Nicolovici <nicolovi@club-internet.fr> - First try at an RPM |