diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 15:37:44 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 15:37:44 +0000 |
| commit | 41d4fae0819c596ae384d07502f5a2c8028d6823 (patch) | |
| tree | 4e5fc1a83ba0f6afc9fbc93223a738a1393c49fd /python-seqlog.spec | |
| parent | c6555d6184970142bdaf384a53356fe112fb86e4 (diff) | |
automatic import of python-seqlogopeneuler20.03
Diffstat (limited to 'python-seqlog.spec')
| -rw-r--r-- | python-seqlog.spec | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/python-seqlog.spec b/python-seqlog.spec new file mode 100644 index 0000000..f4883c4 --- /dev/null +++ b/python-seqlog.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-seqlog +Version: 0.3.26 +Release: 1 +Summary: SeqLog enables logging from Python to Seq. +License: MIT license +URL: https://github.com/tintoy/seqlog +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/47/eb/7ba64e63aded96a712c8e25f7c9c937bead295d6d4dd4c2fd7343489539a/seqlog-0.3.26.tar.gz +BuildArch: noarch + +Requires: python3-dateutil +Requires: python3-requests +Requires: python3-PyYAML + +%description + + +%package -n python3-seqlog +Summary: SeqLog enables logging from Python to Seq. +Provides: python-seqlog +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-seqlog + + +%package help +Summary: Development documents and examples for seqlog +Provides: python3-seqlog-doc +%description help + + +%prep +%autosetup -n seqlog-0.3.26 + +%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-seqlog -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.26-1 +- Package Spec generated |
