Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:manfred999
xlsx2csv
xlsx2csv.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xlsx2csv.spec of Package xlsx2csv
# # spec file for package xlsx2csv # # Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: xlsx2csv Version: 0.8.2 Release: 0 Summary: Convert xslx files to csv format License: MIT Group: Productivity/Office/Spreadsheets URL: https://github.com/dilshod/xlsx2csv Source: https://github.com/dilshod/xlsx2csv/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: setup.py BuildRequires: gzip BuildRequires: perl BuildRequires: python-rpm-macros BuildRequires: python3-devel BuildRequires: python3-xml BuildRequires: sed Requires: python3 Requires: python3-xml BuildArch: noarch %description Converts xslx files to csv format. Handles large XLSX files. Fast and easy to use. %prep %setup -q cp -a %{SOURCE1} . %build sed -i '/^ *version/ s/0[.][789][.][0-9]/%{version}/' setup.py python3 setup.py build %make_build -C man %check sed -i -e '1 s|/usr/bin/env python$|/usr/bin/python3|' \ -e '1 s|/usr/bin/python$|/usr/bin/python3|' test/run sed -i 's/^PYTHON_VERSIONS.*/PYTHON_VERSIONS = ["3"]/' test/run sed -i 's/capture_output = True/stdout = subprocess.PIPE, stderr = subprocess.PIPE/i' test/run env PYTHONIOENCODING=utf-8 test/run %install python3 setup.py install --root=%{buildroot} --prefix=%{_prefix} install -m 0644 -D man/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 gzip -9 %{buildroot}%{_mandir}/man1/%{name}.1 #---env-shebangs generate warning / error messages, we want python3, only for /usr/bin: sed -i -e '1 s|/usr/bin/env python.*|/usr/bin/python3|' \ -e '1 s|/usr/bin/python$|/usr/bin/python3|' \ %{buildroot}%{_bindir}/%{name} sed -i -e '1 s|[!]/usr/bin/env python.*||' \ %{buildroot}/usr/lib/python*/site-packages/%{name}.py #---rpmlint report: W: python-bytecode-inconsistent-mtime %python_compileall %files %license LICENSE.txt %doc README.md %{_bindir}/%{name} %{python3_sitelib}/%{name}.py %{python3_sitelib}/__pycache__/%{name}.cpython-*.pyc %{python3_sitelib}/%{name}-*-py*.egg-info %{_mandir}/man1/%{name}.1%{?ext_man}* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor