Package python-module-livereload: 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 105 106 107 108 109 110 111 112 113 114 115 116 | %global pypi_name livereload %def_with python3 Name: python-module-%pypi_name Version: 2.5.1 Release: alt1 Summary: Utility for starting a server in a directory License: BSD URL: https://github.com/lepture/python-livereload Group: Development/Python Source0: %name-%version.tar BuildArch: noarch BuildRequires: python-module-setuptools python-module-setuptools-tests BuildRequires: python-devel BuildRequires: python-module-six BuildRequires: python-module-tornado BuildRequires: python-module-certifi BuildRequires: python-module-backports_abc BuildRequires: python-module-backports.ssl_match_hostname BuildRequires: python-module-django Requires: python-module-backports.ssl_match_hostname Requires: python-module-tornado Requires: python-module-six %description LiveReload provides a command line utility, livereload, for starting a server in a directory. By default, it will listen to port 35729, the common port for LiveReload browser extensions. LiveReload is designed for web developers who know Python. %if_with python3 %package -n python3-module-%pypi_name Summary: Command line utility for starting a server in a directory Group: Development/Documentation BuildRequires: python3-module-setuptools python3-module-setuptools-tests BuildRequires: python3-devel BuildRequires: python3-module-six BuildRequires: python3-module-tornado BuildRequires: python3-module-certifi BuildRequires: python3-module-backports_abc BuildRequires: python3-module-django Requires: python3-module-tornado Requires: python3-module-six %description -n python3-module-%pypi_name Python3 LiveReload provides a command line utility, livereload, for starting a server in a directory. By default, it will listen to port 35729, the common port for LiveReload browser extensions. LiveReload is designed for web developers who know Python. %endif %package docs Summary: Documentation for %name Group: Development/Python %description docs LiveReload documentation and examples. %prep %setup %if_with python3 cp -fR . ../python3 %endif %build %python_build %if_with python3 pushd ../python3 %python3_build popd %endif %install %python_install %if_with python3 pushd ../python3 %python3_install popd %endif %check %__python setup.py test %if_with python3 pushd ../python3 %__python3 setup.py test popd %endif %if_with python3 %files -n python3-module-%pypi_name %doc README.rst CHANGES.rst LICENSE %_bindir/%pypi_name %python3_sitelibdir/%pypi_name %python3_sitelibdir/%pypi_name-%version-py?.?.egg-info %endif %files -n python-module-%pypi_name %doc README.rst CHANGES.rst LICENSE %python_sitelibdir/%pypi_name %python_sitelibdir/%pypi_name-%version-py?.?.egg-info %files docs %doc docs example LICENSE %changelog * Mon May 29 2017 Lenar Shakirov <snejok@altlinux.ru> 2.5.1-alt1 - Initial build for ALT (based on 2.5.1-2.fc26.src) |