Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37398516
en ru br
ALT Linux repositórios
S:1.10.8-alt1

Group :: Sistema/Bibliotecas
RPM: libgraphene

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%def_disable snapshot
%define _libexecdir %_prefix/libexec

%define _name graphene
%define ver_major 1.10
%define api_ver 1.0

%def_disable static
%def_enable gtk_doc
%def_enable introspection
%def_enable installed_tests
%def_disable gcc_vector
%ifarch i586 %arm
%def_disable sse2
%endif
%ifnarch %arm
%def_disable neon
%endif
%ifarch aarch64
%def_disable check
%else
%def_enable check
%endif

Name: lib%_name
Version: %ver_major.8
Release: alt1

Summary: Graphene is a library of data types commonly used to implement 2D-in-3D or full 3D canvases
License: MIT
Group: System/Libraries
Url: https://ebassi.github.io/%_name

%if_disabled snapshot
#Source: https://github.com/ebassi/%_name/releases/download/%version/%_name-%version.tar.xz
Source: ftp://ftp.gnome.org/pub/gnome/sources/%_name/%ver_major/%_name-%version.tar.xz
%else
Vcs: https://github.com/ebassi/graphene.git
Source: %_name-%version.tar
%endif

BuildRequires(pre): rpm-macros-meson rpm-build-python3
BuildRequires: meson /proc
BuildRequires: python3 gobject-introspection-devel gtk-doc
%{?_enable_check:BuildRequires: python3-module-pygobject3}

%add_python3_path %_libexecdir/installed-tests/%_name-%api_ver

%description
Graphene library provides a small set of mathematical types needed to
implement graphic libraries that deal with 2D and 3D transformations and
projections.

%package devel
Summary: Development libraries and header files for Graphene
Group: Development/C
Requires: %name = %version-%release

%description devel
This package package includes the libraries and header files
for the Graphene library.

%package devel-doc
Summary: Development documentation for Graphene
Group: Development/Documentation
Conflicts: %name < %version-%release
BuildArch: noarch

%description devel-doc
%summary
This package contains development documentation for Graphene library.

%package gir
Summary: GObject introspection data for the Graphene library
Group: System/Libraries
Requires: %name = %version-%release

%description gir
GObject introspection data for the Graphene library.

%package gir-devel
Summary: GObject introspection devel data for the Graphene library
Group: Development/Other
BuildArch: noarch
Requires: %name-devel = %version-%release
Requires: %name-gir = %version-%release

%description gir-devel
GObject introspection devel data for the Graphene library.

%package tests
Summary: Tests for the Grapnene library
Group: Development/Other
Requires: %name = %version-%release

%description tests
This package provides tests programs that can be used to verify
the functionality of the installed Graphene library.

%prep
%setup -n %_name-%version

%build
%meson \
   %{?_disable_introspection:-Dintrospection=false} \
   %{?_disable_sse2:-Dsse2=false} \
   %{?_disable_gcc_vector:-Dgcc_vector=false} \
   %{?_disable_neon:-Darm_neon=false} \
   %{?_enable_gtk_doc:-Dgtk_doc=true} \
   %{?_disable_installed_tests:-Dtests=false}
%meson_build

%install
%meson_install

%check
export LD_LIBRARY_PATH=%buildroot%_libdir
%meson_test

%files
%_libdir/%name-%api_ver.so.*
%doc README.md

%files devel
%_includedir/%_name-%api_ver/
%_libdir/%_name-%api_ver/
%_libdir/*.so
%_pkgconfigdir/%_name-%api_ver.pc
%_pkgconfigdir/%_name-gobject-%api_ver.pc

%if_enabled introspection
%files gir
%_typelibdir/Graphene-%api_ver.typelib

%files gir-devel
%_girdir/Graphene-%api_ver.gir
%endif

%if_enabled gtk_doc
%files devel-doc
%_datadir/gtk-doc/html/%_name/
%endif

%if_enabled installed_tests
%files tests
%_libexecdir/installed-tests/%_name-%api_ver/
%_datadir/installed-tests/%_name-%api_ver/
%endif


%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009