init package
This commit is contained in:
parent
e41a872add
commit
17ceb3f1fe
BIN
pathlib2-2.3.5.tar.gz
Normal file
BIN
pathlib2-2.3.5.tar.gz
Normal file
Binary file not shown.
75
python-pathlib2.spec
Normal file
75
python-pathlib2.spec
Normal file
@ -0,0 +1,75 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-pathlib2
|
||||
Version: 2.3.5
|
||||
Release: 1
|
||||
Summary: Object-oriented filesystem paths
|
||||
License: MIT
|
||||
URL: https://github.com/mcmtroffaes/pathlib2
|
||||
Source0: https://files.pythonhosted.org/packages/94/d8/65c86584e7e97ef824a1845c72bbe95d79f5b306364fa778a3c3e401b309/pathlib2-2.3.5.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
Requires: python3-si
|
||||
Requires: python3-scandir
|
||||
|
||||
%description
|
||||
Object-oriented filesystem paths
|
||||
|
||||
%package -n python3-pathlib2
|
||||
Summary: Object-oriented filesystem paths
|
||||
Provides: python-pathlib2
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
%description -n python3-pathlib2
|
||||
Object-oriented filesystem paths
|
||||
|
||||
|
||||
%package help
|
||||
Summary: Development documents and examples for pathlib2
|
||||
Provides: python3-pathlib2-doc
|
||||
%description help
|
||||
Object-oriented filesystem paths
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n pathlib2-2.3.5
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
|
||||
%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-pathlib2 -f filelist.lst
|
||||
%dir %{python3_sitelib}/*
|
||||
|
||||
%files help -f doclist.lst
|
||||
%{_docdir}/*
|
||||
|
||||
%changelog
|
||||
* Wed Jul 29 2020 Python_Bot <Python_Bot@openeuler.org>
|
||||
- Package Spec generated
|
||||
Loading…
x
Reference in New Issue
Block a user