.gear/pyScss.spec | 129 +++++++++++++++++++++ .gear/rules | 3 + .../tags/934e7be4a6be92f7d9e45f8872fb6fd883d36713 | 22 ++++ .gear/tags/list | 1 + .gear/upstream/remotes | 3 + 5 files changed, 158 insertions(+) diff --git a/.gear/pyScss.spec b/.gear/pyScss.spec new file mode 100644 index 0000000..f7cfe26 --- /dev/null +++ b/.gear/pyScss.spec @@ -0,0 +1,129 @@ +%define _unpackaged_files_terminate_build 1 + +%define oname pyScss + +%def_with check + +Name: python3-module-%oname +Version: 1.4.0 +Release: alt1 +Summary: pyScss is a compiler for the Sass language +License: MIT +Group: Development/Python +Url: https://pypi.org/project/pyScss + +# https://github.com/Kronuz/pyScss +Source: %name-%version.tar +Patch1: %name-%version-alt.patch + +BuildRequires: libpcre-devel +BuildRequires(pre): rpm-build-python3 + +%if_with check +BuildRequires: python3(PIL) +BuildRequires: python3(pytest) +BuildRequires: python3(tox) +%endif + +%py3_provides %oname +%py3_requires PIL + +%description +pyScss is a compiler for the Sass language, a superset of CSS3 that adds +programming capabilities and some other syntactic sugar. + +%prep +%setup +%patch1 -p1 + +# fix shebangs +grep -sm1 -rl \ + -e '^#!/usr/bin/env python.*$' | \ +xargs sed -s -e '1 s/^#!\/usr\/bin\/env python.*$/#!\/usr\/bin\/python3/' + +%build +%add_optflags -I%_includedir/pcre -fno-strict-aliasing +%python3_build + +%install +%python3_install +install -p -m644 scss/grammar/*.g \ + %buildroot%python3_sitelibdir/scss/grammar/ + +pushd %buildroot%_bindir +for i in $(ls); do + mv $i $i.py3 +done +popd + +%check +sed -i '/^\[testenv\]$/a whitelist_externals =\ + \/bin\/cp\ + \/bin\/sed\ +setenv =\ + py3: _PYTEST_BIN=%_bindir\/py.test3\ +commands_pre =\ + \/bin\/cp {env:_PYTEST_BIN:} \{envbindir\}\/py.test\ + \/bin\/sed -i \x271c #!\{envpython\}\x27 \{envbindir\}\/py.test' tox.ini +export PIP_NO_BUILD_ISOLATION=no +export PIP_NO_INDEX=YES +export TOXENV=py3 +tox.py3 --sitepackages -vv -r + +%files +%doc DESCRIPTION *.rst +%_bindir/less2scss.py3 +%_bindir/pyscss.py3 +%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info/ +%dir %python3_sitelibdir/scss +%python3_sitelibdir/scss/*.py +%python3_sitelibdir/scss/__pycache__/ +%dir %python3_sitelibdir/scss/grammar +%python3_sitelibdir/scss/grammar/*.py +%python3_sitelibdir/scss/grammar/*.g +%python3_sitelibdir/scss/grammar/_scanner.*.so +%python3_sitelibdir/scss/grammar/__pycache__/ +%python3_sitelibdir/scss/extension/ + +%changelog +* Thu Aug 04 2022 Grigory Ustinov 1.4.0-alt1 +- Automatically updated to 1.4.0. + +* Fri Dec 17 2021 Grigory Ustinov 1.3.7-alt3 +- Fixed build with python3.10. + +* Wed Aug 05 2020 Stanislav Levin 1.3.7-alt2 +- Fixed FTBFS(new pytest 6.0.1). + +* Thu Apr 30 2020 Stanislav Levin 1.3.7-alt1 +- 1.3.5 -> 1.3.7. +- Dropped Python2 build. + +* Sun Oct 14 2018 Igor Vlasenko 1.3.5-alt3.qa1 +- NMU: applied repocop patch + +* Fri Aug 31 2018 Stanislav Levin 1.3.5-alt3 +- Fix build + +* Wed May 30 2018 Aleksei Nikiforov 1.3.5-alt2 +- Updated build and runtime dependencies. + +* Thu Mar 22 2018 Aleksei Nikiforov 1.3.5-alt1.1.1 +- (NMU) Rebuilt with python-3.6.4. + +* Fri Feb 02 2018 Stanislav Levin 1.3.5-alt1.1 +- (NMU) Fix Requires and BuildRequires to python-setuptools + +* Wed Aug 09 2017 Aleksei Nikiforov 1.3.5-alt1 +- Updated to upstream release version 1.3.5. + +* Thu Mar 17 2016 Ivan Zakharyaschev 1.3.4-alt1.git20150122.1.1 +- (NMU) rebuild with python3-3.5 & rpm-build-python3-0.1.10 + (for ABI dependence and new python3(*) reqs) + +* Thu Jan 28 2016 Mikhail Efremov 1.3.4-alt1.git20150122.1 +- NMU: Use buildreq for BR. + +* Thu Feb 19 2015 Eugeny A. Rostovtsev (REAL) 1.3.4-alt1.git20150122 +- Initial build for Sisyphus + diff --git a/.gear/rules b/.gear/rules new file mode 100644 index 0000000..22a20d5 --- /dev/null +++ b/.gear/rules @@ -0,0 +1,3 @@ +spec: .gear/pyScss.spec +tar: @version@:. +diff: @version@:. . name=@name@-@version@-alt.patch diff --git a/.gear/tags/934e7be4a6be92f7d9e45f8872fb6fd883d36713 b/.gear/tags/934e7be4a6be92f7d9e45f8872fb6fd883d36713 new file mode 100644 index 0000000..5ae3643 --- /dev/null +++ b/.gear/tags/934e7be4a6be92f7d9e45f8872fb6fd883d36713 @@ -0,0 +1,22 @@ +object e7f2a879d8e634a8d1f33993654f959475818ad0 +type commit +tag 1.4.0 +tagger Grigory Ustinov 1659626178 +0300 + +1.4.0 +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCAAdFiEEsIBzpOzRSNGYH2NFrY4YbfUC48UFAmLr4sIACgkQrY4YbfUC +48WfQxAA062JvTRXVeJh66FfC+J5TRDw4eYOtk1do2aX4pQkvDzlMoUhGxM1HCbg +WWCgHuowqBw+KDj1+otbW5hFaSbnxIBRJydsE8CqCYovHd+U3yPM6xqGZoWWX04q +TZaQ5OFuXlba9o5kSrX9NRU0CQ9bjbO7gswhS7ssEYundYaGHVHCzk8uCu8ySiSu +D7PeQVt94bHo2IqwuUJPrAxLh/VJMNgsJvJYHaEKqSHBekOr64+OkkJBvmq+SYaN +v/l+GYSXIhRzpnDHG3b7vs/kfck/pYe1bAXbRkbgz/9f/ZOCr3CgaIAbDa1vYBi6 +2t28bJUhjHiB+ckc20kFm7r6A+Qgk0P4anmV9NnrsjXepYLFcrNIolUXgXogjKX8 +A0eT0JRYeBWkmjUGURAyUesKqGz4nOHImJSI4s8i8hPS2WmpMK7N8P43UN0/rP8N +jjncPeyG4KUDK/TfSZmJk6v3tMptNIevHiDShcg2JP4usUe+db/EIDaTcO7Wni4i +eX+KQfl7DT1+R7CHqKe5xN7gxwgHTpNXQoZG1SZXKbSze0aAHnKxwKTH7U2QdyZs +YDNFWHUDVYr8q/S7+h8aLB5pMY1jxqzd1MUGXSISHjxZpVoullOxX0font+FmeR2 +HhyojVuTPQfk91htYHAKN4wgBJGq6EVGI29NBM8+96qQbCSfNes= +=ZU5m +-----END PGP SIGNATURE----- diff --git a/.gear/tags/list b/.gear/tags/list new file mode 100644 index 0000000..72a4b3d --- /dev/null +++ b/.gear/tags/list @@ -0,0 +1 @@ +934e7be4a6be92f7d9e45f8872fb6fd883d36713 1.4.0 diff --git a/.gear/upstream/remotes b/.gear/upstream/remotes new file mode 100644 index 0000000..b858e8c --- /dev/null +++ b/.gear/upstream/remotes @@ -0,0 +1,3 @@ +[remote "upstream"] + fetch = +refs/heads/*:refs/remotes/upstream/* + url = https://github.com/Kronuz/pyScss