Compare commits

...

4 Commits
rawhide ... f11

Author SHA1 Message Date
Fedora Release Engineering 04308eb0bb dist-git conversion 2010-07-28 15:29:38 +00:00
Bill Nottingham 38e30e415c Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:55:19 +00:00
Jens Petersen f6a369a46c backport gettextize po/intl fix and java bcond improvements from devel 2009-06-23 00:46:01 +00:00
Jesse Keating 78665446a7 Initialize branch F-11 for gettext 2009-04-15 06:04:52 +00:00
4 changed files with 26 additions and 46 deletions

View File

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: gettext
# $Id: Makefile,v 1.2 2007/10/15 18:47:09 notting Exp $
NAME := gettext
SPECFILE = gettext.spec
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attempt a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View File

@ -1,12 +1,11 @@
# libintl.jar requires gcj >= 4.3 to build
%define buildjar 1
%define buildjava 1
%define buildcheck 1
%bcond_without jar
%bcond_without java
%bcond_without check
Summary: GNU libraries and utilities for producing multi-lingual messages
Name: gettext
Version: 0.17
Release: 10%{?dist}
Release: 12%{?dist}
License: GPLv3 and LGPLv2+
Group: Development/Tools
URL: http://www.gnu.org/software/gettext/
@ -19,11 +18,12 @@ BuildRequires: automake >= 1.8
%endif
BuildRequires: autoconf >= 2.5
BuildRequires: libtool, bison, gcc-c++
%if %{buildjava}
%if %{with java}
# libintl.jar requires gcj >= 4.3 to build
BuildRequires: gcc-java, libgcj
# For javadoc
BuildRequires: java-1.6.0-openjdk-devel
%if %{buildjar}
%if %{with jar}
BuildRequires: %{_bindir}/fastjar
# require zip and unzip for brp-java-repack-jars
BuildRequires: zip, unzip
@ -87,24 +87,21 @@ This package contains libraries used internationalization support.
%build
[ -f %{_datadir}/automake/depcomp ] && cp -f %{_datadir}/automake/{depcomp,ylwrap} .
%if %{buildjava}
%if %{with java}
export JAVAC=gcj
%if %{buildjar}
%if %{with jar}
export JAR=fastjar
%endif
%endif
%configure --without-included-gettext --enable-nls --disable-static \
--enable-shared --with-pic-=yes --disable-csharp \
%if %{buildjava}
%if %{with java}
--enable-java \
%else
--disable-java \
--disable-java --disable-native-java \
%endif
--disable-rpath
make %{?_smp_mflags} GCJFLAGS="-findirect-dispatch"
# For generating gettext-tools/src/gnu.gettext.*
make -C gettext-tools/src gnu.gettext.DumpResource
make %{?_smp_mflags} %{?with_java:GCJFLAGS="-findirect-dispatch"}
%install
@ -142,7 +139,7 @@ rm -r ${RPM_BUILD_ROOT}%{_datadir}/doc/gettext
## note libintl.jar does not build with gcj < 4.3
## since it would not be fully portable
%if %{buildjar}
%if %{with jar}
### this is no longer needed since 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
@ -169,7 +166,7 @@ cat %{name}-*.lang > %{name}.lang
rm -rf ${RPM_BUILD_ROOT}
%if %{buildcheck}
%if %{with check}
%check
## For Koji build problem
cp ${RPM_BUILD_ROOT}%{_libdir}/libgettext*-%{version}.so ${RPM_BUILD}gettext-tools/src/.libs
@ -230,13 +227,15 @@ fi
%{_infodir}/gettext*
%{_mandir}/man1/*
%{_libdir}/%{name}
%if %{buildjava}
%if %{with java}
%exclude %{_libdir}/%{name}/gnu.gettext.*
%endif
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/archive.tar.gz
%{_datadir}/%{name}/intl
%{_datadir}/%{name}/po
%{_datadir}/%{name}/styles
%if %{buildjar}
%if %{with jar}
%{_datadir}/%{name}/libintl.jar
%endif
@ -248,8 +247,6 @@ fi
%{_datadir}/%{name}/projects/
%{_datadir}/%{name}/config.rpath
%{_datadir}/%{name}/*.h
%{_datadir}/%{name}/intl
%{_datadir}/%{name}/po
%{_datadir}/%{name}/msgunfmt.tcl
%{_datadir}/aclocal/*
%{_includedir}/*
@ -262,7 +259,7 @@ fi
%{_mandir}/man3/*
%{_datadir}/%{name}/javaversion.class
%doc gettext-runtime/intl-java/javadoc*
%if %{buildjava}
%if %{with java}
%{_libdir}/%{name}/gnu.gettext.*
%endif
@ -274,6 +271,13 @@ fi
%changelog
* Mon Jun 22 2009 Jens Petersen <petersen@redhat.com> - 0.17-12
- move intl/ and po/ to base package for gettextize
(reported by Serge Pavlovsky, #496902)
* Fri May 22 2009 Jens Petersen <petersen@redhat.com> - 0.17-11
- use bcond's for build switches
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

View File

@ -1,3 +0,0 @@
gettext-0_17-6_fc9:HEAD:gettext-0.17-6.fc9.src.rpm:1219621503
gettext-0_17-7_fc9:HEAD:gettext-0.17-7.fc9.src.rpm:1219969143
gettext-0_17-8_fc9:HEAD:gettext-0.17-8.fc9.src.rpm:1219972072