diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 07:34:12 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 07:34:12 +0000 |
commit | 91c4ea93b0478898400514bcff32e83171cb8b28 (patch) | |
tree | 88051f99a8d129da70305e8695a92cbc23f21d49 /python-cubicweb-addressbook.spec | |
parent | 060404314e49fa652d471ef4ee672c0184d8ba79 (diff) |
automatic import of python-cubicweb-addressbookopeneuler20.03
Diffstat (limited to 'python-cubicweb-addressbook.spec')
-rw-r--r-- | python-cubicweb-addressbook.spec | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/python-cubicweb-addressbook.spec b/python-cubicweb-addressbook.spec new file mode 100644 index 0000000..497e9b0 --- /dev/null +++ b/python-cubicweb-addressbook.spec @@ -0,0 +1,77 @@ +%global _empty_manifest_terminate_build 0 +Name: python-cubicweb-addressbook +Version: 1.13.0 +Release: 1 +Summary: address book component for the CubicWeb framework +License: LGPL +URL: https://forge.extranet.logilab.fr/cubicweb/cubes/cubicweb-addressbook +Source0: https://mirrors.aliyun.com/pypi/web/packages/b6/2b/880dd47a1152dd69570f9313cdb10902e8fab1ed640e07a9bfd8af47a7f0/cubicweb-addressbook-1.13.0.tar.gz +BuildArch: noarch + +Requires: python3-cubicweb +Requires: python3-cubicweb-geocoding + +%description +The addressbook cube adds a phone number, postal address and instant +messenger address (supports icq, msn and jabber) to the schema. + +%package -n python3-cubicweb-addressbook +Summary: address book component for the CubicWeb framework +Provides: python-cubicweb-addressbook +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-cubicweb-addressbook +The addressbook cube adds a phone number, postal address and instant +messenger address (supports icq, msn and jabber) to the schema. + +%package help +Summary: Development documents and examples for cubicweb-addressbook +Provides: python3-cubicweb-addressbook-doc +%description help +The addressbook cube adds a phone number, postal address and instant +messenger address (supports icq, msn and jabber) to the schema. + +%prep +%autosetup -n cubicweb-addressbook-1.13.0 + +%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-cubicweb-addressbook -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.13.0-1 +- Package Spec generated |