File global.spec of Package global
#
# spec file for package global
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: global
Version: 6.5.6
Release: 0
Summary: Common source code tag system
License: GPL-3.0
Group: Development/Tools/Navigators
Url: http://www.gnu.org/software/global/
Source0: ftp://ftp.gnu.org/pub/gnu/global/%{name}-%{version}.tar.gz
Source1: ftp://ftp.gnu.org/pub/gnu/global/%{name}-%{version}.tar.gz.sig
Source2: %{name}.keyring
Patch0: global-5.7.diff
# PATCH-FIX-UPSTREAM fix_paths.patch bnc#977967
Patch1: fix_paths.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: libtool
BuildRequires: ncurses-devel
BuildRequires: python-devel
BuildRequires: sqlite3-devel
Requires(pre): %{install_info_prereq}
Requires(preun): %{install_info_prereq}
Recommends: ctags
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
GLOBAL is a common source code tag system for C, C++, Yacc, and Java.
You can locate the specified function in source files and move there
easily. It is useful to hack a large project containing many
subdirectories or many main() functions like MH, X, or Linux kernel.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
autoreconf -fiv
%configure \
--disable-static \
--with-sqlite3 \
--with-exuberant-ctags=%{_bindir}/ctags
make %{?_smp_mflags}
%install
%make_install
install -d -m 755 %{buildroot}/{usr/share/emacs/site-lisp,etc}
mv %{buildroot}/%{_docdir}/%{name}/gtags.el %{buildroot}%{_datadir}/emacs/site-lisp/
mv %{buildroot}/%{_docdir}/%{name}/gtags.conf %{buildroot}%{_sysconfdir}/
rm -rf %{buildroot}/%{_docdir}/%{name}/INSTALL
%fdupes -s %{buildroot}
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%preun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%files
%defattr(-,root,root)
%dir %{_datadir}/emacs
%dir %{_datadir}/emacs/site-lisp
%config(noreplace) %{_sysconfdir}/gtags.conf
%{_bindir}/global
%{_bindir}/globash
%{_bindir}/gozilla
%{_bindir}/gtags
%{_bindir}/gtags-cscope
%{_bindir}/htags
%{_bindir}/htags-server
%doc %{_docdir}/%{name}
%{_mandir}/man1/global.1%{ext_man}
%{_mandir}/man1/globash.1%{ext_man}
%{_mandir}/man1/gozilla.1%{ext_man}
%{_mandir}/man1/gtags-cscope.1%{ext_man}
%{_mandir}/man1/gtags.1%{ext_man}
%{_mandir}/man1/htags-server.1%{ext_man}
%{_mandir}/man1/htags.1%{ext_man}
%{_mandir}/man5/gtags.conf.5%{ext_man}
%{_infodir}/global.info%{ext_info}
%{_datadir}/emacs/site-lisp/gtags.el
%{_datadir}/gtags
%{_libdir}/gtags
%changelog