diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-02-24 07:54:59 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-02-24 07:54:59 +0000 |
commit | 1c157d8d13032f6cf8f732e154b32aaae2f8a33e (patch) | |
tree | c4001980c2816e4833c41a2696b602bfde1577cb | |
parent | c30ae4b0333c35fa4a16a72afb16beb630adb81c (diff) |
automatic import of python3-dtfabricopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-dtfabric.spec | 77 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 79 insertions, 0 deletions
@@ -0,0 +1 @@ +/dtfabric-20221218.tar.gz diff --git a/python-dtfabric.spec b/python-dtfabric.spec new file mode 100644 index 0000000..4f093e6 --- /dev/null +++ b/python-dtfabric.spec @@ -0,0 +1,77 @@ +%global _empty_manifest_terminate_build 0 +Name: python-dtfabric +Version: 20221218 +Release: 1 +Summary: Data type fabric (dtfabric) +License: Apache License, Version 2.0 +URL: https://github.com/libyal/dtfabric +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7c/5f/b86434c4e39bf46207fbc514f28342324b67b1f188164b3f976dba2b2b89/dtfabric-20221218.tar.gz +BuildArch: noarch + + +%description +dtFabric, or data type fabric, is a project to manage data types and structures, as used in the libyal projects. + + + +%package -n python3-dtfabric +Summary: Data type fabric (dtfabric) +Provides: python-dtfabric +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-dtfabric +dtFabric, or data type fabric, is a project to manage data types and structures, as used in the libyal projects. + + + +%package help +Summary: Development documents and examples for dtfabric +Provides: python3-dtfabric-doc +%description help +dtFabric, or data type fabric, is a project to manage data types and structures, as used in the libyal projects. + + + +%prep +%autosetup -n dtfabric-20221218 + +%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-dtfabric -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Feb 24 2023 Python_Bot <Python_Bot@openeuler.org> - 20221218-1 +- Package Spec generated @@ -0,0 +1 @@ +9b885cd478c706f318f28663fcc55f12 dtfabric-20221218.tar.gz |