Package init
This commit is contained in:
commit
4a7df11cdb
BIN
pkgconfig-1.5.1.tar.gz
Normal file
BIN
pkgconfig-1.5.1.tar.gz
Normal file
Binary file not shown.
63
python-pkgconfig.spec
Normal file
63
python-pkgconfig.spec
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
%global srcname pkgconfig
|
||||||
|
|
||||||
|
Name: python-%{srcname}
|
||||||
|
Version: 1.5.1
|
||||||
|
Release: 1
|
||||||
|
Summary: A Python module to interface with the pkg-config command line tool
|
||||||
|
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/matze/pkgconfig
|
||||||
|
Source0: https://files.pythonhosted.org/packages/6e/a9/ff67ef67217dfdf2aca847685fe789f82b931a6957a3deac861297585db6/pkgconfig-1.5.1.tar.gz
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
pkgconfig is a Python module to interface with the pkg-config command line tool and supports Python 2.6+ and 3.3+.
|
||||||
|
|
||||||
|
%package -n python2-%{srcname}
|
||||||
|
Summary: A Python2 module to interface with the pkg-config command line tool
|
||||||
|
%{?python_provide:%python_provide python2-%{srcname}}
|
||||||
|
BuildRequires: python2-devel
|
||||||
|
BuildRequires: python2-setuptools
|
||||||
|
Requires: pkgconf-pkg-config
|
||||||
|
|
||||||
|
%description -n python2-%{srcname}
|
||||||
|
pkgconfig is a Python module to interface with the pkg-config command line tool and supports Python 2.6+ and 3.3+.
|
||||||
|
|
||||||
|
%package -n python3-%{srcname}
|
||||||
|
Summary: A Python3 interface to the pkg-config command line tool
|
||||||
|
Summary: A Python3 module to interface with the pkg-config command line tool
|
||||||
|
%{?python_provide:%python_provide python3-%{srcname}}
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
Requires: pkgconf-pkg-config
|
||||||
|
|
||||||
|
%description -n python3-%{srcname}
|
||||||
|
pkgconfig is a Python module to interface with the pkg-config command line tool and supports Python 2.6+ and 3.3+.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{srcname}-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%py2_build
|
||||||
|
%py3_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%py2_install
|
||||||
|
%py3_install
|
||||||
|
|
||||||
|
%files -n python2-%{srcname}
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.rst
|
||||||
|
%{python2_sitelib}/%{srcname}-*.egg-info
|
||||||
|
%{python2_sitelib}/%{srcname}/
|
||||||
|
|
||||||
|
%files -n python3-%{srcname}
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.rst
|
||||||
|
%{python3_sitelib}/%{srcname}-*.egg-info
|
||||||
|
%{python3_sitelib}/%{srcname}/
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Sep 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.5.1-1
|
||||||
|
- Package Init
|
||||||
Loading…
x
Reference in New Issue
Block a user