|
|
@ -2,17 +2,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} > 7
|
|
|
|
%if 0%{?rhel} > 7
|
|
|
|
# Disable python2 build by default
|
|
|
|
# Disable python2 build by default
|
|
|
|
|
|
|
|
%bcond_with python2
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%bcond_without python2
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
Version: 0.14.0
|
|
|
|
Version: 0.13.0
|
|
|
|
Release: 7%{?dist}
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Summary: Lesscss compiler
|
|
|
|
Summary: Lesscss compiler
|
|
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/robotis/lesscpy
|
|
|
|
URL: https://github.com/robotis/lesscpy
|
|
|
|
Source0: https://pypi.python.org/packages/source/l/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
|
Source0: https://pypi.python.org/packages/source/l/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Patch0: https://github.com/lesscpy/lesscpy/pull/99.patch#/%{pypi_name}-fix-test.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%global _description\
|
|
|
|
%global _description\
|
|
|
@ -23,6 +28,21 @@ supported (JavaScript evaluation).
|
|
|
|
|
|
|
|
|
|
|
|
%description %_description
|
|
|
|
%description %_description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
|
|
|
%package -n python2-lesscpy
|
|
|
|
|
|
|
|
Summary: %summary
|
|
|
|
|
|
|
|
Requires: python2-ply
|
|
|
|
|
|
|
|
Requires: python2-six
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
|
|
|
|
BuildRequires: python2-ply
|
|
|
|
|
|
|
|
BuildRequires: python2-nose
|
|
|
|
|
|
|
|
BuildRequires: python2-coverage
|
|
|
|
|
|
|
|
BuildRequires: python2-six
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python2-lesscpy}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python2-lesscpy %_description
|
|
|
|
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-lesscpy
|
|
|
|
%package -n python3-lesscpy
|
|
|
|
Summary: %summary
|
|
|
|
Summary: %summary
|
|
|
@ -31,7 +51,8 @@ Requires: python3-six
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python3-ply
|
|
|
|
BuildRequires: python3-ply
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
BuildRequires: python3-nose
|
|
|
|
|
|
|
|
BuildRequires: python3-coverage
|
|
|
|
BuildRequires: python3-six
|
|
|
|
BuildRequires: python3-six
|
|
|
|
%{?python_provide:%python_provide python3-lesscpy}
|
|
|
|
%{?python_provide:%python_provide python3-lesscpy}
|
|
|
|
|
|
|
|
|
|
|
@ -45,11 +66,18 @@ supported (JavaScript evaluation).
|
|
|
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
|
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
|
|
|
%py2_build
|
|
|
|
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
|
|
%py3_build
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
|
|
|
%py2_install
|
|
|
|
|
|
|
|
rm %{buildroot}/%{_bindir}/lesscpy
|
|
|
|
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
|
|
%py3_install
|
|
|
|
%py3_install
|
|
|
|
# link for backwards compatibility. consider removal in Fedora 30+
|
|
|
|
# link for backwards compatibility. consider removal in Fedora 30+
|
|
|
@ -57,8 +85,17 @@ ln -s ./lesscpy %{buildroot}/%{_bindir}/py3-lesscpy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%pytest
|
|
|
|
%if %{with python2}
|
|
|
|
|
|
|
|
%{__python2} -m nose -v
|
|
|
|
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
%{__python3} -m nose -v
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
|
|
|
%files -n python2-lesscpy
|
|
|
|
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%{python2_sitelib}/%{pypi_name}
|
|
|
|
|
|
|
|
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
|
|
|
|
|
%endif # with python2
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-lesscpy
|
|
|
|
%files -n python3-lesscpy
|
|
|
|
%doc LICENSE
|
|
|
|
%doc LICENSE
|
|
|
@ -69,60 +106,12 @@ ln -s ./lesscpy %{buildroot}/%{_bindir}/py3-lesscpy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.14.0-7
|
|
|
|
* Thu Dec 07 2023 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 0.13.0-4
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.14.0-6
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 03 2021 Christian Heimes <cheimes@redhat.com> - 0.14.0-5
|
|
|
|
|
|
|
|
- Check with pytest instead of nose
|
|
|
|
|
|
|
|
- Remove build dependency on coverage
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.14.0-2
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Feb 24 2020 Thomas Andrejak <thomas.andrejak@gmail.com> - 0.14.0-1
|
|
|
|
|
|
|
|
- Bump version 0.14.0 (Fix #1792982)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-13
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.13.0-12
|
|
|
|
* Fri Jun 22 2018 Petr Viktorin <pviktori@redhat.com> - 0.13.0-4
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.13.0-11
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-10
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-9
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.13.0-8
|
|
|
|
|
|
|
|
- Subpackage python2-lesscpy has been removed
|
|
|
|
|
|
|
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 16 2018 Marcel Plch <mplch@redhat.com> - 0.13.0-7
|
|
|
|
|
|
|
|
- Remove the unused flake8 build dependency
|
|
|
|
- Remove the unused flake8 build dependency
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-6
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.13.0-5
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 13 2018 Miro Hrončok <mhroncok@redhat.com> - 0.13.0-4
|
|
|
|
|
|
|
|
- Add explicit conflicts
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 12 2018 Miro Hrončok <mhroncok@redhat.com> - 0.13.0-3
|
|
|
|
* Tue Jun 12 2018 Miro Hrončok <mhroncok@redhat.com> - 0.13.0-3
|
|
|
|
- General spec cleanup
|
|
|
|
- General spec cleanup
|
|
|
|
- Add missing dependency on six
|
|
|
|
- Add missing dependency on six
|
|
|
|