From 52f35aa6895f5cedb3e97d6a4f662521d90de65e Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 20 Jun 2023 08:12:41 +0000 Subject: automatic import of python-wajig --- .gitignore | 1 + python-wajig.spec | 111 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 113 insertions(+) create mode 100644 python-wajig.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..6f75870 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/wajig-4.0.12.tar.gz diff --git a/python-wajig.spec b/python-wajig.spec new file mode 100644 index 0000000..6a2793e --- /dev/null +++ b/python-wajig.spec @@ -0,0 +1,111 @@ +%global _empty_manifest_terminate_build 0 +Name: python-wajig +Version: 4.0.12 +Release: 1 +Summary: Ubunut admin managemetn tool +License: GNU General Public License v3 (GPLv3) +URL: https://wajig.togaware.com +Source0: https://mirrors.aliyun.com/pypi/web/packages/53/23/512ad1798b6f1a71ff366d816984d8f8dee551b29de53a1bc6647cc66b45/wajig-4.0.12.tar.gz +BuildArch: noarch + + +%description +Wajig is available in the Debian and Ubuntu repositories. On Ubuntu, +where sudo is set up by default +```consoles +$ sudo apt install wajig +``` +It is also available on [PyPI](https://pypi.org/project/wajig/) from +where it can be installed with: +```console +$ pip3 install wajig +``` +If sudo is not set up (see instructions below) then as root: +```console +# apt-get install wajig +``` + +%package -n python3-wajig +Summary: Ubunut admin managemetn tool +Provides: python-wajig +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-wajig +Wajig is available in the Debian and Ubuntu repositories. On Ubuntu, +where sudo is set up by default +```consoles +$ sudo apt install wajig +``` +It is also available on [PyPI](https://pypi.org/project/wajig/) from +where it can be installed with: +```console +$ pip3 install wajig +``` +If sudo is not set up (see instructions below) then as root: +```console +# apt-get install wajig +``` + +%package help +Summary: Development documents and examples for wajig +Provides: python3-wajig-doc +%description help +Wajig is available in the Debian and Ubuntu repositories. On Ubuntu, +where sudo is set up by default +```consoles +$ sudo apt install wajig +``` +It is also available on [PyPI](https://pypi.org/project/wajig/) from +where it can be installed with: +```console +$ pip3 install wajig +``` +If sudo is not set up (see instructions below) then as root: +```console +# apt-get install wajig +``` + +%prep +%autosetup -n wajig-4.0.12 + +%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-wajig -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot - 4.0.12-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..8d748bc --- /dev/null +++ b/sources @@ -0,0 +1 @@ +7a6c01b90a7b7e207de5475b23b79c0d wajig-4.0.12.tar.gz -- cgit v1.2.3