diff --git a/ctags.changes b/ctags.changes index b14920d..24d9ec3 100644 --- a/ctags.changes +++ b/ctags.changes @@ -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 diff --git a/ctags.spec b/ctags.spec index edbbb65..d7086f1 100644 --- a/ctags.spec +++ b/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