diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-29 12:56:58 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-29 12:56:58 +0000 |
commit | c2602e8d0ebf5b46a3bee5e09d3c327519f5982d (patch) | |
tree | f142087a99ba3b028525ca9eb3ccf56c195b6c52 | |
parent | 0bd87216c90ae95d25a7f89e28bc403567d800cc (diff) |
automatic import of python-blkinfo
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-blkinfo.spec | 75 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 77 insertions, 0 deletions
@@ -0,0 +1 @@ +/blkinfo-0.2.0.tar.gz diff --git a/python-blkinfo.spec b/python-blkinfo.spec new file mode 100644 index 0000000..071d0fd --- /dev/null +++ b/python-blkinfo.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-blkinfo +Version: 0.2.0 +Release: 1 +Summary: blkinfo is a python package to list information about all available or the specified block devices. +License: GPLv3 +URL: https://github.com/grinrag/blkinfo +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/51/04/92c0f6d2cae019384f01db784014408c98c01a9520a757cd1fd382ab95c4/blkinfo-0.2.0.tar.gz +BuildArch: noarch + + +%description +**NOTE**: + If you have got a question or suggestion, please, file an issue on + +%package -n python3-blkinfo +Summary: blkinfo is a python package to list information about all available or the specified block devices. +Provides: python-blkinfo +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-blkinfo +**NOTE**: + If you have got a question or suggestion, please, file an issue on + +%package help +Summary: Development documents and examples for blkinfo +Provides: python3-blkinfo-doc +%description help +**NOTE**: + If you have got a question or suggestion, please, file an issue on + +%prep +%autosetup -n blkinfo-0.2.0 + +%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-blkinfo -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.0-1 +- Package Spec generated @@ -0,0 +1 @@ +33c6a259efabf9b643974beaa78d4959 blkinfo-0.2.0.tar.gz |