99 lines
3.1 KiB
RPMSpec
99 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package python-compizconfig
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX 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/
|
|
#
|
|
|
|
|
|
%define _name compizconfig-python
|
|
Name: python-compizconfig
|
|
Version: 0.8.14
|
|
Release: 0
|
|
Summary: Python bindings for libraries for compizconfig-settings
|
|
License: GPL-2.0+
|
|
Group: Development/Languages/Python
|
|
Url: https://github.com/compiz-reloaded/compizconfig-python
|
|
Source: https://github.com/compiz-reloaded/%{_name}/releases/download/v%{version}/%{_name}-%{version}.tar.xz
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: libtool
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python-devel
|
|
BuildRequires: python3-Cython
|
|
BuildRequires: python3-devel
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
BuildRequires: pkgconfig(libcompizconfig) < 0.9
|
|
BuildRequires: pkgconfig(x11)
|
|
Requires: compiz < 0.9
|
|
Obsoletes: ccs-python < %{version}
|
|
Provides: ccs-python = %{version}
|
|
%if 0%{?suse_version} > 1320 || (0%{?sle_version} >= 120300 && 0%{?is_opensuse})
|
|
BuildRequires: python2-Cython
|
|
%else
|
|
BuildRequires: python-Cython
|
|
%endif
|
|
|
|
%description
|
|
Python bindings for libraries/plugins for compizconfig-settings.
|
|
|
|
%package -n python2-compizconfig
|
|
Summary: Python bindings for libraries for compizconfig-settings
|
|
# python-compizconfig was last used in openSUSE Leap 42.2.
|
|
Group: Development/Libraries/Python
|
|
Provides: python-compizconfig = %{version}
|
|
Obsoletes: python-compizconfig < %{version}
|
|
|
|
%description -n python2-compizconfig
|
|
Python bindings for libraries/plugins for compizconfig-settings.
|
|
|
|
%package -n python3-compizconfig
|
|
Summary: Python bindings for libraries for compizconfig-settings
|
|
Group: Development/Libraries/Python
|
|
|
|
%description -n python3-compizconfig
|
|
Python bindings for libraries/plugins for compizconfig-settings.
|
|
|
|
%prep
|
|
%setup -q -n %{_name}-%{version}
|
|
|
|
%build
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
%global _configure ../configure
|
|
for pyver in %{py_ver} %{py3_ver}; do
|
|
mkdir -p "build-py$pyver"
|
|
pushd "build-py$pyver"
|
|
export PYTHON="python$pyver"
|
|
%configure \
|
|
--disable-static \
|
|
--with-cython="cython-$pyver"
|
|
make %{?_smp_mflags} V=1
|
|
popd
|
|
done
|
|
|
|
%install
|
|
%make_install -C build-py%{py_ver}
|
|
%make_install -C build-py%{py3_ver}
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
rm -r %{buildroot}%{_libdir}/pkgconfig/
|
|
|
|
%files -n python2-compizconfig
|
|
%defattr(-,root,root)
|
|
%{python_sitearch}/compizconfig*
|
|
|
|
%files -n python3-compizconfig
|
|
%defattr(-,root,root)
|
|
%{python3_sitearch}/compizconfig*
|
|
|
|
%changelog
|