## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 6; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-libsass Version: 0.23.0 Release: %autorelease Summary: Sass for Python: A straightforward binding of libsass for Python # SPDX License: MIT URL: https://github.com/dahlia/libsass-python Source: %{url}/archive/%{version}/libsass-python-%{version}.tar.gz BuildSystem: pyproject BuildOption(install): -l sass pysassc sasstests sassutils _sass # Selected test dependencies from requirements-dev.txt; most entries in that # file are for linters, code coverage, etc. BuildRequires: %{py3_dist pytest} BuildRequires: (%{py3_dist werkzeug} with %{py3_dist werkzeug} >= 0.9) BuildRequires: make BuildRequires: gcc-c++ BuildRequires: libsass-devel >= 3.6.6 BuildRequires: help2man %global common_description %{expand: This package provides a simple Python extension module sass which is binding LibSass (written in C/C++ by Hampton Catlin and Aaron Leung). It’s very straightforward and there isn’t any headache related to Python distribution/deployment. That means you can add just libsass into your setup.py’s install_requires list or requirements.txt file. No need for Ruby nor Node.js.} %description %{common_description} %package -n python3-libsass Summary: %{summary} # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/ # #_provides_for_importable_modules # This package is messy; it occupies quite a few top-level names. %py_provides python3-sass %py_provides python3-pysassc %py_provides python3-sasstests %py_provides python3-sassutils # PDF documentation build and -doc subpackage dropped in Fedora 42; we can # remove this after Fedora 44 reaches end-of-life. Obsoletes: python-libsass-doc < 0.23.0-6 %description -n python3-libsass %{common_description} %prep -a # While upstream has the executable bit set, we will install this in # site-packages without executable permissions; therefore, the shebang becomes # useless, and we should remove it downstream. sed -r -i '1{/^#!/d}' pysassc.py %generate_buildrequires -p export SYSTEM_SASS='1' %build -p export SYSTEM_SASS='1' %install -p export SYSTEM_SASS='1' %install -a # We build the man page in %%install rather than %%build because we need to use # the entry point in %%{buildroot}/%%{_bindir}. install -d '%{buildroot}%{_mandir}/man1' PYTHONPATH='%{buildroot}%{python3_sitearch}' \ help2man --no-info --output='%{buildroot}%{_mandir}/man1/pysassc.1' \ '%{buildroot}%{_bindir}/pysassc' %check -a %pytest -v sasstests.py %files -n python3-libsass -f %{pyproject_files} %doc README.rst %doc docs/changes.rst %{_bindir}/pysassc %{_mandir}/man1/pysassc.1* %changelog ## START: Generated by rpmautospec * Sat Dec 14 2024 Benjamin A. Beasley - 0.23.0-6 - F42+: Do not build a Sphinx-generated PDF manual - Drop and Obsolete the -doc subpackage * Sat Dec 14 2024 Benjamin A. Beasley - 0.23.0-5 - F41+: Use the provisional pyproject declarative buildsystem * Fri Jul 19 2024 Fedora Release Engineering - 0.23.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 0.23.0-3 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Benjamin A. Beasley - 0.23.0-1 - Update to 0.23.0 (close RHBZ#2257155) * Fri Jan 26 2024 Fedora Release Engineering - 0.22.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.22.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Dec 18 2023 Benjamin A. Beasley - 0.22.0-3 - Fix missing license file in python3-intern * Wed Sep 20 2023 Benjamin A. Beasley - 0.22.0-2 - Improve the source URL and archive name * Thu Sep 14 2023 Benjamin A. Beasley - 0.22.0-1 - Update to 0.22.0 (close RHBZ#1873395) - The “sassc” module is removed upstream; we already did not install /usr/bin/sassc due to conflicts with libsass. * Wed Sep 13 2023 Benjamin A. Beasley - 0.21.0-2 - Build man page with help2man instead of Sphinx * Wed Sep 13 2023 Benjamin A. Beasley - 0.21.0-1 - Update to 0.21.0 * Tue Sep 12 2023 Benjamin A. Beasley - 0.20.0-26 - Package the changelog as a text file, not only as part of the manual * Tue Sep 12 2023 Benjamin A. Beasley - 0.20.0-25 - Package the manual in a -doc subpackage * Mon Sep 11 2023 Benjamin A. Beasley - 0.20.0-23 - Confirm License is SPDX MIT * Mon Sep 11 2023 Benjamin A. Beasley - 0.20.0-22 - Add py_provides for importable modules * Mon Sep 11 2023 Benjamin A. Beasley - 0.20.0-21 - Replace deprecated license_file with license_files in setup.cfg * Mon Sep 11 2023 Benjamin A. Beasley - 0.20.0-20 - Add a missing word “to” in the description * Mon Sep 11 2023 Benjamin A. Beasley - 0.20.0-19 - Use the autopatch macro * Mon Sep 11 2023 Benjamin A. Beasley - 0.20.0-18 - Fix useless shebang in pysassc.py. * Mon Sep 11 2023 Benjamin A. Beasley - 0.20.0-17 - Port to pyproject-rpm-macros * Fri Jul 21 2023 Fedora Release Engineering - 0.20.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jul 14 2023 Mamoru TASAKA - 0.20.0-12 - Patch for sphinx 6.0 some deprecated items removal - Backport upstream patch for testsuite to support sasl 3.6.5 * Fri Jun 16 2023 Python Maint - 0.20.0-11 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.20.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.20.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 22 2022 Charalampos Stratakis - 0.20.0-8 - Fix FTBFS with setuptools >= 62.1 Resolves: rhbz#2097098 * Tue Jun 14 2022 Python Maint - 0.20.0-7 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.20.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.20.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.20.0-4 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.20.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.20.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jul 17 2020 Marcel Plch - 0.20.0-1 - Update to v0.20.0 * Tue May 26 2020 Miro Hrončok - 0.19.4-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.19.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Jan 14 2020 Marcel Plch - 0.19.4-1 - Update to 0.19.4 * Thu Oct 03 2019 Miro Hrončok - 0.18.0-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.18.0-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.18.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Jun 18 2019 Marcel Plch - 0.18.0-1 - Update to 0.18.0 * Sat Feb 02 2019 Fedora Release Engineering - 0.14.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Jul 16 2018 Marcel Plch - 0.14.5-3 - Add a needed BuildRequire * Sat Jul 14 2018 Fedora Release Engineering - 0.14.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jul 09 2018 Marcel Plch - 0.14.5-1 - Initial version of the package ## END: Generated by rpmautospec