Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37510335
en ru br
ALT Linux repositórios
S:0.2.16-alt3
5.0: 0.2.16-alt2

Group :: Sistema/Bibliotecas
RPM: libhid

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%def_disable static
%def_disable swig

Name: libhid
Version: 0.2.16
Release: alt3

Summary: A user-space USB HID access library
License: GPL
Group: System/Libraries
Url: http://libhid.alioth.debian.org/

Source: %name-%version.tar
Patch1: %name-%version-alt.patch

BuildRequires: libusb-compat-devel
%if_enabled swig
BuildRequires: swig python-dev
%endif

%description
Libhid provides a generic and flexible way to access and interact with
USB HID devices, much like libusb does for plain USB devices.
It is based on libusb 0.1, thus it requires no special HID support in
the kernel.

%package devel
Summary: Headers for %name
Group: Development/C
Requires: %name = %version-%release

%description devel
Headers for building software that uses %name

%if_enabled static
%package devel-static
Summary: Static libraries for %name
Group: Development/C
Requires: %name-devel = %version-%release

%description devel-static
Static libs for building statically linked software that uses %name
%endif

%if_enabled swig
%package python
Summary: Python bindings for %name
Group: Development/Other
Requires: %name = %version-%release

%description python
Python bindings for %name

%endif

%prep
%setup
%patch1 -p1

%build
%autoreconf
%__subst "s/get_config_vars('LIBPL',/get_config_vars('LIBDIR',/" configure
%configure %{subst_enable static} --enable-werror=no
sed -ri 's/^(hardcode_libdir_flag_spec|runpath_var)=.*/\1=/' libtool
%make_build

%install
%makeinstall

%files
%_bindir/*
%_libdir/*.so.*
%_man1dir/*.1*
%doc AUTHORS README NEWS COPYING ChangeLog INSTALL TODO doc/www/index.html

%files devel
%_libdir/*.so
%_includedir/*.h
%_pkgconfigdir/*.pc

%if_enabled static
%files devel-static
%_libdir/%name.a
%endif

%if_enabled swig
%files python
%python_sitelibdir/%name
%doc swig/test_*.py
%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