diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 08:02:56 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 08:02:56 +0000 |
commit | 72e495200ae5370335b0c7bb82044f2fdb20b77b (patch) | |
tree | 22ff54ed791657fa535a9851788c9d5a7ff1cb5b | |
parent | d8e7de5b29de51d4311f08ead9b424ce3a1491a7 (diff) |
automatic import of python-heroiconsopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-heroicons.spec | 74 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 76 insertions, 0 deletions
@@ -0,0 +1 @@ +/heroicons-2.3.0.tar.gz diff --git a/python-heroicons.spec b/python-heroicons.spec new file mode 100644 index 0000000..110b89c --- /dev/null +++ b/python-heroicons.spec @@ -0,0 +1,74 @@ +%global _empty_manifest_terminate_build 0 +Name: python-heroicons +Version: 2.3.0 +Release: 1 +Summary: Use heroicons in your Django and Jinja templates. +License: MIT +URL: https://github.com/adamchainz/heroicons +Source0: https://mirrors.aliyun.com/pypi/web/packages/69/bf/f6fd6536ec80ff5e8bc8ed85f837605ac6b44ca7f0d2b13ca8384c628a6f/heroicons-2.3.0.tar.gz +BuildArch: noarch + +Requires: python3-django +Requires: python3-jinja2 + +%description + + +%package -n python3-heroicons +Summary: Use heroicons in your Django and Jinja templates. +Provides: python-heroicons +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-heroicons + + +%package help +Summary: Development documents and examples for heroicons +Provides: python3-heroicons-doc +%description help + + +%prep +%autosetup -n heroicons-2.3.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-heroicons -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 2.3.0-1 +- Package Spec generated @@ -0,0 +1 @@ +ea455357609d0e03ba98203cce84496b heroicons-2.3.0.tar.gz |