diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-29 12:37:59 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-29 12:37:59 +0000 |
commit | 31646ee0ab1783792be43074ad3abd96c7220a99 (patch) | |
tree | 4dd882da725f9eb40415edefc19b94d04e6fbf94 | |
parent | b2c8d31b31f1c81eda0f803fc639389977af08e3 (diff) |
automatic import of python-fsdb
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-fsdb.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/Fsdb-1.2.2.tar.gz diff --git a/python-fsdb.spec b/python-fsdb.spec new file mode 100644 index 0000000..05cf34c --- /dev/null +++ b/python-fsdb.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Fsdb +Version: 1.2.2 +Release: 1 +Summary: File system database. Easily manage file storing +License: LGPLv3 +URL: https://github.com/ael-code/pyFsdb +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/93/e7/64b9065c899c6da6d94e2c91c942c3beee84560578285889da47b261f1dd/Fsdb-1.2.2.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-Fsdb +Summary: File system database. Easily manage file storing +Provides: python-Fsdb +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Fsdb + + +%package help +Summary: Development documents and examples for Fsdb +Provides: python3-Fsdb-doc +%description help + + +%prep +%autosetup -n Fsdb-1.2.2 + +%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-Fsdb -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.2-1 +- Package Spec generated @@ -0,0 +1 @@ +3917f43d43b43dd2d88d056d7781288f Fsdb-1.2.2.tar.gz |