Accepting request 441901 from GNOME:Next

Early addition for GNOME 3.24 - needed by GTK+ 4.0

OBS-URL: https://build.opensuse.org/request/show/441901
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/graphene?expand=0&rev=1
This commit is contained in:
Dominique Leuenberger 2016-11-25 17:12:57 +00:00 committed by Git OBS Bridge
commit 4aa723c3f7
5 changed files with 186 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
graphene-1.5.2.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4b2fe2c3aad43416bb520e2b3f0e1f4535b0fa722291a14904b01765afe9416f
size 123652

5
graphene.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Thu Nov 24 14:38:15 UTC 2016 - dimstar@opensuse.org
- Initial package, version 1.5.2.

154
graphene.spec Normal file
View File

@ -0,0 +1,154 @@
#
# spec file for package graphene
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: graphene
Version: 1.5.2
Release: 0
Summary: A thin layer of types for graphic libraries
License: MIT
Group: Development/Languages/C and C++
Url: http://ebassi.github.io/graphene/
Source: https://download.gnome.org/sources/graphene/1.5/%{name}-%{version}.tar.xz
BuildRequires: gobject-introspection-devel
BuildRequires: meson >= 0.36.0
BuildRequires: pkgconfig
BuildRequires: pkgconfig(gobject-2.0) >= 2.30.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
When creating graphic libraries you most likely end up dealing with points
and rectangles. If you're particularly unlucky, you may end up dealing
with affine matrices and 2D transformations. If you're writing a graphic
library with 3D transformations, though, you are going to hit the jackpot:
4x4 matrices, projections, transformations, vectors, and quaternions.
This library provides types and their relative API; it does not deal with
windowing system surfaces, drawing, scene graphs, or input. You're
supposed to do that yourself, in your own canvas implementation, which is
the whole point of writing the library in the first place.
%package -n libgraphene-1_0-0
Summary: A thin layer of types for graphic libraries -- System library
Group: System/Libraries
%description -n libgraphene-1_0-0
When creating graphic libraries you most likely end up dealing with points
and rectangles. If you're particularly unlucky, you may end up dealing
with affine matrices and 2D transformations. If you're writing a graphic
library with 3D transformations, though, you are going to hit the jackpot:
4x4 matrices, projections, transformations, vectors, and quaternions.
This library provides types and their relative API; it does not deal with
windowing system surfaces, drawing, scene graphs, or input. You're
supposed to do that yourself, in your own canvas implementation, which is
the whole point of writing the library in the first place.
%package -n typelib-1_0-Graphene-1_0
Summary: A thin layer of types for graphic libraries -- GObject introspection
Group: System/Libraries
%description -n typelib-1_0-Graphene-1_0
When creating graphic libraries you most likely end up dealing with points
and rectangles. If you're particularly unlucky, you may end up dealing
with affine matrices and 2D transformations. If you're writing a graphic
library with 3D transformations, though, you are going to hit the jackpot:
4x4 matrices, projections, transformations, vectors, and quaternions.
This library provides types and their relative API; it does not deal with
windowing system surfaces, drawing, scene graphs, or input. You're
supposed to do that yourself, in your own canvas implementation, which is
the whole point of writing the library in the first place.
%package -n libgraphene-devel
Summary: A thin layer of types for graphic libraries -- Development files
Group: Development/Languages/C and C++
Requires: libgraphene-1_0-0 = %{version}
Requires: typelib-1_0-Graphene-1_0 = %{version}
%description -n libgraphene-devel
When creating graphic libraries you most likely end up dealing with points
and rectangles. If you're particularly unlucky, you may end up dealing
with affine matrices and 2D transformations. If you're writing a graphic
library with 3D transformations, though, you are going to hit the jackpot:
4x4 matrices, projections, transformations, vectors, and quaternions.
This library provides types and their relative API; it does not deal with
windowing system surfaces, drawing, scene graphs, or input. You're
supposed to do that yourself, in your own canvas implementation, which is
the whole point of writing the library in the first place.
%prep
%setup -q
# Workaround for an apparent mesa issue
sed -i "s/©/(c)/" src/graphene-version.h.in
%build
%ifarch i586
# on i586, the compiler drops 'libm' and then g-ir-scanner fails to resolve it
# See gh#ebassie/graphene#82
export SUSE_ASNEEDED=0
%endif
mkdir build
pushd 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
pushd build
DESTDIR=%{buildroot} ninja %{?_smp_mflags} install
%check
pushd build
ninja test
%post -n libgraphene-1_0-0 -p /sbin/ldconfig
%postun -n libgraphene-1_0-0 -p /sbin/ldconfig
%files -n libgraphene-1_0-0
%defattr(-,root,root)
%doc LICENSE
%{_libdir}/libgraphene-1.0.so.*
%files -n typelib-1_0-Graphene-1_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/Graphene-1.0.typelib
%files -n libgraphene-devel
%defattr(-,root,root)
%{_includedir}/graphene-1.0/
%{_prefix}/lib/installed-tests/
%{_libdir}/libgraphene-1.0.so
%{_libdir}/pkgconfig/graphene-1.0.pc
%{_libdir}/pkgconfig/graphene-gobject-1.0.pc
%dir %{_libdir}/graphene-1.0
%dir %{_libdir}/graphene-1.0/include
%{_libdir}/graphene-1.0/include/graphene-config.h
%{_datadir}/gir-1.0/Graphene-1.0.gir
%changelog