diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-10 05:37:05 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 05:37:05 +0000 |
commit | 0977a2666e58d5709e29645f5bbfe78673be011b (patch) | |
tree | a432f58fc8bebeb3588263029d00bf76dd922ad5 | |
parent | 0c563bfce0ba91213b1e6ac53d882e22b225d275 (diff) |
automatic import of python-balafonopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-balafon.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/balafon-3.5.31.tar.gz diff --git a/python-balafon.spec b/python-balafon.spec new file mode 100644 index 0000000..a3fb360 --- /dev/null +++ b/python-balafon.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-balafon +Version: 3.5.31 +Release: 1 +Summary: Contacts management +License: CeCILL 2.1 +URL: https://github.com/ljean/balafon +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ab/06/c0881fa74240c28ae153b62c0ca5aef9503ed661284d7ae92dd46545e5bd/balafon-3.5.31.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-balafon +Summary: Contacts management +Provides: python-balafon +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-balafon + + +%package help +Summary: Development documents and examples for balafon +Provides: python3-balafon-doc +%description help + + +%prep +%autosetup -n balafon-3.5.31 + +%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-balafon -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 3.5.31-1 +- Package Spec generated @@ -0,0 +1 @@ +fec23b9ec2c52bb464c108bc2b1029f2 balafon-3.5.31.tar.gz |