Switch to the meson build system
This commit is contained in:
parent
cbe7cdc693
commit
9f7e13d0db
37
glib2.spec
37
glib2.spec
@ -20,11 +20,13 @@ BuildRequires: chrpath
|
|||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
|
BuildRequires: gtk-doc
|
||||||
BuildRequires: perl-interpreter
|
BuildRequires: perl-interpreter
|
||||||
# for sys/inotify.h
|
# for sys/inotify.h
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
BuildRequires: libattr-devel
|
BuildRequires: libattr-devel
|
||||||
BuildRequires: libselinux-devel
|
BuildRequires: libselinux-devel
|
||||||
|
BuildRequires: meson
|
||||||
# for sys/sdt.h
|
# for sys/sdt.h
|
||||||
BuildRequires: systemtap-sdt-devel
|
BuildRequires: systemtap-sdt-devel
|
||||||
BuildRequires: pkgconfig(libelf)
|
BuildRequires: pkgconfig(libelf)
|
||||||
@ -32,9 +34,6 @@ BuildRequires: pkgconfig(libffi)
|
|||||||
BuildRequires: pkgconfig(libpcre)
|
BuildRequires: pkgconfig(libpcre)
|
||||||
BuildRequires: pkgconfig(mount)
|
BuildRequires: pkgconfig(mount)
|
||||||
BuildRequires: pkgconfig(zlib)
|
BuildRequires: pkgconfig(zlib)
|
||||||
# Bootstrap build requirements
|
|
||||||
BuildRequires: automake autoconf libtool
|
|
||||||
BuildRequires: gtk-doc
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
|
||||||
# for GIO content-type support
|
# for GIO content-type support
|
||||||
@ -91,36 +90,25 @@ the functionality of the installed glib2 package.
|
|||||||
%build
|
%build
|
||||||
# Bug 1324770: Also explicitly remove PCRE sources since we use --with-pcre=system
|
# Bug 1324770: Also explicitly remove PCRE sources since we use --with-pcre=system
|
||||||
rm glib/pcre/*.[ch]
|
rm glib/pcre/*.[ch]
|
||||||
# Support builds of both git snapshots and tarballs packed with autogoo
|
%meson \
|
||||||
(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi;
|
--default-library=both \
|
||||||
%configure $CONFIGFLAGS \
|
-Dman=true \
|
||||||
--disable-silent-rules \
|
-Ddtrace=true \
|
||||||
--with-python=%{__python3} \
|
-Dsystemtap=true \
|
||||||
--with-pcre=system \
|
-Dgtk_doc=true \
|
||||||
--enable-systemtap \
|
-Dfam=true \
|
||||||
--enable-static \
|
-Dinstalled_tests=true
|
||||||
--enable-installed-tests
|
|
||||||
)
|
|
||||||
|
|
||||||
%make_build
|
%meson_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%meson_install
|
||||||
# Since this is a generated .py file, set it to a known timestamp,
|
# Since this is a generated .py file, set it to a known timestamp,
|
||||||
# otherwise it will vary by build time, and thus break multilib -devel
|
# otherwise it will vary by build time, and thus break multilib -devel
|
||||||
# installs.
|
# installs.
|
||||||
touch -r gio/gdbus-2.0/codegen/config.py.in $RPM_BUILD_ROOT/%{_datadir}/glib-2.0/codegen/config.py
|
touch -r gio/gdbus-2.0/codegen/config.py.in $RPM_BUILD_ROOT/%{_datadir}/glib-2.0/codegen/config.py
|
||||||
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so
|
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so
|
||||||
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/gio/modules/*.{a,la}
|
|
||||||
# Remove python files bytecompiled by the build system. rpmbuild regenerates
|
|
||||||
# them again later in a brp script using the timestamps set above.
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_datadir}/glib-2.0/gdb/*.{pyc,pyo}
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_datadir}/glib-2.0/gdb/__pycache__/
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_datadir}/glib-2.0/codegen/*.{pyc,pyo}
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/glib-2.0/codegen/__pycache__/
|
|
||||||
|
|
||||||
mv $RPM_BUILD_ROOT%{_bindir}/gio-querymodules $RPM_BUILD_ROOT%{_bindir}/gio-querymodules-%{__isa_bits}
|
mv $RPM_BUILD_ROOT%{_bindir}/gio-querymodules $RPM_BUILD_ROOT%{_bindir}/gio-querymodules-%{__isa_bits}
|
||||||
|
|
||||||
touch $RPM_BUILD_ROOT%{_libdir}/gio/modules/giomodule.cache
|
touch $RPM_BUILD_ROOT%{_libdir}/gio/modules/giomodule.cache
|
||||||
@ -229,6 +217,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
|||||||
%changelog
|
%changelog
|
||||||
* Thu Jan 03 2019 Kalev Lember <klember@redhat.com> - 2.59.0-1
|
* Thu Jan 03 2019 Kalev Lember <klember@redhat.com> - 2.59.0-1
|
||||||
- Update to 2.59.0
|
- Update to 2.59.0
|
||||||
|
- Switch to the meson build system
|
||||||
|
|
||||||
* Tue Dec 18 2018 Kalev Lember <klember@redhat.com> - 2.58.2-1
|
* Tue Dec 18 2018 Kalev Lember <klember@redhat.com> - 2.58.2-1
|
||||||
- Update to 2.58.2
|
- Update to 2.58.2
|
||||||
|
Loading…
Reference in New Issue
Block a user