base-specs/gettext.spec
author yippi
Thu, 31 May 2012 20:16:52 +0000
changeset 22481 1ff6784d9b6f
parent 17864 337913e88a9d
permissions -rw-r--r--
2012-05-31 Brian Cameron <[email protected]> * base-specs/shared-mime-info.spec: Bump to 1.0. * base-specs/nautilus.spec, base-specs/pulseaudio.spec, base-specs/gnome-settings-daemon.spec, specs/SUNWdconf.spec: Add patch comments. * base-specs/gnome-panel.spec: Add --disable-telepathy-glib so it does not build with this module we do not deliver.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     1
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     2
# spec file for package gettext
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     3
#
12105
9adcfcf31a94 2008-04-14 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11393
diff changeset
     4
# Copyright 2008 Sun Microsystems, Inc.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     6
# package are under the same license as the package itself.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     7
#
16434
f21f22550fe9 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16426
diff changeset
     8
%define owner laca
11393
2f8f9b52bc8b Add patch comments.
yippi
parents: 11311
diff changeset
     9
# bugdb: https://savannah.gnu.org/bugs/?group=gettext
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    10
#
16426
6e0af232ec80 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 12105
diff changeset
    11
6e0af232ec80 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 12105
diff changeset
    12
%define OSR 5588&7675:0.16.1
6e0af232ec80 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 12105
diff changeset
    13
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
Name:			gettext-tools
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
License:		GPL
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
Group:			system/library
12105
9adcfcf31a94 2008-04-14 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11393
diff changeset
    17
# Don't upgrade to 0.17 and later for now as it's licensed GPLv3
9adcfcf31a94 2008-04-14 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11393
diff changeset
    18
# and we don't have a policy around GPLv3 code yet (as of 2008-04-14)
9adcfcf31a94 2008-04-14 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11393
diff changeset
    19
Version:		0.16.1
11311
7ae76a4d0735 2007-12-11 Brian Cameron <[email protected]>
yippi
parents: 10634
diff changeset
    20
Release:		1
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
Distribution:		Sun Java Desktop System
17864
337913e88a9d 2010-04-19 Christian Kelly <[email protected]>
chrisk
parents: 16434
diff changeset
    22
Vendor:			gnu.org
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
Summary:		GNU gettext tools
10143
0dab6ed32e3d * base-specs/gettext.spec: Use http url since ftp need authorization.
halton
parents: 9531
diff changeset
    24
Source:			http://ftp.gnu.org/pub/gnu/gettext/gettext-%{version}.tar.gz
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
URL:			http://www.gnu.org/
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
%define gettextdir %{_libdir}/intltool/gettext-tools
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
%description
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
GNU gettext tools for use in intltool in the JDS build environment
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
%setup -q -n gettext-%{version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
if test "x$CPUS" = "x" -o $CPUS = 0; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
  CPUS=1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
fi
11311
7ae76a4d0735 2007-12-11 Brian Cameron <[email protected]>
yippi
parents: 10634
diff changeset
    41
CFLAGS="$RPM_OPT_FLAGS"		\
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
./configure --disable-nls \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
    --prefix=%{_prefix} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
    --bindir=%{gettextdir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
    --libdir=%{gettextdir}/lib \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
    --datadir=%{gettextdir}/share \
9531
76f32a040778 2007-03-12 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    47
    --includedir=%{gettextdir}/include \
76f32a040778 2007-03-12 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
    48
    --without-emacs
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
old_IFS="$IFS"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
IFS=:
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
for d in $PATH; do
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
    test -x $d/libtool || continue
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
    cp $d/libtool gettext-runtime/libasprintf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
    break
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
done
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
IFS="$old_IFS"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
perl -pi -e 's,^LTCC=".*/(cc|gcc)"$,LTCC="'"$CC"'",' \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
    gettext-runtime/libasprintf/libtool
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
perl -pi -e 's,^CC=".*/(cc|gcc)"$,CC="'"$CC"'",' \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
    gettext-runtime/libasprintf/libtool
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
perl -pi -e 's,^LTCC=".*/(CC|g\+\+)"$,LTCC="'"$CXX"'",' \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
    gettext-runtime/libasprintf/libtool
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
perl -pi -e 's,^CC=".*/(CC|g\+\+)"$,CC="'"$CXX"'",' \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
    gettext-runtime/libasprintf/libtool
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
make -j$CPUS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
make install DESTDIR=$RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
rm -rf $RPM_BUILD_ROOT%{gettextdir}/share
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
rm -rf $RPM_BUILD_ROOT%{gettextdir}/include
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
rm -f $RPM_BUILD_ROOT%{gettextdir}/gettext
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
rm -f $RPM_BUILD_ROOT%{gettextdir}/msgfmt
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
rm -f $RPM_BUILD_ROOT%{gettextdir}/lib/*a
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
rm -rf $RPM_BUILD_ROOT%{_prefix}/info
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
rm -rf $RPM_BUILD_ROOT%{gettextdir}/share/emacs
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
rm -f $RPM_BUILD_ROOT%{gettextdir}/autopoint
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
rm -f $RPM_BUILD_ROOT%{gettextdir}/envsubst
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
rm -f $RPM_BUILD_ROOT%{gettextdir}/gettext*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
rm -f $RPM_BUILD_ROOT%{gettextdir}/msg[acefgiu]*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
rm -f $RPM_BUILD_ROOT%{gettextdir}/ngettext
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
rm -f $RPM_BUILD_ROOT%{gettextdir}/lib/libas*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
rm -f $RPM_BUILD_ROOT%{gettextdir}/lib/preloa*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
rm -rf $RPM_BUILD_ROOT%{gettextdir}/lib/gettext
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
rm -f $RPM_BUILD_ROOT%{gettextdir}/lib/libgettextpo*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
10634
5bed4988f24b 2007-10-10 Damien Carbery <[email protected]>
dcarbery
parents: 10143
diff changeset
    89
# Change /usr/bin/perl to /usr/perl5/bin/perl. Preempting bugs like 5100958.
5bed4988f24b 2007-10-10 Damien Carbery <[email protected]>
dcarbery
parents: 10143
diff changeset
    90
export PERL=/usr/perl5/bin/perl
5bed4988f24b 2007-10-10 Damien Carbery <[email protected]>
dcarbery
parents: 10143
diff changeset
    91
cd $RPM_BUILD_ROOT%{_datadir}/doc/gettext/examples/hello-c++-kde/admin
5bed4988f24b 2007-10-10 Damien Carbery <[email protected]>
dcarbery
parents: 10143
diff changeset
    92
for f in debianrules conf.change.pl cvs-clean.pl am_edit config.pl
5bed4988f24b 2007-10-10 Damien Carbery <[email protected]>
dcarbery
parents: 10143
diff changeset
    93
do
5bed4988f24b 2007-10-10 Damien Carbery <[email protected]>
dcarbery
parents: 10143
diff changeset
    94
  sed "s|/usr/bin/perl|$PERL|" $f >$f.$$
5bed4988f24b 2007-10-10 Damien Carbery <[email protected]>
dcarbery
parents: 10143
diff changeset
    95
  mv $f.$$ $f
5bed4988f24b 2007-10-10 Damien Carbery <[email protected]>
dcarbery
parents: 10143
diff changeset
    96
done
5bed4988f24b 2007-10-10 Damien Carbery <[email protected]>
dcarbery
parents: 10143
diff changeset
    97
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
# this is just a skeleton spec file for use in SUNWgnome-common-devel.spec
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
%changelog
12105
9adcfcf31a94 2008-04-14 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11393
diff changeset
   105
* Mon Apr 14 2008 - [email protected]
9adcfcf31a94 2008-04-14 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11393
diff changeset
   106
- unbump to 0.16.1
11311
7ae76a4d0735 2007-12-11 Brian Cameron <[email protected]>
yippi
parents: 10634
diff changeset
   107
* Mon Dec 10 2007 - [email protected]
7ae76a4d0735 2007-12-11 Brian Cameron <[email protected]>
yippi
parents: 10634
diff changeset
   108
- Bump to 0.17.  Add patch gettext-01-fixlink.diff to fix build issue.
10634
5bed4988f24b 2007-10-10 Damien Carbery <[email protected]>
dcarbery
parents: 10143
diff changeset
   109
* Wed Oct 10 2007 - [email protected]
5bed4988f24b 2007-10-10 Damien Carbery <[email protected]>
dcarbery
parents: 10143
diff changeset
   110
- Add code to %install to change the #!/usr/bin/perl to #!/usr/perl5/bin/perl
5bed4988f24b 2007-10-10 Damien Carbery <[email protected]>
dcarbery
parents: 10143
diff changeset
   111
  to preempt bugs like 5100958.
9531
76f32a040778 2007-03-12 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
   112
* Mon Mar 12 2007 - [email protected]
76f32a040778 2007-03-12 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
   113
- add --without-emacs option
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   114
* Tue Feb 27 2007  <[email protected]>
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   115
- Bump to 0.16.1.  Remove upstream patch.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   116
* Mon May 01 2006  <[email protected]>
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   117
- integrate into the JDS build (copied from the JDS CBE)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   118
* Fri Sep 02 2004  <[email protected]>
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   119
- remove unpackaged files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
* Sat Oct 02 2004  <[email protected]>
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
- add %_datadir/gettext to %files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   122
* Sun Sep 05 2004  <[email protected]>
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
- update to 0.14.1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   124
- build and package the tools
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   125
- enable parallel build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   126
* Fri Mar 05 2004  <[email protected]>
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   127
- fix %files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   128
- change the pkg category