[packages/python-livereload] - new

qboosh qboosh at pld-linux.org
Fri Mar 22 19:29:17 CET 2019


commit c19795d4d9dbaf8c94f5eb331d3d34933da720e5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Mar 22 19:35:05 2019 +0100

    - new

 python-livereload.spec | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 95 insertions(+)
---
diff --git a/python-livereload.spec b/python-livereload.spec
new file mode 100644
index 0000000..1e8fb36
--- /dev/null
+++ b/python-livereload.spec
@@ -0,0 +1,95 @@
+#
+# Conditional build:
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	LiveReload - tool for web developers
+Summary(pl.UTF-8):	LiveReload - narzędzie dla programistów WWW
+Name:		python-livereload
+Version:	2.6.0
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/livereload/
+Source0:	https://files.pythonhosted.org/packages/source/l/livereload/livereload-%{version}.tar.gz
+# Source0-md5:	99b72147b9a9bc37835a649e7a039a5a
+URL:		https://github.com/lepture/python-livereload
+%if %{with python2}
+BuildRequires:	python-modules >= 1:2.7
+BuildRequires:	python-setuptools
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules >= 1:3.5
+BuildRequires:	python3-setuptools
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python-modules >= 1:2.7
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Python LiveReload is an awesome tool for web developers.
+
+%description -l pl.UTF-8
+Python LiveReload jest niesamowitym narzędziem dla programistów WWW.
+
+%package -n python3-livereload
+Summary:	LiveReload - tool for web developers
+Summary(pl.UTF-8):	LiveReload - narzędzie dla programistów WWW
+Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.5
+
+%description -n python3-livereload
+Python LiveReload is an awesome tool for web developers.
+
+%description -n python3-livereload -l pl.UTF-8
+Python LiveReload jest niesamowitym narzędziem dla programistów WWW.
+
+%prep
+%setup -q -n livereload-%{version}
+
+%build
+%if %{with python2}
+%py_build
+%endif
+
+%if %{with python3}
+%py3_build
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python3}
+%py3_install
+
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/livereload{,-3}
+%endif
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%attr(755,root,root) %{_bindir}/livereload
+%{py_sitescriptdir}/livereload
+%{py_sitescriptdir}/livereload-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-livereload
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%attr(755,root,root) %{_bindir}/livereload-3
+%{py3_sitescriptdir}/livereload
+%{py3_sitescriptdir}/livereload-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-livereload.git/commitdiff/c19795d4d9dbaf8c94f5eb331d3d34933da720e5



More information about the pld-cvs-commit mailing list