File global.spec of Package global

#
# spec file for package global
#
# Copyright (c) 2011 SUSE LINUX Products 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/
#

# norootforbuild


Name:           global
License:        GPLv3
Group:          Development/Tools/Navigators
AutoReqProv:    on
Summary:        Common Source Code Tag System
Version:        5.9.5
Release:        1
Url:            http://www.gnu.org/software/global/
Source:         %{name}-%{version}.tar.bz2
Patch:          global-5.7.diff
Patch1:         global-5.7-gcc.diff
Patch2:         global-disable-plugin-example.patch
Patch3:         global-5.9.5-fix-gcc-warnings.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  ncurses-devel
PreReq:         %install_info_prereq

%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.



Authors:
--------
    Shigio Yamaguchi <shigio@tamacom.com>

%prep
%setup -q
%patch
%patch1
%patch2 -p1
%patch3 -p1

%build
autoreconf -fi
%configure
make

%install
%makeinstall
install -d -m 755 $RPM_BUILD_ROOT/{usr/share/emacs/site-lisp,etc}
mv $RPM_BUILD_ROOT/%{_docdir}/%{name}/gtags.el $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/
mv $RPM_BUILD_ROOT/%{_docdir}/%{name}/gtags.conf $RPM_BUILD_ROOT/etc/

%clean
rm -rf $RPM_BUILD_ROOT

%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%files
%defattr(-,root,root)
%dir /usr/share/emacs
%dir /usr/share/emacs/site-lisp
%config(noreplace) /etc/gtags.conf
/usr/bin/*
%doc %{_docdir}/%{name}
%doc %{_mandir}/man1/*
%doc %{_infodir}/*.info*
/usr/share/emacs/site-lisp/gtags.el
/usr/share/gtags

%changelog
openSUSE Build Service is sponsored by