SFEctags.spec: use exctags as name, to be compatible with OpenSolaris distro and avoid clash
authorjurikm
Fri, 12 Nov 2010 16:09:07 +0000
changeset 3020 f156101db6ed
parent 3019 338cdda28524
child 3021 581328cff4f6
SFEctags.spec: use exctags as name, to be compatible with OpenSolaris distro and avoid clash
ChangeLog
SFEctags.spec
patches/ctags-02-exctags.diff
--- a/ChangeLog	Fri Nov 12 01:58:09 2010 +0000
+++ b/ChangeLog	Fri Nov 12 16:09:07 2010 +0000
@@ -1,3 +1,8 @@
+2010-11-12 Milan Jurik <[email protected]>
+
+	* SFEctags.spec: use exctags as name, to be compatible with OpenSolaris
+	  distro and avoid clash
+
 2010-11-11  Alex Viskovatoff
 
 	* experimental/SFEqt47.spec: Fork spec off SFEqt4.spec
--- a/SFEctags.spec	Fri Nov 12 01:58:09 2010 +0000
+++ b/SFEctags.spec	Fri Nov 12 16:09:07 2010 +0000
@@ -4,21 +4,23 @@
 # includes module(s): ctags
 #
 %include Solaris.inc
-%include usr-gnu.inc
 
 Name:                SFEctags
 Summary:             Exuberant ctags
 Version:             5.8
+License:             GPLv2
+URL:                 http://ctags.sourceforge.net/
 Source:              %{sf_download}/ctags/ctags-%{version}.tar.gz
 Patch1:		     ctags-01-destdir.diff
+Patch2:              ctags-02-exctags.diff
 SUNW_BaseDir:        %{_basedir}
 BuildRoot:           %{_tmppath}/%{name}-%{version}-build
 %include default-depend.inc
-Requires: SUNWpostrun
 
 %prep
 %setup -q -n ctags-%version
 %patch1 -p1
+%patch2 -p1
 
 %build
 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
@@ -38,7 +40,9 @@
             --libdir=%{_libdir} \
             --includedir=%{_includedir} \
             --mandir=%{_mandir} \
-	    --infodir=%{_infodir}
+	    --infodir=%{_infodir} \
+	    --enable-etags \
+	    --with-posix-regex
 
 make -j$CPUS
 
@@ -47,21 +51,24 @@
 
 make install DESTDIR=$RPM_BUILD_ROOT
 
-cd $RPM_BUILD_ROOT%{_prefix}
-ln -s share/man man
+#mv $RPM_BUILD_ROOT%{_prefix}/man $RPM_BUILD_ROOT%{_mandir}
+# No deliverables clash
+mv $RPM_BUILD_ROOT%{_bindir}/ctags $RPM_BUILD_ROOT%{_bindir}/exctags
+mv $RPM_BUILD_ROOT%{_mandir}/man1/ctags.1 $RPM_BUILD_ROOT%{_mandir}/man1/exctags.1
+cd $RPM_BUILD_ROOT%{_mandir}/man1/ && ln -s exctags.1 etags.1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr (-, root, bin)
-%dir %attr (0755, root, bin) %{_prefix}
+%{_bindir}
 %dir %attr (0755, root, sys) %{_datadir}
-%{_prefix}/man
-%{_bindir}
 %{_mandir}
 
 %changelog
+* Fri Nov 12 2010 - Milan Jurik
+- use exctags as name, to be compatible with OpenSolaris distro and avoid clash
 * Fri Nov 13 2009 - [email protected]
 - Bump to 5.8
 * Thu Oct 30 2008 - [email protected]
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/ctags-02-exctags.diff	Fri Nov 12 16:09:07 2010 +0000
@@ -0,0 +1,83 @@
+--- ctags-5.8/ctags.1	2009-07-10 00:03:54.000000000 +0200
++++ ctags-5.8-patch/ctags.1	2010-11-12 15:48:15.993163977 +0100
+@@ -1,4 +1,4 @@
+-.TH CTAGS 1 "Version 5.8" "Darren Hiebert" "Exuberant Ctags"
++.TH exctags 1 "Version 5.8" "Darren Hiebert" "Exuberant Ctags"
+ 
+ 
+ .SH "NAME"
+@@ -7,13 +7,13 @@
+ 
+ .SH SYNOPSIS
+ .TP 6
+-\fBctags\fP [\fBoptions\fP] [\fIfile(s)\fP]
++\fBexctags\fP [\fBoptions\fP] [\fIfile(s)\fP]
+ .TP 6
+ \fBetags\fP [\fBoptions\fP] [\fIfile(s)\fP]
+ 
+ 
+ .SH "DESCRIPTION"
+-The \fBctags\fP and \fBetags\fP programs (hereinafter collectively referred to
++The \fBexctags\fP and \fBetags\fP programs (hereinafter collectively referred to
+ as \fBctags\fP, except where distinguished) generate an index (or "tag") file
+ for a variety of language objects found in \fIfile(s)\fP.
+ This tag file allows these items to be quickly and easily located by a text
+@@ -63,8 +63,8 @@
+ checked to see if the file is a "#!" script for a recognized language.
+ 
+ By default, all other files names are ignored. This permits running
+-\fBctags\fP on all files in either a single directory (e.g. "ctags *"), or on
+-all files in an entire source directory tree (e.g. "ctags \-R"), since only
++\fBctags\fP on all files in either a single directory (e.g. "exctags *"), or on
++all files in an entire source directory tree (e.g. "exctags \-R"), since only
+ those files whose names are mapped to languages will be scanned.
+ 
+ [The reason that .h extensions are mapped to C++ files rather than C files
+@@ -75,7 +75,7 @@
+ .SH "OPTIONS"
+ 
+ Despite the wealth of available options, defaults are set so that \fBctags\fP
+-is most commonly executed without any options (e.g. "ctags *", or "ctags \-R"),
++is most commonly executed without any options (e.g. "exctags *", or "exctags \-R"),
+ which will create a tag file in the current directory for all recognized
+ source files. The options described below are provided merely to allow custom
+ tailoring to meet special needs.
+@@ -123,7 +123,7 @@
+ "\-", then the tag file is written to standard output instead. \fBCtags\fP
+ will stubbornly refuse to take orders if \fItagfile\fP exists and its first
+ line contains something other than a valid tags line. This will save your neck
+-if you mistakenly type "ctags \-f *.c", which would otherwise overwrite your
++if you mistakenly type "exctags \-f *.c", which would otherwise overwrite your
+ first C file with the tags generated by the rest! It will also refuse to
+ accept a multi-character file name which begins with a '\-' (dash) character,
+ since this most likely means that you left out the tag file name and this
+@@ -277,9 +277,9 @@
+ source line (with extra white space condensed) of the file which defines the
+ tag. No tag file is written and all options affecting tag file output will be
+ ignored. Example applications for this feature are generating a listing of all
+-functions located in a source file (e.g. \fBctags \-x \-\-c\-kinds\fP=\fIf\fP
++functions located in a source file (e.g. \fBexctags \-x \-\-c\-kinds\fP=\fIf\fP
+ \fIfile\fP), or generating a list of all externally visible global variables
+-located in a source file (e.g. \fBctags \-x \-\-c\-kinds\fP=\fIv\fP
++located in a source file (e.g. \fBexctags \-x \-\-c\-kinds\fP=\fIv\fP
+ \fB\-\-file\-scope\fP=\fIno file\fP). This option must appear before the first
+ file name.
+ 
+@@ -686,7 +686,7 @@
+ list of supplied files is empty and no file list is specified with the
+ \fB\-L\fP option, then the current directory (i.e. ".") is assumed. Symbolic
+ links are followed. If you don't like these behaviors, either explicitly
+-specify the files or pipe the output of \fBfind\fP(1) into \fBctags \-L\-\fP
++specify the files or pipe the output of \fBfind\fP(1) into \fBexctags \-L\-\fP
+ instead. \fBNote:\fP This option is not supported on all platforms at present.
+ It is available if the output of the \fB\-\-help\fP option includes this option.
+ See, also, the \fB\-\-exclude\fP to limit recursion.
+@@ -1070,7 +1070,7 @@
+ .TP 8
+ .B CTAGS
+ If this environment variable exists, it will be expected to contain a set of
+-default options which are read when \fBctags\fP starts, after the
++default options which are read when \fBexctags\fP starts, after the
+ configuration files listed in \fBFILES\fP, below, are read, but before any
+ command line options are read. Options appearing on the command line will
+ override options specified in this variable. Only options will be read from