!3 Update package
From: @Wangjunqi123 Reviewed-by: @hubin95 Signed-off-by: @hubin95
This commit is contained in:
commit
22ec2d2f3a
Binary file not shown.
BIN
pkgconfig-1.5.5.tar.gz
Normal file
BIN
pkgconfig-1.5.5.tar.gz
Normal file
Binary file not shown.
@ -1,46 +1,75 @@
|
|||||||
%global srcname pkgconfig
|
%global _empty_manifest_terminate_build 0
|
||||||
|
Name: python-pkgconfig
|
||||||
Name: python-%{srcname}
|
Version: 1.5.5
|
||||||
Version: 1.5.1
|
Release: 1
|
||||||
Release: 2
|
Summary: A Python module to interface with the pkg-config command line tool
|
||||||
Summary: A Python module to interface with the pkg-config command line tool
|
License: MIT
|
||||||
|
URL: https://github.com/matze/pkgconfig
|
||||||
License: MIT
|
Source0: https://files.pythonhosted.org/packages/c4/e0/e05fee8b5425db6f83237128742e7e5ef26219b687ab8f0d41ed0422125e/pkgconfig-1.5.5.tar.gz
|
||||||
URL: https://github.com/matze/pkgconfig
|
BuildArch: noarch
|
||||||
Source0: https://files.pythonhosted.org/packages/6e/a9/ff67ef67217dfdf2aca847685fe789f82b931a6957a3deac861297585db6/pkgconfig-1.5.1.tar.gz
|
|
||||||
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
pkgconfig is a Python module to interface with the pkg-config command line tool and supports Python 3.3+.
|
pkgconfig is a Python module to interface with the pkg-config command line tool and supports Python 3.3+.
|
||||||
|
|
||||||
%package -n python3-%{srcname}
|
%package -n python3-pkgconfig
|
||||||
Summary: A Python3 interface to the pkg-config command line tool
|
Summary: A Python module to interface with the pkg-config command line tool
|
||||||
Summary: A Python3 module to interface with the pkg-config command line tool
|
Provides: python-pkgconfig = %{version}-%{release}
|
||||||
%{?python_provide:%python_provide python3-%{srcname}}
|
Requires: pkgconf-pkg-config
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
Requires: pkgconf-pkg-config
|
%description -n python3-pkgconfig
|
||||||
|
pkgconfig is a Python module to interface with the pkg-config command line tool and supports Python 3.3+.
|
||||||
|
|
||||||
%description -n python3-%{srcname}
|
%package help
|
||||||
|
Summary: Development documents and examples for pkgconfig
|
||||||
|
Provides: python3-pkgconfig-doc
|
||||||
|
%description help
|
||||||
pkgconfig is a Python module to interface with the pkg-config command line tool and supports Python 3.3+.
|
pkgconfig is a Python module to interface with the pkg-config command line tool and supports Python 3.3+.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{srcname}-%{version}
|
%autosetup -n pkgconfig-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
pushd %{buildroot}
|
||||||
|
if [ -d usr/lib ]; then
|
||||||
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/lib64 ]; then
|
||||||
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/bin ]; then
|
||||||
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/sbin ]; then
|
||||||
|
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
touch doclist.lst
|
||||||
|
if [ -d usr/share/man ]; then
|
||||||
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
||||||
|
fi
|
||||||
|
popd
|
||||||
|
mv %{buildroot}/filelist.lst .
|
||||||
|
mv %{buildroot}/doclist.lst .
|
||||||
|
|
||||||
%files -n python3-%{srcname}
|
%files -n python3-pkgconfig -f filelist.lst
|
||||||
%license LICENSE
|
%dir %{python3_sitelib}/*
|
||||||
%doc README.rst
|
|
||||||
%{python3_sitelib}/%{srcname}-*.egg-info
|
%files help -f doclist.lst
|
||||||
%{python3_sitelib}/%{srcname}/
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 23 2022 wangjunqi <wangjunqi@kylinos.cn> - 1.5.5-1
|
||||||
|
- Update package to version 1.5.5
|
||||||
|
|
||||||
* Wed Oct 21 2020 wangxiao <wangxiao65@huawei.com> - 1.5.1-2
|
* Wed Oct 21 2020 wangxiao <wangxiao65@huawei.com> - 1.5.1-2
|
||||||
- drop python2 subpackage
|
- drop python2 subpackage
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user