rpms/tclchecker/devel tclchecker-1.4-destdir.patch, NONE, 1.1 tclchecker-1.4-tclm4.patch, NONE, 1.1 tclchecker.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Michael Thomas (wart) fedora-extras-commits at redhat.com
Sat Nov 25 23:31:02 UTC 2006


Author: wart

Update of /cvs/extras/rpms/tclchecker/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16047/devel

Modified Files:
	.cvsignore sources 
Added Files:
	tclchecker-1.4-destdir.patch tclchecker-1.4-tclm4.patch 
	tclchecker.spec 
Log Message:
auto-import tclchecker-1.4-1.20061030cvs on branch devel from tclchecker-1.4-1.20061030cvs.src.rpm

tclchecker-1.4-destdir.patch:

--- NEW FILE tclchecker-1.4-destdir.patch ---
--- Makefile.in.orig	2006-11-01 09:46:23.000000000 -0800
+++ Makefile.in	2006-11-01 16:33:04.000000000 -0800
@@ -144,11 +144,13 @@
 infodir = @infodir@
 mandir = @mandir@
 includedir = @includedir@
+datadir = @datadir@
 oldincludedir = /usr/include
 
 DESTDIR =
 
 pkglibdir = $(prefix)/lib/@PACKAGE@@VERSION@
+pkgdatadir = $(datadir)/tclchecker at VERSION@
 
 top_builddir = .
 
@@ -268,15 +270,15 @@
 #========================================================================
 
 install-libraries: libraries installdirs
-	@echo "Installing Tcl files in $(pkglibdir)"
+	@echo "Installing Tcl files in $(DESTDIR)$(pkgdatadir)"
 	@for i in $(LIB_FILES) ; do \
-	    $(INSTALL_SCRIPT) $$i $(pkglibdir) ; \
+	    $(INSTALL_SCRIPT) $$i $(DESTDIR)$(pkgdatadir) ; \
 	done;
 	@for i in $(PCX_FILES) ; do \
 	    echo "Installing $$i" ; \
-	    $(INSTALL_SCRIPT) $$i $(pkglibdir) ; \
+	    $(INSTALL_SCRIPT) $$i $(DESTDIR)$(pkgdatadir) ; \
 	done;
-	$(INSTALL_SCRIPT) pkgIndex.tcl $(pkglibdir) ; \
+	$(INSTALL_SCRIPT) pkgIndex.tcl $(DESTDIR)$(pkgdatadir) ; \
 
 #========================================================================
 # Install documentation.  Unix manpages should go in the $(mandir)
@@ -472,7 +474,7 @@
 
 installdirs:
 	$(mkinstalldirs)  $(DESTDIR)$(libdir)
-	$(mkinstalldirs)  $(DESTDIR)$(pkglibdir)
+	$(mkinstalldirs)  $(DESTDIR)$(pkgdatadir)
 
 .PHONY: all binaries clean depend distclean doc install installdirs \
 libraries test

tclchecker-1.4-tclm4.patch:

--- NEW FILE tclchecker-1.4-tclm4.patch ---
--- config/tcl.m4.orig	2006-11-01 09:33:41.000000000 -0800
+++ config/tcl.m4	2006-11-01 09:33:20.000000000 -0800
@@ -68,7 +68,10 @@
 
 	    # check in a few common install locations
 	    if test x"${ac_cv_c_tclconfig}" = x ; then
-		for i in `ls -d ${prefix}/lib 2>/dev/null` \
+		for i in `ls -d ${libdir} 2>/dev/null` \
+		        `ls -d ${exec_prefix}/lib 2>/dev/null` \
+		        `ls -d ${prefix}/lib 2>/dev/null` \
+			`ls -d /usr/lib64 2>/dev/null` \
 			`ls -d /usr/lib 2>/dev/null` \
 			`ls -d /usr/local/lib 2>/dev/null` ; do
 		    if test -f "$i/tclConfig.sh" ; then
@@ -588,7 +591,7 @@
 	    # results, and the version is kept in special file).
 	
 	    if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
-		system=MP-RAS-`awk '{print $3}' /etc/.relid'`
+		system=MP-RAS-`awk '{print $3}' /etc/.relid`
 	    fi
 	    if test "`uname -s`" = "AIX" ; then
 		system=AIX-`uname -v`.`uname -r`


--- NEW FILE tclchecker.spec ---
%define cvsdate 20061030

Summary: Tcl syntax checker
Name: tclchecker
Version: 1.4
Release: 1.%{cvsdate}cvs%{?dist}
License: BSD
Group: Development/Libraries
# cvs -d:pserver:anonymous at tclpro.cvs.sourceforge.net:/cvsroot/tclpro export -D 2006-10-30 -d tclchecker-20061030cvs tclchecker
# tar czf tclchecker-20061030cvs.tgz ./tclchecker-20061030cvs
Source0: tclchecker-%{cvsdate}cvs.tgz
Patch0:  tclchecker-1.4-tclm4.patch
Patch1:  tclchecker-1.4-destdir.patch
URL: http://tclpro.sourceforge.net/
Requires: tcl tbcload tclparser
BuildRequires: tcl-devel autoconf
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch

%description
A syntax checker for the Tcl scripting language.

%prep
%setup -q -n %{name}-%{cvsdate}cvs
%patch0 -p0
%patch1 -p0
autoconf

%build
%configure
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
chmod a-x $RPM_BUILD_ROOT%{_datadir}/%{name}%{version}/*.tcl
chmod a-x $RPM_BUILD_ROOT%{_datadir}/%{name}%{version}/*.pcx

%check
# Disabling unit tests as they require tools that haven't been built yet.
#make test

%clean
rm -rf $RPM_BUILD_ROOT

%files
%doc ChangeLog license.terms doc/messageIDs.txt
%defattr(-,root,root)
%{_datadir}/%{name}%{version}

%changelog
* Tue Oct 31 2006 Wart <wart at kobold.org> 1.4-1.20061030cvs
- Initial package for Fedora


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/tclchecker/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	25 Nov 2006 23:29:58 -0000	1.1
+++ .cvsignore	25 Nov 2006 23:30:32 -0000	1.2
@@ -0,0 +1 @@
+tclchecker-20061030cvs.tgz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/tclchecker/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	25 Nov 2006 23:29:58 -0000	1.1
+++ sources	25 Nov 2006 23:30:32 -0000	1.2
@@ -0,0 +1 @@
+1c76f983b7ccb0d9ca0ee2c3348b18e1  tclchecker-20061030cvs.tgz




More information about the fedora-extras-commits mailing list