packages: gettext/gettext-cvs.patch, gettext/gettext.spec rel 8; drop cvs d...

arekm arekm at pld-linux.org
Wed Aug 19 14:27:49 CEST 2009


Author: arekm                        Date: Wed Aug 19 12:27:49 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
rel 8; drop cvs dependency from autopoint

---- Files affected:
packages/gettext:
   gettext-cvs.patch (1.1 -> 1.2) , gettext.spec (1.165 -> 1.166) 

---- Diffs:

================================================================
Index: packages/gettext/gettext-cvs.patch
diff -u packages/gettext/gettext-cvs.patch:1.1 packages/gettext/gettext-cvs.patch:1.2
--- packages/gettext/gettext-cvs.patch:1.1	Mon Nov 10 00:44:38 2008
+++ packages/gettext/gettext-cvs.patch	Wed Aug 19 14:27:43 2009
@@ -1,16 +1,78 @@
---- gettext-0.17/./gettext-tools/misc/autopoint.in.org	2008-11-10 00:39:01.489132060 +0100
-+++ gettext-0.17/./gettext-tools/misc/autopoint.in	2008-11-10 00:41:40.679933768 +0100
-@@ -415,9 +415,12 @@
- unset CVSUMASK
- unset CVSWRAPPERS
+diff -urN gettext-0.17.org/gettext-tools/misc/autopoint.in gettext-0.17/gettext-tools/misc/autopoint.in
+--- gettext-0.17.org/gettext-tools/misc/autopoint.in	2007-11-07 03:53:58.000000000 +0100
++++ gettext-0.17/gettext-tools/misc/autopoint.in	2009-08-19 14:10:49.914980544 +0200
+@@ -339,8 +339,6 @@
+ # a severe restrictions, because most of the people who use autopoint are
+ # users of CVS.
+ #
+-# Check availability of the CVS program.
+-(cvs -v) >/dev/null 2>/dev/null || func_fatal_error "cvs program not found"
  
-+cvsoptinit=""
-+cvs --version 2> /dev/null | grep -q "CVSNT" && cvsoptinit="-n"
-+
- # Need to pass -d "$CVSROOT", because there may be a CVS directory in the
- # current directory.
+ # Check in which directory config.rpath, mkinstalldirs etc. belong.
+ auxdir=`cat "$configure_in" | grep '^AC_CONFIG_AUX_DIR' | sed -n -e 's/AC_CONFIG_AUX_DIR(\([^()]*\))/\1/p' | sed -e 's/^\[\(.*\)\]$/\1/' | sed -e 1q`
+@@ -381,17 +379,7 @@
+ # Set variables
+ # - cvs_dir         directory containing the temporary repository
+ # - work_dir        directory containing the temporary checkout
+-cvs_dir=tmpcvs$$
+ work_dir=tmpwrk$$
+-# Use an umask of 077, to avoid attacks that work by overwriting files in the
+-# "$CVSROOT"/CVSROOT directory.
+-(umask 077 && mkdir "$cvs_dir") || {
+-  if test -d "$cvs_dir"; then
+-    func_fatal_error "directory $cvs_dir already exists"
+-  else
+-    func_fatal_error "cannot create directory $cvs_dir"
+-  fi
+-}
+ mkdir "$work_dir" || {
+   if test -d "$work_dir"; then
+     func_fatal_error "directory $work_dir already exists"
+@@ -399,34 +387,13 @@
+     func_fatal_error "cannot create directory $work_dir"
+   fi
+ }
+-CVSROOT="$srcdir/$cvs_dir"
+-export CVSROOT
+-unset CVS_CLIENT_LOG
+-unset CVS_CLIENT_PORT
+-unset CVS_IGNORE_REMOTE_ROOT
+-unset CVS_PASSFILE
+-unset CVS_PASSWORD
+-unset CVS_RCMD_PORT
+-unset CVS_RSH
+-unset CVS_SERVER
+-unset CVS_SERVER_SLEEP
+-unset CVSIGNORE
+-unset CVSREAD
+-unset CVSUMASK
+-unset CVSWRAPPERS
+-
+-# Need to pass -d "$CVSROOT", because there may be a CVS directory in the
+-# current directory.
 -cvs -d "$CVSROOT" init
-+cvs -d "$CVSROOT" init $cvsoptinit
- gzip -d -c < "$gettext_dir/archive.tar.gz" | (cd "$cvs_dir" && tar xf -)
+-gzip -d -c < "$gettext_dir/archive.tar.gz" | (cd "$cvs_dir" && tar xf -)
  
  cd "$work_dir"
+ cvsver=gettext-`echo "$ver" | sed -e 's/\./_/g'`
+-(cvs checkout -r"$cvsver" archive > /dev/null) 2>&1 | grep -v '^cvs checkout: Updating'
+-find archive -name CVS -type d -print | xargs rm -rf
+-if test `find archive -type f -print | wc -l` = 0; then
+-  cd ..
+-  rm -rf "$cvs_dir" "$work_dir"
++if test -f "$gettext_dir/archive-$cvsver.tar.gz"; then
++	tar xzf "$gettext_dir/archive-$cvsver.tar.gz"
++else
++  rm -rf "$work_dir"
+   func_fatal_error "infrastructure files for version $ver not found; this is autopoint from GNU $package $version"
+ fi
+ cd ..
+@@ -489,7 +456,7 @@
+     fi
+   done
+   if test -n "$mismatch"; then
+-    rm -rf "$cvs_dir" "$work_dir"
++    rm -rf "$work_dir"
+     func_fatal_error "Some files have been locally modified. Not overwriting them because --force has not been specified. For your convenience, you find the local modifications in the file '$mismatchfile'."
+   fi
+   rm -rf "$tmp"

================================================================
Index: packages/gettext/gettext.spec
diff -u packages/gettext/gettext.spec:1.165 packages/gettext/gettext.spec:1.166
--- packages/gettext/gettext.spec:1.165	Fri Jun  5 12:59:41 2009
+++ packages/gettext/gettext.spec	Wed Aug 19 14:27:43 2009
@@ -39,7 +39,7 @@
 Summary(uk.UTF-8):	Бібліотеки та утиліти для підтримки національних мов
 Name:		gettext
 Version:	0.17
-Release:	7
+Release:	8
 License:	LGPL v2+ (libintl), GPL v3+ (tools)
 Group:		Development/Tools
 Source0:	http://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.gz
@@ -55,6 +55,7 @@
 URL:		http://www.gnu.org/software/gettext/
 BuildRequires:	autoconf >= 2.60
 BuildRequires:	automake >= 1:1.10
+BuildRequires:	cvs-gnu-client
 %{?with_gcj:BuildRequires:	gcj >= 3.0}
 %{!?with_bootstrap:BuildRequires:	glib2-devel >= 2.0}
 %if %{with javac}
@@ -283,7 +284,6 @@
 License:	GPL v3+
 Group:		Development/Tools
 Requires:	%{name}-devel >= 0.10.35
-Requires:	cvs-client
 
 %description autopoint
 The `autopoint' program copies standard gettext infrastructure files
@@ -325,6 +325,20 @@
 %patch7 -p1
 
 %build
+# make autopoint to use tar.gz archives instead of cvs repository
+install -d archive-cvs/{prepare,archive}
+tar xzf gettext-tools/misc/archive.tar.gz -C archive-cvs/prepare
+cvs -d$(pwd)/archive-cvs/prepare/archive init
+cd archive-cvs/archive
+cvs -Q -d$(pwd)/../prepare/archive -q co .
+for rev in $(cvs status -v | grep '(revision:' | awk ' { print $1 } ' | sort -u); do
+	cvs -Q up -d -r $rev
+	cd ..
+	tar czf archive-${rev}.tar.gz archive --exclude=CVS
+	cd archive
+done
+cd ../..
+
 %{__libtoolize}
 cd autoconf-lib-link
 %{__aclocal} -I m4 -I ../m4
@@ -385,6 +399,9 @@
 install gettext-tools/gnulib-lib/.libs/libgettextlib.a \
 	gettext-tools/src/.libs/libgettextsrc.a $RPM_BUILD_ROOT%{_libdir}
 
+install archive-cvs/archive-*.tar.gz $RPM_BUILD_ROOT%{_datadir}/gettext/archive
+rm $RPM_BUILD_ROOT%{_datadir}/gettext/archive.tar.gz
+
 rm -r $RPM_BUILD_ROOT%{_docdir}/gettext
 rm -r $RPM_BUILD_ROOT%{_docdir}/libasprintf
 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
@@ -518,7 +535,7 @@
 %files autopoint
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/autopoint
-%{_datadir}/gettext/archive.tar.gz
+%{_datadir}/gettext/archive
 %{_mandir}/man1/autopoint.1*
 
 %if %{with dotnet}
@@ -535,6 +552,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.166  2009/08/19 12:27:43  arekm
+rel 8; drop cvs dependency from autopoint
+
 Revision 1.165  2009/06/05 10:59:41  megabajt
 - release 7
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gettext/gettext-cvs.patch?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gettext/gettext.spec?r1=1.165&r2=1.166&f=u



More information about the pld-cvs-commit mailing list