diff --git a/ipyleaflet-0.18.0.tar.gz b/ipyleaflet-0.18.0.tar.gz new file mode 100644 index 0000000..4696434 Binary files /dev/null and b/ipyleaflet-0.18.0.tar.gz differ diff --git a/python-ipyleaflet.spec b/python-ipyleaflet.spec new file mode 100644 index 0000000..44478b4 --- /dev/null +++ b/python-ipyleaflet.spec @@ -0,0 +1,82 @@ +%global _empty_manifest_terminate_build 0 +Name: python-ipyleaflet +Version: 0.18.0 +Release: 1 +Summary: A Jupyter widget for dynamic Leaflet maps. +License: MIT +URL: https://github.com/jupyter-widgets/ipyleaflet +Source0: https://files.pythonhosted.org/packages/83/40/e71365f66813b40afc68a05a036f8aa3658c5dee9a425bd9e2569f47a180/ipyleaflet-0.18.0.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-jupyter-packaging +BuildRequires: python3-jupyterlab +BuildRequires: python3-ipywidgets +BuildRequires: python3-traittypes +BuildRequires: python3-xyzservices +BuildRequires: python3-branca + +%description +A Jupyter widget for dynamic Leaflet maps. + +%package -n python3-ipyleaflet +Summary: A Jupyter widget for dynamic Leaflet maps. +Provides: python-ipyleaflet +%description -n python3-ipyleaflet +A Jupyter widget for dynamic Leaflet maps. + +%package help +Summary: Development documents and examples for ipyleaflet +Provides: python3-ipyleaflet-doc + +%description help +Development documents and examples for ipyleaflet. + +%prep +%autosetup -n ipyleaflet-%{version} + +%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-ipyleaflet -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Nov 29 2023 Dongxing Wang - 0.18.0-1 +- Init package