eb792c
Name:           global
Pavel Zhukov ea08ad
Version:        6.6.5
Pavel Zhukov ea08ad
Release:        1%{?dist}
eb792c
Summary:        Source code tag system
d9430a
# The entire source code is GPLv3+ except
4e9249
#   libglibc/ which is LGPLv2+
d9430a
#   gtags-cscope/ which is BSD
d9430a
#   libparser/ which is GPLv2+
d9430a
#   jquery/ which is MIT
d9430a
License:        GPLv3+ and LGPLv2+ and BSD and GPLv2+ and MIT
eb792c
URL:            http://www.gnu.org/software/global
eb792c
Source:         ftp://ftp.gnu.org/pub/gnu/global/global-%{version}.tar.gz
Igor Gnatenko f4b881
BuildRequires:  gcc
c6203d
BuildRequires:  ncurses-devel, ctags-etags
4e9249
BuildRequires:  libtool-ltdl-devel
4e9249
BuildRequires:  python3-devel
d9430a
BuildRequires:  emacs, xemacs
39432b
BuildRequires:  sqlite-devel
Pavel Zhukov ea08ad
BuildRequires:  /usr/bin/pathfix.py
d9430a
Requires:       emacs-filesystem >= %{_emacs_version}
d9430a
Requires:       xemacs-filesystem >= %{_xemacs_version}
d9430a
Obsoletes:      emacs-global <= 6.5.1-1
d9430a
Obsoletes:      emacs-global-el <= 6.5.1-1
d9430a
Provides:       emacs-global = %{version}-%{release}
d9430a
Provides:       emacs-global-el = %{version}-%{release}
eb792c
eb792c
%description
eb792c
GNU GLOBAL is a source code tag system that works the same way across
eb792c
diverse environments. It supports C, C++, Yacc, Java, PHP and
eb792c
assembler source code.
eb792c
d9430a
%package        ctags
d9430a
Summary:        Integration of Exuberant Ctags and Pygments with GLOBAL
d9430a
License:        GPLv3+
4e9249
Requires:       %{name} = %{version}-%{release}, ctags-etags, python3-pygments
c6203d
d9430a
%description    ctags
d9430a
This package contains plug-ins that provides support for more languages
d9430a
through Pygments and Exuberant Ctags.
eb792c
eb792c
%prep
3e1e48
%autosetup -p1
31154f
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" plugin-factory/pygments_parser.py.in
eb792c
eb792c
%build
4e9249
export PYTHON=%{__python3}
39432b
%configure --with-posix-sort=/bin/sort --with-exuberant-ctags=/bin/ctags \
Pavel Zhukov ea08ad
           --localstatedir=/var/tmp/  --without-included-ltdl --with-sqlite3 \
Pavel Zhukov ea08ad
	   --disable-static 
eb792c
make %{?_smp_mflags}
eb792c
eb792c
%install
eb792c
make install DESTDIR=%{buildroot}
eb792c
eb792c
# Remove empty useless directory
eb792c
rm -f %{buildroot}%{_infodir}/dir
c6203d
c6203d
rm -f %{buildroot}%{_libdir}/gtags/*.*a
c6203d
rm -f %{buildroot}%{_libdir}/gtags/user-custom.*
eb792c
eb792c
rm %{buildroot}/%{_datadir}/gtags/{gtags.el,gtags.conf}
5688ef
rm %{buildroot}/%{_datadir}/gtags/{AUTHORS,COPYING,ChangeLog,DONORS,FAQ,INSTALL,LICENSE,NEWS,README,THANKS}
eb792c
d9430a
# fix rpmlint error
5688ef
chmod +x %{buildroot}/%{_datadir}/gtags/{global,completion}.cgi
d9430a
eb792c
mkdir -p %{buildroot}%{_sysconfdir}
eb792c
install gtags.conf -t %{buildroot}%{_sysconfdir}
eb792c
eb792c
mkdir -p %{buildroot}%{_emacs_sitelispdir}
d9430a
install gtags.el -p -t %{buildroot}%{_emacs_sitelispdir}
d9430a
%{_emacs_bytecompile} %{buildroot}%{_emacs_sitelispdir}/gtags.el
d9430a
chmod -x %{buildroot}%{_emacs_sitelispdir}/gtags.el
d9430a
mkdir -p %{buildroot}%{_xemacs_sitelispdir}
d9430a
install gtags.el -p -t %{buildroot}%{_xemacs_sitelispdir}
d9430a
%{_xemacs_bytecompile} %{buildroot}%{_xemacs_sitelispdir}/gtags.el
d9430a
chmod -x %{buildroot}%{_xemacs_sitelispdir}/gtags.el
eb792c
eb792c
## Remove executable flag
eb792c
chmod -x %{buildroot}/%{_sysconfdir}/gtags.conf
eb792c
eb792c
%files
5688ef
%doc README THANKS AUTHORS FAQ NEWS
5688ef
%doc DONORS ChangeLog
d9430a
%license LICENSE COPYING
eb792c
%config(noreplace) %{_sysconfdir}/gtags.conf
eb792c
%{_bindir}/*
eb792c
%{_infodir}/global.info*
eb792c
%{_mandir}/man*/*
eb792c
%{_datadir}/gtags
d9430a
%{_emacs_sitelispdir}/gtags.el*
d9430a
%{_xemacs_sitelispdir}/gtags.el*
eb792c
eb792c
c6203d
%files ctags
c6203d
%dir %{_libdir}/gtags
c6203d
%{_libdir}/gtags/*
c6203d
eb792c
%changelog
Pavel Zhukov ea08ad
* Mon Sep 14 2020 Pavel Zhukov <pzhukov@redhat.com> - 6.6.5-1
Pavel Zhukov ea08ad
- New version v6.6.5 (#1875256)
Pavel Zhukov ea08ad
cba1d1
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.6.4-3
cba1d1
- Second attempt - Rebuilt for
cba1d1
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
cba1d1
f55e80
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.6.4-2
f55e80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f55e80
b984d5
* Tue Feb 11 2020 Pavel Zhukov <pzhukov@redhat.com> - 6.6.4-1
b984d5
- New version 6.6.4 (#1786393)
b984d5
3e1e48
* Tue Feb 11 2020 Pavel Zhukov <pzhukov@redhat.com> - 6.6.3-4
3e1e48
- Fix build with -fno-common
3e1e48
c3de30
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.6.3-3
c3de30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c3de30
abc62d
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.6.3-2
abc62d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
abc62d
31154f
* Thu May 23 2019 Pavel Zhukov <pzhukov@redhat.com> - 6.6.3-1
31154f
- New release v6.6.3
31154f
510cdc
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.6.2-6
510cdc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
510cdc
39432b
* Thu Aug 09 2018 Gregory Shimansky <gshimansky@gmail.com> - 6.5.7-6
39432b
- Added support for sqlite3
39432b
cecb8c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.6.2-4
cecb8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
cecb8c
5bce2c
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 6.6.2-3
5bce2c
- Rebuilt for Python 3.7
5bce2c
e14ef8
* Mon Jun 18 2018 Pavel Zhukov <pzhukov@redhat.com> - 6.6.2-2
e14ef8
- Delete install-info according to packaging guidelines
e14ef8
43f0b6
* Mon Feb 12 2018 Pavel Zhukov <pzhukov@redhat.com> - 6.6.2-1
43f0b6
- New version 6.6.2 (#1543839)
43f0b6
94fbbf
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.6.1-2
94fbbf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
94fbbf
9599a8
* Mon Dec 18 2017 Pavel Zhukov <pzhukov@redhat.com> - 6.6.1-1
9599a8
- New release 6.6.1 (#1524996)
9599a8
d448e5
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.5.7-3
d448e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
d448e5
93d795
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.5.7-2
93d795
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
93d795
aa08ea
* Thu May 25 2017 Pavel Zhukov <pzhukov@redhat.com> - 6.5.7-1
aa08ea
- Update to 6.5.7
aa08ea
5688ef
* Wed Mar  1 2017 Robin Lee <cheeselee@fedoraproject.org> - 6.5.6-1
5688ef
- Update to 6.5.6
5688ef
88a6dc
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.5.2-3
88a6dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
88a6dc
d54311
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 6.5.2-2
d54311
- Rebuild for Python 3.6
d54311
4e9249
* Fri Mar 11 2016 Robin Lee <cheeselee@fedoraproject.org> - 6.5.2-1
4e9249
- Update to 6.5.2
4e9249
- Explicitly use Python3
4e9249
- Use system ltdl
4e9249
31c1eb
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 6.5.1-2
31c1eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
31c1eb
d9430a
* Thu Nov 12 2015 Robin Lee <cheeselee@fedoraproject.org> - 6.5.1-1
d9430a
- Update 6.5.1
d9430a
- Dropped global-6.3.3-format-security.patch
d9430a
- Fix plug-ins' paths (BZ#1268763)
d9430a
- Dropped emacs subpackages (BZ#1234559)
d9430a
- Include elisp addon also for XEmacs
d9430a
- Fix some rpmlint errors
d9430a
- Revised summary and description for ctags subpackage
d9430a
- Revised license tags and use %%license to install LICENSE and COPYING
d9430a
42d42e
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.3.3-2
42d42e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
42d42e
5b8b6c
* Wed Nov 26 2014  Pavel Zhukov <landgraf@fedoraproject.org> - 6.3.3-1
5b8b6c
- New version
5b8b6c
238dca
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.2.12-4
238dca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
238dca
d8242a
* Fri Aug 08 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 6.2.12-3
d8242a
- Fix FTBFS with -Werror=format-security (#1106647)
d8242a
50c9d5
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.2.12-2
50c9d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
50c9d5
7e5031
* Sat May 17 2014 Pavel Zhukov <landgraf@fedoraproject.org> - 6.2.12-1
7e5031
- New release 
7e5031
c6203d
* Wed Oct 30 2013 Sjoerd Mullender <sjoerd@acm.org> - 6.2.9-4
c6203d
- Install exuberant-ctags.so (#801562).
c6203d
eb792c
* Tue Oct 08 2013 Pavel Zhukov <landgraf@fedoraproject.org> - 6.2.9-3
eb792c
- Remove deprecated defattr
eb792c
- Cosmetic changes after review
eb792c
eb792c
* Mon Oct 07 2013 Pavel Zhukov <landgraf@fedoraproject.org> - 6.2.9-1
eb792c
- Unorphan package
eb792c
- New release 6.2.9
eb792c
eb792c
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.9.3-5
eb792c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
eb792c
eb792c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.9.3-4
eb792c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
eb792c
eb792c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.9.3-3
eb792c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
eb792c
eb792c
* Wed Dec  8 2010 Karel Klic <kklic@redhat.com> - 5.9.3-2
eb792c
- Added --with-posix-sort=/bin/sort to %%configure to speed up
eb792c
  indexing.
eb792c
eb792c
* Wed Dec  8 2010 Karel Klic <kklic@redhat.com> - 5.9.3-1
eb792c
- Newest upstream release.
eb792c
eb792c
* Wed Dec  8 2010 Karel Klic <kklic@redhat.com> - 5.7.5-2
eb792c
- Build gtags.elc and package it in the new emacs-global package.
eb792c
- Package gtags.el in the new emacs-global-el package.
eb792c
- Removed docs from /usr/share/gtags.
eb792c
- Added more docs to %%doc.
eb792c
- Install default gtags.conf into /etc.
eb792c
- Removed deprecated %%clean section.
eb792c
- Removed unused BuildRoot tag.
eb792c
eb792c
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.7.5-2
eb792c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
eb792c
eb792c
* Tue Jun 16 2009 Gerard Milmeister <gemi@bluewin.ch> - 5.7.5-1
eb792c
- new release 5.7.5
eb792c
eb792c
* Fri Nov 21 2008 Gerard Milmeister <gemi@bluewin.ch> - 5.7.3-1
eb792c
- new release 5.7.3
eb792c
eb792c
* Sun Oct 19 2008 Gerard Milmeister <gemi@bluewin.ch> - 5.7.2-1
eb792c
- new release 5.7.2
eb792c
eb792c
* Sat Aug  2 2008 Gerard Milmeister <gemi@bluewin.ch> - 5.7.1-1
eb792c
- new release 5.7.1
eb792c
eb792c
* Mon Jul 21 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 5.4-3
eb792c
- fix license tag
eb792c
eb792c
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 5.4-2
eb792c
- Autorebuild for GCC 4.3
eb792c
eb792c
* Sat Feb 24 2007 Gerard Milmeister <gemi@bluewin.ch> - 5.4-1
eb792c
- new version 5.4
eb792c
eb792c
* Sat Dec  2 2006 Gerard Milmeister <gemi@bluewin.ch> - 5.3-1
eb792c
- new version 5.3
eb792c
eb792c
* Wed Aug 30 2006 Gerard Milmeister <gemi@bluewin.ch> - 5.2-1
eb792c
- new version 5.2
eb792c
eb792c
* Mon Aug 28 2006 Gerard Milmeister <gemi@bluewin.ch> - 5.0-2
eb792c
- Rebuild for FE6
eb792c
eb792c
* Sun Apr 30 2006 Gerard Milmeister <gemi@bluewin.ch> - 5.0-1
eb792c
- new version 5.0
eb792c
eb792c
* Fri Feb 17 2006 Gerard Milmeister <gemi@bluewin.ch> - 4.8.7-3
eb792c
- Rebuild for Fedora Extras 5
eb792c
eb792c
* Wed Oct  5 2005 Gerard Milmeister <gemi@bluewin.ch> - 4.8.7-2
eb792c
- Remove dir in /usr/share/info
eb792c
eb792c
* Sat Oct  1 2005 Gerard Milmeister <gemi@bluewin.ch> - 4.8.7-1
eb792c
- New Version 4.8.7
eb792c
eb792c
* Tue Jul  5 2005 Gerard Milmeister <gemi@bluewin.ch> - 4.8.6-1
eb792c
- New Version 4.8.6
eb792c
eb792c
* Wed May 25 2005 Jeremy Katz <katzj@redhat.com> - 4.8.4-4
eb792c
- fix build with gcc4 (#156212)
eb792c
eb792c
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 4.8.4-3
eb792c
- rebuild on all arches
eb792c
eb792c
* Thu Apr 07 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
eb792c
- rebuilt
eb792c
eb792c
* Mon Mar  7 2005 Gerard Milmeister <gemi@bluewin.ch> - 4.8.4-1
eb792c
- New Version 4.8.4
eb792c
eb792c
* Mon Dec 27 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:4.8.2-0.fdr.1
eb792c
- New Version 4.8.2
eb792c
eb792c
* Sat Oct 23 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:4.8.1-0.fdr.1
eb792c
- New Version 4.8.1
eb792c
eb792c
* Sat Jul 17 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:4.7.2-0.fdr.1
eb792c
- New Version 4.7.2
eb792c
eb792c
* Fri Mar 19 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:4.7-0.fdr.1
eb792c
- New Version 4.7
eb792c
eb792c
* Thu Nov 27 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:4.6.1-0.fdr.1
eb792c
- First Fedora release
eb792c