Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:Rebuild
python-jfscripts
python-jfscripts.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-jfscripts.spec of Package python-jfscripts
# # spec file for package python-jfscripts # # Copyright (c) 2022 SUSE LLC # Copyright (c) 2020, Martin Hauke <mardnh@gmx.de> # # 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/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-jfscripts Version: 1.1.0 Release: 0 Summary: A collection of various tools written by Josef Friedrich License: MIT Group: Development/Languages/Python URL: https://github.com/Josef-Friedrich/python-scripts Source: https://files.pythonhosted.org/packages/source/j/jfscripts/jfscripts-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-PyPDF2 Requires: python-sphinx-argparse Requires: python-termcolor BuildArch: noarch Requires(post): update-alternatives Requires(postun):update-alternatives %python_subpackages %description A collection of various tools written by Josef Friedrich * dns-ipv6-prefix.py * extract-pdftext.py * find-dupes-by-size.py * list-files.py * mac-to-eui64.py * pdf-compress.py * image-into-pdf.py %prep %setup -q -n jfscripts-%{version} find jfscripts/ -name "*.py" -exec sed -i 's|#! %{_bindir}/env python3|#!%{_bindir}/python3|g' {} \; %build %python_build %install %python_install %python_expand find %{buildroot}/%{$python_sitelib}/jfscripts/ -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \; %python_expand cd %{buildroot}%{_bindir} && find . -name "*.py" -exec sh -c 'mv $0 `basename "$0" .py`' '{}' \; %python_expand %fdupes %{buildroot}%{$python_sitelib} rm -f %{buildroot}%{_bindir}/_current_flavor # Prepare for update-alternatives usage for p in dns-ipv6-prefix extract-pdftext find-dupes-by-size image-into-pdf \ list-files mac-to-eui64 pdf-compress ; do %python_clone -a %{buildroot}%{_bindir}/$p done #%%check # Upstream does not provide any tests %post %python_install_alternative dns-ipv6-prefix %python_install_alternative extract-pdftext %python_install_alternative find-dupes-by-size %python_install_alternative image-into-pdf %python_install_alternative list-files %python_install_alternative mac-to-eui64 %python_install_alternative pdf-compress %postun %python_uninstall_alternative dns-ipv6-prefix %python_uninstall_alternative extract-pdftext %python_uninstall_alternative find-dupes-by-size %python_uninstall_alternative image-into-pdf %python_uninstall_alternative list-files %python_uninstall_alternative mac-to-eui64 %python_uninstall_alternative pdf-compress %files %{python_files} %license LICENSE %doc README.rst %python_alternative %{_bindir}/dns-ipv6-prefix %python_alternative %{_bindir}/extract-pdftext %python_alternative %{_bindir}/find-dupes-by-size %python_alternative %{_bindir}/list-files %python_alternative %{_bindir}/mac-to-eui64 %python_alternative %{_bindir}/pdf-compress %python_alternative %{_bindir}/image-into-pdf %{python_sitelib}/jfscripts* %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