Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:alveus:plex
cwiid
_service:set_version:cwiid.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:set_version:cwiid.spec of Package cwiid
# # spec file for package cwiid # # Copyright (c) 2014 SUSE LINUX Products 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/ # %{!?py_ver: %global py_ver %(python -c "import sys; v=sys.version_info[:2]; print '%%d.%%d'%%v" 2>/dev/null)} %{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %define use_python 0 %define soname 1 Name: cwiid Version: 0.6.02+git.20190319T182725~d1f387c Release: 0 Summary: Wii Library License: GPL-2.0+ Group: System/Libraries Source: %{name}-%{version}.tar.xz Source2: baselibs.conf Url: https://github.com/azzra/python3-wiimote BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf libglvnd BuildRequires: automake BuildRequires: bison BuildRequires: byacc BuildRequires: bluez-devel BuildRequires: flex BuildRequires: gcc BuildRequires: glibc-devel BuildRequires: libtool BuildRequires: make BuildRequires: pkgconfig %if 0%{?use_python} BuildRequires: python3-devel %endif BuildRequires: pkgconfig(gthread-2.0) BuildRequires: pkgconfig(gtk+-2.0) >= 2.0.0 %description ............................................................................. %package -n libcwiid%{soname} Summary: Library to access Wiimotes Group: System/Libraries Provides: libcwiid%{soname} = %{version} %description -n libcwiid%{soname} Library to use Wiimotes. %package -n libcwiid-devel Summary: Library to access Wiimotes Group: Development/Libraries/C and C++ Requires: libcwiid%{soname} = %{version} %description -n libcwiid-devel API and library to use Wiimotes. %if 0%{?use_python} %package -n python-cwiid Summary: Python Module to Access Wiimotes Group: Development/Libraries/Python Requires: libcwiid%{soname} = %{version} %description -n python-cwiid Python wrapper module around the libcwiid library, to access Wiimote devices. %endif %prep %setup -q -n %{name}-%{version} %if 0%{?use_python} sed -i -e '/PYTHON_VERSION=/s:\[.*\]:3:g' configure.ac %endif %build %if 0%{?use_python} export PYTHON=python3 PYTHON_VERSION=3 export CFLAGS="-O2 -std=gnu11 $(pkg-config --cflags --libs ${PYTHON})" export CXXFLAGS="${CFLAGS} -std=gnu++11" export LDFLAGS="-fPIC" %endif autoreconf -vif aclocal %configure \ --prefix=/usr \ %if 0%{?use_python} --with-python="${PYTHON}" \ %else --without-python \ %endif --disable-ldconfig PYTHON="%_bindir/python3" %make_build %install %makeinstall DESTDIR="%{buildroot}" %__rm "%{buildroot}%{_libdir}"/lib*.a %__rm -rf "%{buildroot}%{_datadir}/doc" %__chmod 0644 "%{buildroot}%{_includedir}"/*.h %post -n libcwiid%{soname} -p /sbin/ldconfig %postun -n libcwiid%{soname} -p /sbin/ldconfig %files -n libcwiid-devel %defattr(-,root,root) %{_includedir}/cwiid.h %{_libdir}/pkgconfig/* %{_libdir}/libcwiid.so %files -n libcwiid%{soname} %defattr(-,root,root) %doc AUTHORS ChangeLog COPYING NEWS %{_libdir}/libcwiid.so.%{soname} %{_libdir}/libcwiid.so.%{soname}.* %if 0%{?use_python} %files -n python-cwiid %defattr(-,root,root) %{python3_sitearch}/cwiid* %endif
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor