SHA256
1
0
forked from pool/graphene

Accepting request 445250 from GNOME:Next

- Use meson provided macros to build instead of carrying the long
  meson command lines.

OBS-URL: https://build.opensuse.org/request/show/445250
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/graphene?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2016-12-12 10:35:08 +00:00 committed by Git OBS Bridge
parent 2a8c0e14f4
commit 07ce2f9af2
2 changed files with 10 additions and 18 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Dec 6 14:13:57 UTC 2016 - dimstar@opensuse.org
- Use meson provided macros to build instead of carrying the long
meson command lines.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 28 00:01:10 UTC 2016 - jengelh@inai.de Mon Nov 28 00:01:10 UTC 2016 - jengelh@inai.de

View File

@ -84,28 +84,14 @@ sed -i "s/©/(c)/" src/graphene-version.h.in
# See gh#ebassie/graphene#82 # See gh#ebassie/graphene#82
export SUSE_ASNEEDED=0 export SUSE_ASNEEDED=0
%endif %endif
mkdir build %meson
pushd build %meson_build
meson \
--prefix=%{_prefix} \
--bindir=%{_bindir} \
--datadir=%{_datadir} \
--libdir=%{_libdir} \
--includedir=%{_includedir} \
--libexecdir=%{_libexecdir} \
--sysconfdir=%{_sysconfdir} \
--mandir=%{_mandir} \
--default-library=shared \
.. # sources are in the parent directory
ninja %{?_smp_mflags}
%install %install
pushd build %meson_install
DESTDIR=%{buildroot} ninja %{?_smp_mflags} install
%check %check
pushd build %meson_test
ninja test
%post -n libgraphene-1_0-0 -p /sbin/ldconfig %post -n libgraphene-1_0-0 -p /sbin/ldconfig
%postun -n libgraphene-1_0-0 -p /sbin/ldconfig %postun -n libgraphene-1_0-0 -p /sbin/ldconfig