diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-tailbone.spec | 78 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 80 insertions, 0 deletions
@@ -0,0 +1 @@ +/Tailbone-0.9.16.tar.gz diff --git a/python-tailbone.spec b/python-tailbone.spec new file mode 100644 index 0000000..6d24d2f --- /dev/null +++ b/python-tailbone.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Tailbone +Version: 0.9.16 +Release: 1 +Summary: Backoffice Web Application for Rattail +License: GNU GPL v3 +URL: http://rattailproject.org/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3f/de/e1cfc962a8e1752f21622b1918d5c224660c1de88d990ddd8bad5b11a845/Tailbone-0.9.16.tar.gz +BuildArch: noarch + + +%description +Tailbone is an extensible web application based on Rattail. It provides a +"back-office network environment" (BONE) for use in managing retail data. +Please see Rattail's `home page`_ for more information. + +%package -n python3-Tailbone +Summary: Backoffice Web Application for Rattail +Provides: python-Tailbone +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Tailbone +Tailbone is an extensible web application based on Rattail. It provides a +"back-office network environment" (BONE) for use in managing retail data. +Please see Rattail's `home page`_ for more information. + +%package help +Summary: Development documents and examples for Tailbone +Provides: python3-Tailbone-doc +%description help +Tailbone is an extensible web application based on Rattail. It provides a +"back-office network environment" (BONE) for use in managing retail data. +Please see Rattail's `home page`_ for more information. + +%prep +%autosetup -n Tailbone-0.9.16 + +%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-Tailbone -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.9.16-1 +- Package Spec generated @@ -0,0 +1 @@ +16e83916b316a0b237b8122349d4ed53 Tailbone-0.9.16.tar.gz |
