diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-sas7bdat.spec | 111 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 113 insertions, 0 deletions
@@ -0,0 +1 @@ +/sas7bdat-2.2.3.tar.gz diff --git a/python-sas7bdat.spec b/python-sas7bdat.spec new file mode 100644 index 0000000..cf95f78 --- /dev/null +++ b/python-sas7bdat.spec @@ -0,0 +1,111 @@ +%global _empty_manifest_terminate_build 0 +Name: python-sas7bdat +Version: 2.2.3 +Release: 1 +Summary: A sas7bdat file reader for Python +License: MIT +URL: https://bitbucket.org/jaredhobbs/sas7bdat +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4d/7b/d41d280b12c776e67c840bace0e5f02acda6adb13cd1fbb04293ece0bc3c/sas7bdat-2.2.3.tar.gz +BuildArch: noarch + + +%description +This module will read sas7bdat files using pure Python (2.6+, 3+). No SAS software +required! The module started out as a port of the R script of the same name +found here: <https://github.com/BioStatMatt/sas7bdat> but has since been +completely rewritten. +Also included with this library is a simple command line script, +`sas7bdat_to_csv`, which converts sas7bdat files to csv files. It will also +print out header information and meta data using the `--header` option and it +will batch convert files as well. Use the `--help` option for more information. +As is, I've successfully tested the script almost three hundred sample files I +found on the internet. For the most part, it works well. We can now read +compressed files! +I'm sure there are more issues that I haven't come across yet. Please let me +know if you come across a data file that isn't supported and I'll see if I can +add support for the file. + +%package -n python3-sas7bdat +Summary: A sas7bdat file reader for Python +Provides: python-sas7bdat +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-sas7bdat +This module will read sas7bdat files using pure Python (2.6+, 3+). No SAS software +required! The module started out as a port of the R script of the same name +found here: <https://github.com/BioStatMatt/sas7bdat> but has since been +completely rewritten. +Also included with this library is a simple command line script, +`sas7bdat_to_csv`, which converts sas7bdat files to csv files. It will also +print out header information and meta data using the `--header` option and it +will batch convert files as well. Use the `--help` option for more information. +As is, I've successfully tested the script almost three hundred sample files I +found on the internet. For the most part, it works well. We can now read +compressed files! +I'm sure there are more issues that I haven't come across yet. Please let me +know if you come across a data file that isn't supported and I'll see if I can +add support for the file. + +%package help +Summary: Development documents and examples for sas7bdat +Provides: python3-sas7bdat-doc +%description help +This module will read sas7bdat files using pure Python (2.6+, 3+). No SAS software +required! The module started out as a port of the R script of the same name +found here: <https://github.com/BioStatMatt/sas7bdat> but has since been +completely rewritten. +Also included with this library is a simple command line script, +`sas7bdat_to_csv`, which converts sas7bdat files to csv files. It will also +print out header information and meta data using the `--header` option and it +will batch convert files as well. Use the `--help` option for more information. +As is, I've successfully tested the script almost three hundred sample files I +found on the internet. For the most part, it works well. We can now read +compressed files! +I'm sure there are more issues that I haven't come across yet. Please let me +know if you come across a data file that isn't supported and I'll see if I can +add support for the file. + +%prep +%autosetup -n sas7bdat-2.2.3 + +%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-sas7bdat -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 2.2.3-1 +- Package Spec generated @@ -0,0 +1 @@ +0f0a6f124ce25ba1e035c083ee7e5aee sas7bdat-2.2.3.tar.gz |
