Sisyphus repositório
Última atualização: 25 janeiro 2021 | SRPMs: 17782 | Visitas: 20130323
en ru br
ALT Linux repositórios
S:0.2.6-alt1

Group :: Sistema/Bibliotecas
RPM: libmanette

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define _name manette
%define ver_major 0.2
%define api_ver 0.2
%define _libexecdir %_prefix/libexec

%def_enable introspection
%def_enable vala
%def_enable check

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

Summary: A simple GObject game controller library
Group: System/Libraries
License: LGPL-2.1
Url: https://gnome.pages.gitlab.gnome.org/libmanette

Vcs: https://gitlab.gnome.org/GNOME/libmanette.git
Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.xz

%define meson_ver 0.53
%define glib_ver 2.50
%define evdev_ver 1.4.5

BuildRequires(pre): meson >= %meson_ver rpm-build-gir
BuildRequires: libgio-devel >= %glib_ver libevdev-devel >= %evdev_ver
BuildRequires: libgudev-devel
%{?_enable_introspection:BuildRequires: gobject-introspection-devel libgudev-gir-devel}
%{?_enable_vala:BuildRequires: vala-tools}

%description
%name is a small GObject library for simple access to game
controllers.

%package devel
Summary: libinput development package
Group: Development/C
Requires: %name = %version-%release

%description devel
This package contains development libraries and header files
that are needed to write applications that use %name.

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

%description gir
GObject introspection data for the Manette library.

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

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

%package tools
Summary: tools for %name
Group: Development/Tools
Requires: %name = %version-%release

%description tools
This package contains commandline tools from %name package.

%prep
%setup

%build
%meson \
%{?_disable_introspection:-Dintrospection=flase} \
%{?_disable_vala:-Dvapi=flase}
%nil
%meson_build

%install
%meson_install

%check
export LD_LIBRARY_PATH=%buildroot%_libdir
%meson_test

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

%files devel
%_includedir/%name/
%_libdir/%name-%api_ver.so
%_pkgconfigdir/%_name-%api_ver.pc
%{?_enable_vala:%_vapidir/%_name-%api_ver.*}

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

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

%files tools
%_bindir/%_name-test

%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