From 1d4185555d09a4fa92076993af6896870bdb43fd Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 18 May 2023 06:02:10 +0000 Subject: automatic import of python-pycraf --- python-pycraf.spec | 100 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 python-pycraf.spec (limited to 'python-pycraf.spec') diff --git a/python-pycraf.spec b/python-pycraf.spec new file mode 100644 index 0000000..ba97023 --- /dev/null +++ b/python-pycraf.spec @@ -0,0 +1,100 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pycraf +Version: 2.0.1 +Release: 1 +Summary: pycraf - compatibility studies for radio astronomy spectrum management +License: GPL v3 +URL: https://github.com/bwinkel/pycraf +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/fc/50/ef51fb8033700b13dbda1996a0d7a949b1f4baeecb090622f1a2ef2d48ba/pycraf-2.0.1.tar.gz + +Requires: python3-astropy +Requires: python3-h5py +Requires: python3-matplotlib +Requires: python3-pyproj +Requires: python3-pytest +Requires: python3-pytest-astropy +Requires: python3-pytest-doctestplus +Requires: python3-rasterio +Requires: python3-scipy +Requires: python3-sgp4 +Requires: python3-sphinx +Requires: python3-sphinx-astropy +Requires: python3-pytest +Requires: python3-pyproj +Requires: python3-scipy +Requires: python3-matplotlib +Requires: python3-sgp4 +Requires: python3-astropy +Requires: python3-h5py +Requires: python3-matplotlib +Requires: python3-pyproj +Requires: python3-scipy +Requires: python3-sgp4 +Requires: python3-pytest +Requires: python3-pytest-doctestplus +Requires: python3-pytest-astropy + +%description + + +%package -n python3-pycraf +Summary: pycraf - compatibility studies for radio astronomy spectrum management +Provides: python-pycraf +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-pycraf + + +%package help +Summary: Development documents and examples for pycraf +Provides: python3-pycraf-doc +%description help + + +%prep +%autosetup -n pycraf-2.0.1 + +%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-pycraf -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot - 2.0.1-1 +- Package Spec generated -- cgit v1.2.3