Accepting request 436960 from home:jengelh:branches:utilities

- Remove redundant sections

OBS-URL: https://build.opensuse.org/request/show/436960
OBS-URL: https://build.opensuse.org/package/show/utilities/etckeeper?expand=0&rev=13
This commit is contained in:
Mitsutoshi NAKANO 2016-10-24 17:00:15 +00:00 committed by Git OBS Bridge
parent 53bc8c5530
commit 224c4dbdab
2 changed files with 7 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Oct 22 17:39:27 UTC 2016 - jengelh@inai.de
- Remove redundant sections
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Oct 15 09:34:41 UTC 2016 - ecsos@opensuse.org Sat Oct 15 09:34:41 UTC 2016 - ecsos@opensuse.org

View File

@ -108,7 +108,7 @@ The etckeeper-zypp-plugin calls etckeeper from YUM.
%endif %endif
%prep %prep
%setup -q -n %{name}-%{version} %setup -q
%patch0 -p1 %patch0 -p1
%__perl -pi -e ' %__perl -pi -e '
@ -118,7 +118,7 @@ s|^(\s*)(VCS)=.+|$1$2=git|;
' ./etckeeper.conf ' ./etckeeper.conf
# rpmlint # rpmlint
find -type f -name ".gitignore" -exec rm {} \; find -type f -name ".gitignore" -delete
# use %%{_unitdir} for rpm-based distros # use %%{_unitdir} for rpm-based distros
sed -i 's:systemddir=/lib/systemd/system:systemddir=%{_unitdir}:g' Makefile sed -i 's:systemddir=/lib/systemd/system:systemddir=%{_unitdir}:g' Makefile
@ -137,9 +137,6 @@ mkdir %{buildroot}%{_sbindir}
ln -s ../bin/%{name} %{buildroot}%{_sbindir}/%{name} ln -s ../bin/%{name} %{buildroot}%{_sbindir}/%{name}
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name} ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%pre %pre
%service_add_pre etckeeper.service %service_add_pre etckeeper.service