rpms/gettext/devel gettext-tools-tests-lang-gawk-fail.patch, NONE, 1.1 gettext.spec, 1.68, 1.69

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Tue Mar 13 06:01:44 UTC 2007


Author: petersen

Update of /cvs/dist/rpms/gettext/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv13127

Modified Files:
	gettext.spec 
Added Files:
	gettext-tools-tests-lang-gawk-fail.patch 
Log Message:
- add buildjar switch for building of libintl.jar
- lots of spec file cleanup (Mamoru Tasaka, #225791):
- preserve timestamps of installed files
- disable building of static library
- use %%find_lang for .mo files
- remove examples from -devel package
- do not own en@*quot locale dirs
- set preloadable_libintl.so executable
- add ChangeLog to -devel package
- add %%check to run make check
- add gettext-tools-tests-lang-gawk-fail.patch to work around gawk test failure


gettext-tools-tests-lang-gawk-fail.patch:
 lang-gawk |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

--- NEW FILE gettext-tools-tests-lang-gawk-fail.patch ---
diff -u gettext-0.16.1/gettext-tools/tests/lang-gawk~ gettext-0.16.1/gettext-tools/tests/lang-gawk
--- gettext-0.16.1/gettext-tools/tests/lang-gawk~	2007-03-13 14:45:22.000000000 +1000
+++ gettext-0.16.1/gettext-tools/tests/lang-gawk	2007-03-13 14:45:22.000000000 +1000
@@ -152,16 +152,16 @@
 EUR remplace FF.
 EOF
 
-: ${LOCALE_FR=fr_FR}
-: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
-if test $LOCALE_FR != none; then
-  LANGUAGE= LC_ALL=$LOCALE_FR gawk -v n=2 -f prog.awk > prog.out || exit 1
-  ${DIFF} prog.ok prog.out || exit 1
-fi
-if test $LOCALE_FR_UTF8 != none; then
-  LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 gawk -v n=2 -f prog.awk > prog.out || exit 1
-  ${DIFF} prog.oku prog.out || exit 1
-fi
+#: ${LOCALE_FR=fr_FR}
+#: ${LOCALE_FR_UTF8=fr_FR.UTF-8}
+#if test $LOCALE_FR != none; then
+#  LANGUAGE= LC_ALL=$LOCALE_FR gawk -v n=2 -f prog.awk > prog.out || exit 1
+#  ${DIFF} prog.ok prog.out || exit 1
+#fi
+#if test $LOCALE_FR_UTF8 != none; then
+#  LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 gawk -v n=2 -f prog.awk > prog.out || exit 1
+#  ${DIFF} prog.oku prog.out || exit 1
+#fi
 
 rm -fr $tmpfiles
 


Index: gettext.spec
===================================================================
RCS file: /cvs/dist/rpms/gettext/devel/gettext.spec,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -r1.68 -r1.69
--- gettext.spec	23 Feb 2007 12:16:50 -0000	1.68
+++ gettext.spec	13 Mar 2007 06:01:42 -0000	1.69
@@ -1,22 +1,29 @@
-Summary: GNU libraries and utilities for producing multi-lingual messages.
+# libintl.jar now requires gcj >= 4.3 to build
+%define buildjar 0
+
+Summary: GNU libraries and utilities for producing multi-lingual messages
 Name: gettext
 Version: 0.16.1
-Release: 5%{?dist}
+Release: 5.2%{?dist}
 License: GPL/LGPL
 Group: Development/Tools
 Source: ftp://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.gz
 URL: http://www.gnu.org/software/gettext/
 Source1: po-mode-init.el
 Source2: msghack.py
-Prereq: /sbin/install-info
+Requires(post): /sbin/install-info
+Requires(preun): /sbin/install-info
 %ifarch x86_64 ppc64 s390x
 BuildRequires: automake >= 1.8, autoconf >= 2.5
 %endif
 BuildRequires: libtool, bison, gcc-c++, gcc-java, libgcj
+%if %{buildjar}
 BuildRequires: %{_bindir}/fastjar
 # require zip and unzip for brp-java-repack-jars
 BuildRequires: zip, unzip
-Buildroot: %{_tmppath}/%{name}-%{version}-root
+%endif
+Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+Patch1: gettext-tools-tests-lang-gawk-fail.patch
 
 %description
 The GNU gettext package provides a set of tools and documentation for
@@ -37,8 +44,9 @@
 License: LGPL
 Requires: %{name} = %{version}-%{release}
 Requires: cvs
-Provides: devel(libintl)
-PreReq: /sbin/install-info
+Requires(post): /sbin/install-info
+Requires(preun): /sbin/install-info
+
 
 %description devel
 This package contains all development related files necessary for
@@ -49,21 +57,25 @@
 
 %prep
 %setup -q
+%patch1 -p1 -b .1-fails~
 
 
 %build
 [ -f  %{_datadir}/automake/depcomp ] && cp -f %{_datadir}/automake/{depcomp,ylwrap} .
 
+export JAVAC=gcj
+%if %{buildjar}
 export JAR=fastjar
-%configure --without-included-gettext --enable-nls \
-	--enable-shared --with-pic-=yes --disable-csharp --enable-java
-make
+%endif
+%configure --without-included-gettext --enable-nls --disable-static \
+    --enable-shared --with-pic-=yes --disable-csharp --enable-java
+make %{?_smp_mflags}
 
 
 %install
 rm -rf %{buildroot}
-
-%makeinstall lispdir=${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp \
+make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="%{__install} -p" \
+    lispdir=${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp \
     aclocaldir=${RPM_BUILD_ROOT}%{_datadir}/aclocal
     
 # move gettext to /bin
@@ -71,19 +83,10 @@
 mv ${RPM_BUILD_ROOT}%{_bindir}/gettext ${RPM_BUILD_ROOT}/bin
 ln -s ../../bin/gettext ${RPM_BUILD_ROOT}%{_bindir}/gettext
 
-install -m 755 %SOURCE2 ${RPM_BUILD_ROOT}/%{_bindir}/msghack
+install -pm 755 %SOURCE2 ${RPM_BUILD_ROOT}/%{_bindir}/msghack
 
 rm ${RPM_BUILD_ROOT}%{_infodir}/dir
 
-rm -f $RPM_BUILD_DIR/%{name}-%{version}/trans.list
-pushd %{buildroot}/%{_datadir}/locale
-for foo in `find . -maxdepth 1 -mindepth 1 -type d` ; do
-  lang=`echo $foo | cut -c 3-`
-  echo "%lang($lang) %{_datadir}/locale/$foo/*/*" >> \
-    $RPM_BUILD_DIR/%{name}-%{version}/trans.list
-done
-popd
-
 mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/site-start.d
 install -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/site-start.d
 
@@ -93,27 +96,41 @@
 done
 rm -r ${RPM_BUILD_ROOT}%{_datadir}/doc/gettext/javadoc*
 
-rm -rf htmldoc examples
+rm -rf ${RPM_BUILD_ROOT}%{_datadir}/doc/gettext/examples
+
+rm -rf htmldoc
 mkdir htmldoc
-mv ${RPM_BUILD_ROOT}%{_datadir}/doc/gettext/examples examples
 mv ${RPM_BUILD_ROOT}%{_datadir}/doc/gettext/* ${RPM_BUILD_ROOT}/%{_datadir}/doc/libasprintf/* htmldoc
 rm -r ${RPM_BUILD_ROOT}%{_datadir}/doc/libasprintf
 rm -r ${RPM_BUILD_ROOT}%{_datadir}/doc/gettext
 
-# set examples ChangeLog timestamp for brp-java-repack-jars
+## note libintl.jar is not actually built now with gcj < 4.3
+## since it would not be fully portable
+%if %{buildjar}
+## this is probably no longer needed if examples not packaged
+# set timestamp of examples ChangeLog timestamp for brp-java-repack-jars
 for i in `find ${RPM_BUILD_ROOT} examples -newer ChangeLog -type f -name ChangeLog`; do
   touch -r ChangeLog  $i
 done
+%endif
 
 # remove unpackaged files from the buildroot
 rm -r ${RPM_BUILD_ROOT}%{_datadir}/emacs
 rm ${RPM_BUILD_ROOT}%{_libdir}/lib*.la
 
+%find_lang %{name}-runtime
+%find_lang %{name}-tools
+cat %{name}-*.lang > %{name}.lang
+
 
 %clean
 rm -rf ${RPM_BUILD_ROOT}
 
 
+%check
+make check
+
+
 %define install_info /sbin/install-info
 %define remove_install_info /sbin/install-info --delete
 
@@ -130,8 +147,7 @@
 exit 0
 
 
-%postun
-/sbin/ldconfig
+%postun -p /sbin/ldconfig
 
 
 %post devel
@@ -145,12 +161,11 @@
 fi
 
 
-%postun devel
-/sbin/ldconfig
+%postun devel -p /sbin/ldconfig
 
 
-%files -f trans.list
-%defattr(-,root,root)
+%files -f %{name}.lang
+%defattr(-,root,root,-)
 %doc gettext-runtime/ABOUT-NLS AUTHORS gettext-runtime/BUGS
 %doc COPYING gettext-tools/misc/DISCLAIM README
 %doc NEWS THANKS 
@@ -160,28 +175,23 @@
 %{_bindir}/*
 %exclude %{_bindir}/autopoint
 %exclude %{_bindir}/gettextize
-
-# These aren't in glibc...
-%dir %{_datadir}/locale/en at boldquot
-%dir %{_datadir}/locale/en at boldquot/LC_MESSAGES
-%dir %{_datadir}/locale/en at quot
-%dir %{_datadir}/locale/en at quot/LC_MESSAGES
-
 %{_libdir}/libgettextlib-%{version}.so
 %{_libdir}/libgettextsrc-%{version}.so
-%{_libdir}/preloadable_libintl.so
+%attr(755,root,root) %{_libdir}/preloadable_libintl.so
 %{_infodir}/gettext*
 %{_mandir}/man1/*
 %exclude %{_mandir}/man1/gettextize.1.gz
 %exclude %{_mandir}/man1/autopoint.1.gz
-#%config %{_libdir}/charset.alias
 %{_libdir}/%{name}
 %exclude %{_libdir}/%{name}/gnu.gettext.*
-#%%{_datadir}/%{name}/libintl.jar
+%if %{buildjar}
+%{_datadir}/%{name}/libintl.jar
+%endif
+
 
 %files devel
-%defattr(-,root,root)
-%doc gettext-runtime/man/*.3.html examples
+%defattr(-,root,root,-)
+%doc gettext-runtime/man/*.3.html ChangeLog
 %dir %{_datadir}/%{name}
 %dir %{_datadir}/%{name}/projects
 %{_bindir}/gettextize
@@ -197,7 +207,6 @@
 %{_datadir}/aclocal/*
 %{_includedir}/*
 %{_infodir}/autosprintf*
-%{_libdir}/lib*.a
 %{_libdir}/libasprintf.so*
 %{_libdir}/libgettextpo.so*
 %{_libdir}/libgettextlib.so
@@ -211,6 +220,19 @@
 
 
 %changelog
+* Tue Mar 13 2007 Jens Petersen <petersen at redhat.com> - 0.16.1-6
+- add buildjar switch for building of libintl.jar
+- lots of spec file cleanup (Mamoru Tasaka, #225791):
+- preserve timestamps of installed files
+- disable building of static library
+- use %%find_lang for .mo files
+- remove examples from -devel package
+- do not own en@*quot locale dirs
+- set preloadable_libintl.so executable
+- add ChangeLog to -devel package
+- add %%check to run make check
+- add gettext-tools-tests-lang-gawk-fail.patch to work around gawk test failure
+
 * Fri Feb 23 2007 Karsten Hopp <karsten at redhat.com> 0.16.1-5
 - rebuild to pick up dependency on libgcj.so.8rh instead libgcj.so.7rh
 
@@ -291,14 +313,14 @@
 
 * Wed Dec 01 2004 Leon Ho <llch at redhat.com>
 - Add env var to redirect use fastjar instead of jar
-- BuildRequires %{_bindir}/fastjar and libgcj
+- BuildRequires fastjar and libgcj
 
 * Mon Nov 01 2004 Leon Ho <llch at redhat.com>
 - fix call on phase0_getc()
 - fix temp file issue (#136323 - CAN-2004-0966 - mjc)
 
 * Sun Oct 03 2004 Leon Ho <llch at redhat.com>
-- fixed typo on %preun on -devel
+- fixed typo on %%preun on -devel
 
 * Fri Oct 01 2004 Leon Ho <llch at redhat.com>
 - fix install_info
@@ -455,7 +477,7 @@
   at Japanese locale.
 
 * Wed Jan 24 2001 Matt Wilson <msw at redhat.com>
-- fixed the %lang generator to not have "./" in the lang
+- fixed the %%lang generator to not have "./" in the lang
 
 * Sun Jan 14 2001 Trond Eivind Glomsrød <teg at redhat.com>
 - add an init file for the emacs po-mode
@@ -463,7 +485,7 @@
 
 * Thu Jan 11 2001 Bill Nottingham <notting at redhat.com>
 - put gettext in /bin for initscripts use
-- %langify
+- %%langify
 
 * Fri Dec 29 2000 Bill Nottingham <notting at redhat.com>
 - prereq /sbin/install-info




More information about the fedora-cvs-commits mailing list