Accepting request 397776 from devel:tools

OBS-URL: https://build.opensuse.org/request/show/397776
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ctags?expand=0&rev=31
This commit is contained in:
Dominique Leuenberger 2016-05-29 01:12:04 +00:00 committed by Git OBS Bridge
commit 84dabb0db0
2 changed files with 25 additions and 9 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue May 24 15:26:39 UTC 2016 - mpluskal@suse.com
- Cleanup spec file with spec-cleaner
-------------------------------------------------------------------
Tue May 24 10:10:43 UTC 2016 - adam.majer@suse.com
- Add missing Requires(post) on coreutils as it is using `rm`.
(boo #976920)
-------------------------------------------------------------------
Tue Oct 7 05:45:51 UTC 2014 - puzel@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package ctags
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -24,16 +24,18 @@ License: GPL-2.0+
Group: Development/Tools/Navigators
Url: http://ctags.sourceforge.net/
Source0: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
Patch1: ctags-5.7.diff
# No resources to make this patch work with ctags-5.8 (applied to ctags-5.7)
# Anyone is welcome to make it work again.
Source2: ctags-ycp-parser.diff
Patch1: ctags-5.7.diff
Patch3: ctags-date-time.patch
Patch4: go-tags.patch
Patch5: CVE-2014-7204.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: update-alternatives
PreReq: update-alternatives
Requires(pre): update-alternatives
Requires(post): update-alternatives
Requires(post): coreutils
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
CTags (from Darren Hiebert) generates tag files from source code in C,
@ -49,12 +51,15 @@ Emacs, and several other editors.
%patch5 -p1
%build
./configure CFLAGS="%{optflags} -Wall" \
--prefix=/usr --mandir=%{_mandir} --disable-etags
%configure
make %{?_smp_mflags}
%install
make install prefix=%{buildroot}/usr mandir=%{buildroot}%{_mandir}
make \
install \
prefix=%{buildroot}%{_prefix} \
bindir=%{buildroot}%{_bindir} \
mandir=%{buildroot}%{_mandir}
mv %{buildroot}%{_bindir}/ctags{,-exuberant}
mv %{buildroot}%{_mandir}/man1/ctags{,-exuberant}.1
touch %{buildroot}%{_bindir}/ctags %{buildroot}%{_mandir}/man1/ctags.1.gz
@ -74,8 +79,8 @@ fi
%defattr(-,root,root)
%doc COPYING EXTENDING.html FAQ README
%{_bindir}/ctags-exuberant
%{_mandir}/man1/ctags-exuberant.1.gz
%{_mandir}/man1/ctags-exuberant.1%{ext_man}
%ghost %attr(755,root,root) %{_bindir}/ctags
%ghost %{_mandir}/man1/ctags.1.gz
%ghost %{_mandir}/man1/ctags.1%{ext_man}
%changelog