Accepting request 437962 from home:jengelh:branches:Base:System

- Trim macro indirections and empty macros
%{?dist} is unused in opensuse, and %__sometool is just saltcoating for non-GNU systems (which is even more distant from what we do at opensuse.org)

OBS-URL: https://build.opensuse.org/request/show/437962
OBS-URL: https://build.opensuse.org/package/show/Base:System/targetcli-fb?expand=0&rev=4
This commit is contained in:
Lee Duncan 2016-11-01 23:17:15 +00:00 committed by Git OBS Bridge
parent 7178dc2fe0
commit 11de61a0cb
2 changed files with 14 additions and 12 deletions

View File

@ -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

View File

@ -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}