diff --git a/targetcli-fb.changes b/targetcli-fb.changes index c0da1b3..3198744 100644 --- a/targetcli-fb.changes +++ b/targetcli-fb.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Oct 30 23:51:52 UTC 2016 - jengelh@inai.de + +- Trim macro indirections and empty macros + ------------------------------------------------------------------- Mon Jul 25 22:28:04 UTC 2016 - lduncan@suse.com diff --git a/targetcli-fb.spec b/targetcli-fb.spec index a7b1e97..c234824 100644 --- a/targetcli-fb.spec +++ b/targetcli-fb.spec @@ -21,7 +21,7 @@ Name: %{oname} Version: 2.1.43 -Release: 1%{?dist} +Release: 0 Url: http://github.com/agrover/%{oname} Summary: A command shell for managing the Linux LIO kernel target License: Apache-2.0 @@ -57,20 +57,17 @@ no longer strictly compatible. %setup -q -n %{oname}-%{realver}%{?extraver} %build -%__python setup.py build +python setup.py build %install -%__python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%__install -d -m755 %{buildroot}%{_sysconfdir}/target -%__install -d -m755 %{buildroot}%{_sysconfdir}/target/backup -%__install -d -m755 %{buildroot}%{_sbindir} +python setup.py install --prefix=%{_prefix} --root=%{buildroot} +install -d -m755 %{buildroot}%{_sysconfdir}/target +install -d -m755 %{buildroot}%{_sysconfdir}/target/backup +install -d -m755 %{buildroot}%{_sbindir} %fdupes %{buildroot}%{python_sitelib} -%__install -D -m644 targetcli.8 %{buildroot}%{_mandir}/man8/targetcli.8 -%__install -D -m644 %{S:1} %{buildroot}%{_unitdir}/targetcli.service -%__ln_s %{_sbindir}/service %{buildroot}/%{_sbindir}/rctargetcli - -%clean -[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} +install -D -m644 targetcli.8 %{buildroot}%{_mandir}/man8/targetcli.8 +install -D -m644 %{S:1} %{buildroot}%{_unitdir}/targetcli.service +ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rctargetcli %post %{service_add_post targetcli.service}