diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-21 04:52:19 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-21 04:52:19 +0000 |
commit | ad3824a098222d7516e6569483509b3f22a2e966 (patch) | |
tree | 4bb1eeab9cc05de272282ce017dc207c5c642d99 /python-holidays.spec | |
parent | c02192f41aee292cc4fd47494271eadfd8fd77fb (diff) |
automatic import of python-holidaysopeneuler20.03
Diffstat (limited to 'python-holidays.spec')
-rw-r--r-- | python-holidays.spec | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/python-holidays.spec b/python-holidays.spec new file mode 100644 index 0000000..f5712b4 --- /dev/null +++ b/python-holidays.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: python-holidays +Version: 0.23 +Release: 1 +Summary: Generate and work with holidays in Python +License: MIT +URL: https://github.com/dr-prodigy/python-holidays +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/24/91/77edc7626400922d44019753c39e0fd911176ce3f77c3f85ac832d5d70b7/holidays-0.23.tar.gz +BuildArch: noarch + +Requires: python3-convertdate +Requires: python3-hijri-converter +Requires: python3-korean-lunar-calendar +Requires: python3-dateutil + +%description + + +%package -n python3-holidays +Summary: Generate and work with holidays in Python +Provides: python-holidays +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-holidays + + +%package help +Summary: Development documents and examples for holidays +Provides: python3-holidays-doc +%description help + + +%prep +%autosetup -n holidays-0.23 + +%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-holidays -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Apr 21 2023 Python_Bot <Python_Bot@openeuler.org> - 0.23-1 +- Package Spec generated |