52 lines
1.3 KiB
RPMSpec
52 lines
1.3 KiB
RPMSpec
|
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 <silvan.calarco@mambasoft.it>
|
||
|
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 <silvan.calarco@mambasoft.it> 0.9-1mamba
|
||
|
- package created using the webbuild interface
|