From 6f56037347135ee9b707b1ba66c6749f12a267e3 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 20 Jun 2023 09:40:41 +0000 Subject: automatic import of python-mmmeta --- .gitignore | 1 + python-mmmeta.spec | 108 +++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 110 insertions(+) create mode 100644 python-mmmeta.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..3b8d911 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/mmmeta-0.4.4.tar.gz diff --git a/python-mmmeta.spec b/python-mmmeta.spec new file mode 100644 index 0000000..37f034e --- /dev/null +++ b/python-mmmeta.spec @@ -0,0 +1,108 @@ +%global _empty_manifest_terminate_build 0 +Name: python-mmmeta +Version: 0.4.4 +Release: 1 +Summary: A simple toolkit for managing local state against remote metadata. +License: MIT +URL: https://github.com/simonwoerpel/mmmeta +Source0: https://mirrors.aliyun.com/pypi/web/packages/22/71/0519f75218944cdf134f74079e3a396eaa3054aaea86972f14c67136c891/mmmeta-0.4.4.tar.gz +BuildArch: noarch + +Requires: python3-banal +Requires: python3-click +Requires: python3-dataset +Requires: python3-dateutil +Requires: python3-pyyaml +Requires: python3-structlog + +%description +``mmmeta`` is a command-line toolkit and python library to incrementally +synchronize file metadata between an **archive** that stores all files +and their metadata, **publishers** that add new files to the archive and +**consumers** that process these files (or a subset of them). +It’s better explained by a concrete example: +**Publisher** incrementally scrapes documents and stores them with +metadata in the **archive**. +**Consumer** wants to import some files by a given filter criterion and +keep track of the ones that are already imported. +As such file collections grow, we only want to transfer as less data as +possible between **archive**, **publisher** and **consumer**. + +%package -n python3-mmmeta +Summary: A simple toolkit for managing local state against remote metadata. +Provides: python-mmmeta +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-mmmeta +``mmmeta`` is a command-line toolkit and python library to incrementally +synchronize file metadata between an **archive** that stores all files +and their metadata, **publishers** that add new files to the archive and +**consumers** that process these files (or a subset of them). +It’s better explained by a concrete example: +**Publisher** incrementally scrapes documents and stores them with +metadata in the **archive**. +**Consumer** wants to import some files by a given filter criterion and +keep track of the ones that are already imported. +As such file collections grow, we only want to transfer as less data as +possible between **archive**, **publisher** and **consumer**. + +%package help +Summary: Development documents and examples for mmmeta +Provides: python3-mmmeta-doc +%description help +``mmmeta`` is a command-line toolkit and python library to incrementally +synchronize file metadata between an **archive** that stores all files +and their metadata, **publishers** that add new files to the archive and +**consumers** that process these files (or a subset of them). +It’s better explained by a concrete example: +**Publisher** incrementally scrapes documents and stores them with +metadata in the **archive**. +**Consumer** wants to import some files by a given filter criterion and +keep track of the ones that are already imported. +As such file collections grow, we only want to transfer as less data as +possible between **archive**, **publisher** and **consumer**. + +%prep +%autosetup -n mmmeta-0.4.4 + +%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-mmmeta -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot - 0.4.4-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..b5f344b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +7beca1ed9797fc1be8de9cae72388819 mmmeta-0.4.4.tar.gz -- cgit v1.2.3