- Cleanup spec file with spec-cleaner
OBS-URL: https://build.opensuse.org/package/show/devel:tools/ctags?expand=0&rev=26
This commit is contained in:
parent
e7d97a6eb1
commit
a6ac0395e8
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
|
20
ctags.spec
20
ctags.spec
@ -24,17 +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,
|
||||
@ -50,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
|
||||
@ -75,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user