diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-12 01:18:00 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-12 01:18:00 +0000 |
| commit | 2f92870f48d1e3961f60f299069a8f7f889071e1 (patch) | |
| tree | 52d6a7e5d8b61a327cbda9bb83c5b98c1350b713 | |
| parent | 928bef6ab67118b10f582456229816e462fc5d6c (diff) | |
automatic import of python-rattail
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-rattail.spec | 84 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 86 insertions, 0 deletions
@@ -0,0 +1 @@ +/rattail-0.10.15.tar.gz diff --git a/python-rattail.spec b/python-rattail.spec new file mode 100644 index 0000000..d0caf70 --- /dev/null +++ b/python-rattail.spec @@ -0,0 +1,84 @@ +%global _empty_manifest_terminate_build 0 +Name: python-rattail +Version: 0.10.15 +Release: 1 +Summary: Retail Software Framework +License: GNU GPL v3 +URL: https://rattailproject.org/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3b/1d/fa47f5303d2c9b1f02f48531cbf26330725ec9de8cc3d27a0f281a3242e3/rattail-0.10.15.tar.gz +BuildArch: noarch + + +%description +Rattail is a framework / tool kit for building custom apps. Originally +intended for use in retail environments, but useful in others also. +It is released under the GNU General Public License. +This is the core ``rattail`` package. +Please see the `Rattail Project`_ for more information. + +%package -n python3-rattail +Summary: Retail Software Framework +Provides: python-rattail +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-rattail +Rattail is a framework / tool kit for building custom apps. Originally +intended for use in retail environments, but useful in others also. +It is released under the GNU General Public License. +This is the core ``rattail`` package. +Please see the `Rattail Project`_ for more information. + +%package help +Summary: Development documents and examples for rattail +Provides: python3-rattail-doc +%description help +Rattail is a framework / tool kit for building custom apps. Originally +intended for use in retail environments, but useful in others also. +It is released under the GNU General Public License. +This is the core ``rattail`` package. +Please see the `Rattail Project`_ for more information. + +%prep +%autosetup -n rattail-0.10.15 + +%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-rattail -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 0.10.15-1 +- Package Spec generated @@ -0,0 +1 @@ +c6efcf7650c2576793b0e2eb9c5725d6 rattail-0.10.15.tar.gz |
