diff --git a/README.md b/README.md index 9a1d635..c7157cb 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-reload +Starts given program and reloads it whenever any file in current directory changes. + diff --git a/python-reload.spec b/python-reload.spec new file mode 100644 index 0000000..e26372a --- /dev/null +++ b/python-reload.spec @@ -0,0 +1,51 @@ +Name: python-reload +Version: 0.9 +Release: 1mamba +Summary: Starts given program and reloads it whenever any file in current directory changes +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/loomchild/reload +Source: https://pypi.debian.net/reload/reload-%{version}.tar.gz +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython-devel +## AUTOBUILDREQ-END +Requires: python >= %python_version +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n reload-%{version} + +%build +CFLAGS="%{optflags}" %{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{python_inc} \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +sed -i "s,.*/man/.*,&.gz," %{name}.filelist + +%if "0%{?with_pyver}" == "0" +sed -i "/\.py[co]$/d" %{name}.filelist +%endif + +%files %{?pyappend} -f %{name}.filelist +%defattr(-,root,root) + +%changelog +* Sat Mar 02 2019 Silvan Calarco 0.9-1mamba +- package created using the webbuild interface