[packages/global] - up to 6.6.6 - added link patch (fix linking with home_etc library) - added info patch (unify diren
qboosh
qboosh at pld-linux.org
Wed Jun 16 18:13:46 CEST 2021
commit 8e5c353f3b55454e63001ad2b25b78b9d7484b21
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Jun 16 18:16:42 2021 +0200
- up to 6.6.6
- added link patch (fix linking with home_etc library)
- added info patch (unify direntry to PLD formatting)
- currently builds without xemacs
global-info.patch | 14 +++++++++++
global-link.patch | 25 +++++++++++++++++++
global.spec | 74 ++++++++++++++++++++++++++++++++++---------------------
3 files changed, 85 insertions(+), 28 deletions(-)
---
diff --git a/global.spec b/global.spec
index 99e666a..2ffd144 100644
--- a/global.spec
+++ b/global.spec
@@ -1,11 +1,4 @@
-# TODO
-# unpackaged:
-#%attr(755,root,root) %{_bindir}/globash
-#%attr(755,root,root) %{_bindir}/gtags-cscope
-#%{_libdir}/gtags/*.{so,la,a}
-#%{_datadir}/gtags/*
-#%{_mandir}/man1/globash.1*
-
+#
# Conditional build:
%bcond_without xemacs # without xemacs subpackage
%bcond_without pgsql # without PostgreSQL support
@@ -14,13 +7,15 @@
Summary: GNU GLOBAL - common source code tag system
Summary(pl.UTF-8): GNU GLOBAL - system list odwołań powszechnego użytku
Name: global
-Version: 6.3.4
+Version: 6.6.6
Release: 0.1
-License: GPLv2+ and BSD
+License: GPL v3+
Group: Development/Tools
-Source0: http://ftp.gnu.org/gnu/global/%{name}-%{version}.tar.gz
-# Source0-md5: 06aee2306ac2113e6347043066679eea
+Source0: https://ftp.gnu.org/gnu/global/%{name}-%{version}.tar.gz
+# Source0-md5: a8bfe02e0872db39bd11758f82a01c10
#Source1: http://www.vim.org/scripts/download_script.php?src_id=2708
+Patch0: %{name}-link.patch
+Patch1: %{name}-info.patch
Patch20: %{name}-ac-shared-pgsql.patch
URL: http://www.gnu.org/software/global/
BuildRequires: autoconf
@@ -252,8 +247,13 @@ i odwołań systemu GLOBAL używając polecenia less.
%prep
%setup -q
+%patch0 -p1
+%patch1 -p1
#%patch20 -p1
+%{__sed} -i -e '1s,/usr/bin/env perl,%{__perl},' plugin-factory/maps2conf.pl
+%{__sed} -i -e '1s,/usr/bin/env python$,%{__python3},' plugin-factory/pygments_parser.py.in
+
%build
%{__libtoolize}
%{__aclocal}
@@ -262,7 +262,7 @@ i odwołań systemu GLOBAL używając polecenia less.
%{__automake}
%configure \
%{?with_pgsql:--with-postgres=shared} \
- %{?with_home_etc:--with-home-etc=/usr}
+ %{?with_home_etc:--with-home-etc}
%{__make}
%install
@@ -295,56 +295,71 @@ echo 'setenv LESSGLOBALTAGS global' > $RPM_BUILD_ROOT/etc/profile.d/less-global
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/gtags/*.{la,a}
+
# documentation and other stuff
-mv -f $RPM_BUILD_ROOT%{_datadir}/gtags/{AUTHORS,NEWS,COPYING,ChangeLog,FAQ,INSTALL,LICENSE,README,THANKS} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
-rm -f $RPM_BUILD_ROOT%{_datadir}/gtags/{dir.gz,nvi*gtags.diff}
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/gtags/{AUTHORS,BUILD_TOOLS,NEWS,COPYING,COPYING.LIB,ChangeLog,DONORS,FAQ,INSTALL,LICENSE,PLUGIN*,README*,SERVERSIDE_HOWTO,THANKS}
+# $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+#%{__rm} $RPM_BUILD_ROOT%{_datadir}/gtags/{dir.gz,nvi*gtags.diff}
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
# vim support
-mv -f $RPM_BUILD_ROOT%{_datadir}/gtags/gtags.vim $RPM_BUILD_ROOT%{_vimdatadir}/plugin
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/gtags/*.vim $RPM_BUILD_ROOT%{_vimdatadir}/plugin
# perl wrapper
-mv -f $RPM_BUILD_ROOT%{_datadir}/gtags/gtags.pl $RPM_BUILD_ROOT%{_bindir}
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/gtags/gtags.pl $RPM_BUILD_ROOT%{_bindir}
# globash
-mv -f $RPM_BUILD_ROOT%{_datadir}/gtags/globash.rc $RPM_BUILD_ROOT%{_sysconfdir}/gtags
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/gtags/globash.rc $RPM_BUILD_ROOT%{_sysconfdir}/gtags
# default config
-mv -f $RPM_BUILD_ROOT%{_datadir}/gtags/gtags.conf $RPM_BUILD_ROOT%{_sysconfdir}/gtags
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/gtags/gtags.conf $RPM_BUILD_ROOT%{_sysconfdir}/gtags
# emacs support
%if %{with xemacs}
-mv -f $RPM_BUILD_ROOT%{_datadir}/gtags/gtags.el $RPM_BUILD_ROOT%{_datadir}/xemacs-packages/lisp/gtags
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/gtags/gtags.el $RPM_BUILD_ROOT%{_datadir}/xemacs-packages/lisp/gtags
xemacs -batch -no-autoloads -l autoload -f batch-update-directory \
$RPM_BUILD_ROOT%{_datadir}/xemacs-packages/lisp/gtags
xemacs -batch -vanilla -f batch-byte-compile \
$RPM_BUILD_ROOT%{_datadir}/xemacs-packages/lisp/gtags/gtags.el
find $RPM_BUILD_ROOT%{_datadir} -type f -name "*.el" | while read i; do test ! -f ${i}c || rm -f $i; done
+%else
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/gtags/gtags.el
%endif
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/postshell
+%post -p /sbin/postshell
-/usr/sbin/fix-info-dir -c %{_infodir}
-%postun -p /sbin/postshell
+%postun -p /sbin/postshell
-/usr/sbin/fix-info-dir -c %{_infodir}
%files
%defattr(644,root,root,755)
-%doc %{_docdir}/%{name}-%{version}
-%attr(755,root,root) %{_bindir}/g*tags
+%doc AUTHORS NEWS ChangeLog DONORS FAQ LICENSE README THANKS plugin-factory/PLUGIN_HOWTO script/SERVERSIDE_HOWTO
%attr(755,root,root) %{_bindir}/global
+%attr(755,root,root) %{_bindir}/gtags
+%attr(755,root,root) %{_bindir}/gtags-cscope
%dir %{_sysconfdir}/gtags
%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/gtags/gtags.conf
-%{_mandir}/man1/global*
-%{_mandir}/man1/g*tags*
-%{_infodir}/*.info*
+%dir %{_libdir}/gtags
+%attr(755,root,root) %{_libdir}/gtags/exuberant-ctags.so
+%attr(755,root,root) %{_libdir}/gtags/pygments-parser.so
+%attr(755,root,root) %{_libdir}/gtags/universal-ctags.so
+%attr(755,root,root) %{_libdir}/gtags/user-custom.so
+%{_datadir}/gtags
+%{_mandir}/man1/global.1*
+%{_mandir}/man1/gtags.1*
+%{_mandir}/man1/gtags-cscope.1*
+%{_mandir}/man5/gtags.conf.5*
+%{_infodir}/global.info*
%files htags
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/htags
+%attr(755,root,root) %{_bindir}/htags-server
%attr(755,root,root) %{_bindir}/gozilla
%{_mandir}/man1/htags*
%{_mandir}/man1/gozilla*
@@ -355,8 +370,10 @@ rm -rf $RPM_BUILD_ROOT
%files globash
%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/globash
%attr(755,root,root) %config %{_sysconfdir}/shrc.d/globash*
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gtags/globash.rc
+%{_mandir}/man1/globash.1*
%if %{with xemacs}
%files -n xemacs-gtags-mode-pkg
@@ -371,4 +388,5 @@ rm -rf $RPM_BUILD_ROOT
%files -n vim-global-tags
%defattr(644,root,root,755)
-%{_vimdatadir}/plugin/*
+%{_vimdatadir}/plugin/gtags.vim
+%{_vimdatadir}/plugin/gtags-cscope.vim
diff --git a/global-info.patch b/global-info.patch
new file mode 100644
index 0000000..90da10a
--- /dev/null
+++ b/global-info.patch
@@ -0,0 +1,14 @@
+--- global-6.6.6/doc/global.texi.orig 2021-05-02 09:38:53.000000000 +0200
++++ global-6.6.6/doc/global.texi 2021-06-15 21:34:39.486192199 +0200
+@@ -11,9 +11,9 @@
+ @syncodeindex op cp
+
+ @ifinfo
+- at dircategory Development
++ at dircategory Programming tools:
+ @direntry
+-* Global: (global). GNU Global source code tagging system.
++* Global: (global). GNU Global source code tagging system
+ @end direntry
+ @end ifinfo
+
diff --git a/global-link.patch b/global-link.patch
new file mode 100644
index 0000000..39fa4e4
--- /dev/null
+++ b/global-link.patch
@@ -0,0 +1,25 @@
+--- global-6.6.6/configure.ac.orig 2021-05-02 09:38:53.000000000 +0200
++++ global-6.6.6/configure.ac 2021-06-13 19:24:08.394754783 +0200
+@@ -239,9 +239,10 @@
+ AC_MSG_RESULT(no)
+ else
+ case "$withval" in
+- ''|yes) HOMEETC=/usr/local;;
++ ''|yes) HOMEETC=default;;
+ *) HOMEETC="$withval";;
+ esac
++ if test x"$HOMEETC" != xdefault; then
+ if ! test -d "$HOMEETC"; then
+ AC_MSG_ERROR([directory '$HOMEETC' not found.])
+ fi
+@@ -249,7 +250,9 @@
+ AC_MSG_ERROR([header '$HOMEETC/include/home_etc.h' not found.])
+ fi
+ AM_CPPFLAGS="$AM_CPPFLAGS -I$HOMEETC/include"
+- LDFLAGS="$LDFLAGS -L$HOMEETC/lib -lhome_etc"
++ LDFLAGS="$LDFLAGS -L$HOMEETC/lib"
++ fi
++ LIBS="$LIBS -lhome_etc"
+ AC_DEFINE(HAVE_HOME_ETC_H,1,[Define if you use home-etc facility.])
+ AC_MSG_RESULT([yes, using $HOMEETC])
+ fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/global.git/commitdiff/8e5c353f3b55454e63001ad2b25b78b9d7484b21
More information about the pld-cvs-commit
mailing list