]>
Commit | Line | Data |
---|---|---|
166a3088 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
166a3088 MT |
4 | ############################################################################### |
5 | ||
2e5078c8 | 6 | name = glib2 |
1a34f761 | 7 | ver_major = 2.61 |
eac3ee6b | 8 | ver_minor = 1 |
9edaaeab EK |
9 | version = %{ver_major}.%{ver_minor} |
10 | release = 1 | |
2e5078c8 | 11 | thisapp = glib-%{version} |
166a3088 | 12 | |
9edaaeab | 13 | maintainer = Erik Kapfer <erik.kapfer@ipfire.org> |
802ea3af MT |
14 | groups = System/Libraries |
15 | url = http://www.gtk.org | |
16 | license = LGPLv2+ | |
17 | summary = A library of handy utility functions. | |
166a3088 | 18 | |
802ea3af | 19 | description |
119f8a83 SS |
20 | GLib is the low-level core library that forms the basis |
21 | for projects such as GTK+ and GNOME. It provides data structure | |
22 | handling for C, portability wrappers, and interfaces for such runtime | |
23 | functionality as an event loop, threads, dynamic loading, and an | |
166a3088 | 24 | object system. |
802ea3af MT |
25 | end |
26 | ||
f6a10344 | 27 | source_dl = http://ftp.gnome.org/pub/gnome/sources/glib/%{ver_major}/ |
802ea3af MT |
28 | sources = %{thisapp}.tar.xz |
29 | ||
30 | build | |
31 | requires | |
1a34f761 | 32 | docbook-xsl |
802ea3af MT |
33 | gettext |
34 | libffi-devel | |
1a34f761 SS |
35 | libmount-devel >= 2.34-2 |
36 | meson >= 0.50.1 | |
802ea3af MT |
37 | pcre-devel |
38 | pkg-config | |
39 | zlib-devel | |
40 | end | |
41 | ||
1a34f761 SS |
42 | prepare_cmds |
43 | # Explicitly remove PCRE sources since we use --with-pcre=system | |
44 | rm glib/pcre/*.[ch] | |
45 | end | |
46 | ||
47 | build | |
48 | %{meson} \ | |
49 | --default-library=both \ | |
50 | -Dselinux=disabled \ | |
51 | -Dman=true \ | |
52 | -Ddtrace=false \ | |
53 | -Delf=false \ | |
54 | -Dfam=false \ | |
55 | -Dsystemtap=true \ | |
56 | -Dgtk_doc=false \ | |
57 | -Dinstalled_tests=false | |
58 | ||
59 | ||
60 | %{meson_build} | |
61 | end | |
62 | ||
63 | install | |
64 | %{meson_install} | |
802ea3af | 65 | |
802ea3af MT |
66 | mkdir -pv %{BUILDROOT}/etc/profile.d/ |
67 | cp -vf %{DIR_SOURCE}/glib2-locale.sh %{BUILDROOT}/etc/profile.d/ | |
68 | end | |
69 | end | |
70 | ||
71 | packages | |
2e5078c8 MT |
72 | package %{name} |
73 | ||
74 | package %{name}-devel | |
802ea3af MT |
75 | template DEVEL |
76 | end | |
1f9bc2f0 MT |
77 | |
78 | package %{name}-debuginfo | |
79 | template DEBUGINFO | |
80 | end | |
802ea3af | 81 | end |