Пакет python-module-lesscpy: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | %def_with python3 %global pypi_name lesscpy Name: python-module-%{pypi_name} Version: 0.10.1 Release: alt1 Summary: Lesscss compiler Group: Development/Python License: MIT URL: https://github.com/robotis/lesscpy Source0: %{name}-%{version}.tar BuildArch: noarch BuildRequires: python-devel BuildRequires: python-module-setuptools BuildRequires: python-module-ply BuildRequires: python-module-nose BuildRequires: python-module-coverage BuildRequires: python-module-flake8 Requires: python-module-ply %description A compiler written in python 3 for the lesscss language. For those of us not willing/able to have node.js installed in our environment. Not all features of lesscss are supported (yet). Some features wil probably never be supported (JavaScript evaluation). %if_with python3 %package -n python3-module-%{pypi_name} Summary: Lesscss compiler Group: Development/Python Requires: python3-module-ply BuildRequires: rpm-build-python3 BuildRequires: python3-module-setuptools BuildRequires: python3-module-ply BuildRequires: python3-module-nose BuildRequires: python3-module-flake8 BuildRequires: python3-module-coverage %description -n python3-module-%{pypi_name} A compiler written in python 3 for the lesscss language. For those of us not willing/able to have node.js installed in our environment. Not all features of lesscss are supported (yet). Some features wil probably never be supported (JavaScript evaluation). %endif %prep %setup %if_with python3 rm -rf ../python3 cp -a . ../python3 #fix utf8 encoding issue occurring only under py3 pushd ../python3 find ../python3 -name '*.py' | xargs sed -i '1s|^#!/usr/bin/python|#!%{__python3}|' popd %endif %build %python_build %if_with python3 pushd ../python3 export LANG=en_US.utf8 env %python3_build popd %endif %install %if_with python3 pushd ../python3 %python3_install mv %{buildroot}/%{_bindir}/lesscpy %{buildroot}/%{_bindir}/py3-lesscpy popd %endif %python_install #%check #nosetests -v #%if_with python3 #pushd %%{py3dir} #nosetests-3.3 -v #popd #%endif %files %doc LICENSE %{python_sitelibdir}/%{pypi_name} %{python_sitelibdir}/%{pypi_name}-%{version}-py?.?.egg-info %{_bindir}/lesscpy %if_with python3 %files -n python3-module-%{pypi_name} %doc LICENSE %{_bindir}/py3-lesscpy %{python3_sitelibdir}/%{pypi_name} %{python3_sitelibdir}/%{pypi_name}*.egg-info %endif %changelog * Fri Aug 01 2014 Lenar Shakirov <snejok@altlinux.ru> 0.10.1-alt1 - First build for ALT (based on Fedora 0.10.1-3.fc21.src) |