/[packages]/cauldron/gnet2/current/SPECS/gnet2.spec
ViewVC logotype

Contents of /cauldron/gnet2/current/SPECS/gnet2.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1795135 - (show annotations) (download)
Thu Mar 17 00:46:23 2022 UTC (3 years, 4 months ago) by umeabot
File size: 2357 byte(s)
Mageia 9 Mass Rebuild
1 %define api 2.0
2 %define major 0
3 %define libname %mklibname gnet %{api} %{major}
4 %define devname %mklibname gnet %{api} -d
5
6 Summary: A network library
7 Name: gnet2
8 Version: 2.0.8
9 Release: %mkrel 20
10 URL: https://wiki.gnome.org/GNetLibrary/
11 License: LGPL
12 Source0: gnet-%{version}.tar.bz2
13 Patch0: gnet2-2.0.8-build.patch
14 Group: System/Libraries
15 BuildRequires: pkgconfig(glib-2.0)
16
17 %description
18 Gnet is a simple network library. It is written in C, object-oriented,
19 and built upon glib. It is intended to be small, fast, easy-to-use,
20 and easy to port. The interface is similar to the interface for
21 Java's network library.
22
23 Features:
24 * TCP 'client' sockets
25 * TCP 'server' sockets
26 * Non-blocking TCP sockets
27 * UDP
28 * IP Multicast
29 * Internet address abstraction
30
31 %package -n %{libname}
32 Summary: Libgnet, a network library
33 Group: System/Libraries
34 Obsoletes: %{_lib}gnet-2.0_0 < 2.0.8-11
35
36 %description -n %{libname}
37 Gnet is a simple network library. It is written in C, object-oriented,
38 and built upon glib. It is intended to be small, fast, easy-to-use,
39 and easy to port. The interface is similar to the interface for
40 Java's network library.
41
42 %package -n %{devname}
43 Summary: Header files for the Gnet library
44 Group: Development/C
45 Provides: lib%{name}-devel = %{version}-%{release}
46 Provides: libgnet%{api}-devel = %{version}-%{release}
47 Requires: %{libname} = %{version}-%{release}
48 Obsoletes: %{_lib}gnet-2.0-devel < 2.0.8-11
49
50 %description -n %{devname}
51 Gnet is a simple network library. It is written in C, object-oriented,
52 and built upon glib.
53
54 This package allows you to develop applications that use the Gnet
55 library.
56
57 %prep
58
59 %setup -q -n gnet-%{version}
60 chmod 755 doc/html
61 %autopatch -p1
62
63 %build
64 # fix build on aarch64
65 autoreconf -vfi
66
67 export CFLAGS="%{optflags} -fPIC"
68 %configure \
69 --disable-static
70
71 %make_build
72
73 %install
74 %make_install
75
76 #remove unpackaged files
77 rm -rf %{buildroot}%{_datadir}/doc/libgnet%{api_version}-dev
78 rm -fr %{buildroot}%{_datadir}/gtk-doc/
79
80 #we don't want these
81 find %{buildroot} -name "*.la" -delete
82
83 %files -n %{libname}
84 %{_libdir}/libgnet-%{api}.so.%{major}
85 %{_libdir}/libgnet-%{api}.so.%{major}.*
86
87 %files -n %{devname}
88 %doc README ChangeLog NEWS TODO AUTHORS HACKING doc/html
89 %{_includedir}/gnet-2.0/
90 %{_datadir}/aclocal/*
91 %{_libdir}/gnet-2.0/
92 %{_libdir}/libgnet-%{api}.so
93 %{_libdir}/pkgconfig/gnet-%{api}.pc
94

  ViewVC Help
Powered by ViewVC 1.1.30