Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37542303
en ru br
Репозитории ALT
S:0.6.00-alt3.gitfadf11e
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: libcwiid

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

# The git_commit define will have the complement given by git-hub to the source downloaded
%define git_commit fadf11e
Name:           libcwiid
Version:        0.6.00
Release:        alt3.git%{git_commit}
Summary:        Wiimote interface library

Group:          System/Libraries
License:        GPL-2.0+
URL:            http://abstrakraft.org/cwiid/
Packager:       Andrey Cherepanov <cas at altlinux.org>

# source URL : http://github.com/abstrakraft/cwiid/tarball/%%{git_commit}

Source0:        abstrakraft-cwiid-%{git_commit}.tar.gz
Source1:        wmgui.desktop

# this patch is in my git-hub fork git://github.com/bogado/cwiid.git

# there is an upstream bug filed by me at http://abstrakraft.org/cwiid/ticket/105
Patch0:         0001-Fix-missing-library-from-wmdemo.patch

BuildRequires(pre): rpm-build-python
BuildRequires: pkgconfig(gthread-2.0) pkgconfig(gtk+-2.0)
BuildRequires:  libbluez-devel gawk bison flex gtk2-devel python-devel >= 2.4 desktop-file-utils

%description
Cwiid is a library that enables your application to communicate with
a wiimote using a bluetooth connection.

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

%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%package        -n python-module-cwiid
Summary:        Python binding for %{name}
Group:          Development/Other
Requires:       %{name} = %{version}-%{release}

%description    -n python-module-cwiid
Python2 binding for %{name}

%package        utils
Summary:        Wiimote connection test application
Group:          File tools
Requires:       %{name} = %{version}-%{release}
Provides:       %{name}-wmgui = %{version}-%{release}
Obsoletes:      %{name}-wmgui < 0.6.00-7

%description    utils
Applications to test the wiimote connection

%package        wminput
Summary:        Enables using the wiimote as an input source
# The licence must be GPLv2 instead of GPLv2+ for this package
# since the file wminput/action_enum.txt is GPLv2 as stated
# in the file.
License:        GPLv2
Group:          File tools
Requires:       %{name} = %{version}-%{release}

%description    wminput
This program allows the user to use the wiimote to emulate normal system
input sources like the mouse and keyboard.

%prep
%setup -q -n abstrakraft-cwiid-%{git_commit}
%patch0 -p1
# Set correct python2 executable in shebang
subst 's|#!.*python$|#!%__python|' wmdemo/wmdemo.py

%build
aclocal
autoconf
export PYTHON=%__python
%configure CC="gcc %{optflags}" --disable-static --with-python=%__python
%make_build

%install
%makeinstall_std LDCONFIG=/bin/true
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
# find all directories
find $RPM_BUILD_ROOT%{_sysconfdir} -type f -exec chmod 0644 {} ';'
rm $RPM_BUILD_ROOT/%{_libdir}/*.a
desktop-file-install --dir=%buildroot%_desktopdir %{SOURCE1}

%files
%doc AUTHORS NEWS README COPYING ChangeLog
%{_libdir}/*.so.*

%files devel
%{_includedir}/*
%{_libdir}/*.so
%{_pkgconfigdir}/*

%files -n python-module-cwiid
%{python_sitelibdir}/*

%files wminput
%config(noreplace) %{_sysconfdir}/cwiid/
%{_bindir}/wminput
%{_man1dir}/wminput*
%{_libdir}/cwiid
%{_defaultdocdir}/cwiid

%files utils
%{_bindir}/lswm
%{_bindir}/wmgui
%{_man1dir}/wmgui*
%{_desktopdir}/wmgui.desktop

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin