SUNWlibpopt.spec
author fujiwara
Fri, 21 Dec 2007 12:22:10 +0000
changeset 11345 ac6e3d53f95a
parent 11341 c9c8a9df758b
child 11965 acd528faf5ad
permissions -rw-r--r--
2007-12-21 Takao Fujiwara <[email protected]> * SUNWlibpopt.spec: Updated * patches/popt-01-g11n-i18n-stdio.diff: Added to fix '--help' option on none UTF-8. CR 6186542
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 SUNWlibpopt
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     3
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     4
# includes module(s): popt
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     6
# Copyright (c) 2004 Sun Microsystems, Inc.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     7
# 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
     8
# 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
     9
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    10
# Owner: laca
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    11
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    12
%include Solaris.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
%define _prefix /usr
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
Name:                    SUNWlibpopt
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
Summary:                 Command line parsing library
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    18
Version:                 1.7
11341
c9c8a9df758b Change FTP location from ftp.rpm.org to ftp.mirrorservices.org.
pale
parents: 9565
diff changeset
    19
Source:                  ftp://ftp.mirrorservice.org/sites/ftp.rpm.org/pub/rpm/dist/rpm-4.1.x/popt-%{version}.tar.gz
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    20
Source1:                 %{name}-manpages-0.1.tar.gz
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
Source2:                 l10n-configure.sh
11345
ac6e3d53f95a 2007-12-21 Takao Fujiwara <[email protected]>
fujiwara
parents: 11341
diff changeset
    22
# date:2007-12-21 owner:fujiwara type:bug bugster:6186542 bugzilla:178413 state:upstream
ac6e3d53f95a 2007-12-21 Takao Fujiwara <[email protected]>
fujiwara
parents: 11341
diff changeset
    23
Patch1:                  popt-01-g11n-i18n-stdio.diff
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
SUNW_BaseDir:            %{_prefix}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
%package devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
Summary:                 %{summary} - development files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
SUNW_BaseDir:            %{_prefix}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
%setup -c -n %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
gzcat %SOURCE1 | tar xf -
11345
ac6e3d53f95a 2007-12-21 Takao Fujiwara <[email protected]>
fujiwara
parents: 11341
diff changeset
    37
cd popt-%version
ac6e3d53f95a 2007-12-21 Takao Fujiwara <[email protected]>
fujiwara
parents: 11341
diff changeset
    38
%patch1 -p1
ac6e3d53f95a 2007-12-21 Takao Fujiwara <[email protected]>
fujiwara
parents: 11341
diff changeset
    39
cd ..
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
%ifarch amd64 sparcv9
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
cp -rp popt-%version popt-%version-64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
cd popt-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
bash -x %SOURCE2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
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
    50
if test "x$CPUS" = "x" -o $CPUS = 0; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
    CPUS=1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
CONFLAGS="--prefix=%{_prefix} --mandir=%{_mandir} --disable-nls"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
export LDFLAGS="%_ldflags"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
%ifarch amd64 sparcv9
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
cd popt-%version-64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
CFLAGS32="$RPM_OPT_FLAGS"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
RPM_OPT_FLAGS="%optflags64"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
export RPM_OPT_FLAGS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
CFLAGS="$RPM_OPT_FLAGS"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
export CFLAGS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
11345
ac6e3d53f95a 2007-12-21 Takao Fujiwara <[email protected]>
fujiwara
parents: 11341
diff changeset
    65
libtoolize -f
ac6e3d53f95a 2007-12-21 Takao Fujiwara <[email protected]>
fujiwara
parents: 11341
diff changeset
    66
aclocal $ACLOCAL_FLAGS
ac6e3d53f95a 2007-12-21 Takao Fujiwara <[email protected]>
fujiwara
parents: 11341
diff changeset
    67
autoconf
ac6e3d53f95a 2007-12-21 Takao Fujiwara <[email protected]>
fujiwara
parents: 11341
diff changeset
    68
automake -a -c -f
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
./configure $CONFLAGS					\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
            --libdir=%{_libdir}/%{_arch64}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
            --libexecdir=%{_libexecdir}/%{_arch64}	\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
            --sysconfdir=%{_sysconfdir}/%{_arch64}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
make -j $CPUS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
cd ..
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
%endif
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
cd popt-%version
11345
ac6e3d53f95a 2007-12-21 Takao Fujiwara <[email protected]>
fujiwara
parents: 11341
diff changeset
    79
libtoolize -f
ac6e3d53f95a 2007-12-21 Takao Fujiwara <[email protected]>
fujiwara
parents: 11341
diff changeset
    80
aclocal $ACLOCAL_FLAGS
ac6e3d53f95a 2007-12-21 Takao Fujiwara <[email protected]>
fujiwara
parents: 11341
diff changeset
    81
autoconf
ac6e3d53f95a 2007-12-21 Takao Fujiwara <[email protected]>
fujiwara
parents: 11341
diff changeset
    82
automake -a -c -f
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
CFLAGS="$CFLAGS32"	\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
./configure $CONFLAGS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
make -j $CPUS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
%ifarch amd64 sparcv9
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
cd popt-%version-64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
make install DESTDIR=$RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
cd ..
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
rm -f $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/lib*a
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
cd popt-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
make install DESTDIR=$RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
rm -rf $RPM_BUILD_ROOT%{_mandir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
cd ../sun-manpages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
make install DESTDIR=$RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*a
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   110
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   111
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   112
%dir %attr (0755, root, bin) %{_libdir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   113
%{_libdir}/lib*.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   114
%ifarch amd64 sparcv9
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   115
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   116
%{_libdir}/%{_arch64}/lib*.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   117
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   118
%dir %attr(0755, root, sys) %{_datadir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   119
%dir %attr(0755, root, bin) %{_mandir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
%dir %attr(0755, root, bin) %{_mandir}/man3
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
%{_mandir}/man3/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   122
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
%files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   124
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   125
%dir %attr (0755, root, bin) %{_includedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   126
%{_includedir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   127
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   128
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   129
%changelog
11345
ac6e3d53f95a 2007-12-21 Takao Fujiwara <[email protected]>
fujiwara
parents: 11341
diff changeset
   130
* Fri Dec 21 2007 - [email protected]
ac6e3d53f95a 2007-12-21 Takao Fujiwara <[email protected]>
fujiwara
parents: 11341
diff changeset
   131
- Add popt-01-g11n-i18n-stdio.diff. Fixes '--help' option on none UTF-8.
ac6e3d53f95a 2007-12-21 Takao Fujiwara <[email protected]>
fujiwara
parents: 11341
diff changeset
   132
  CR 6186542
11341
c9c8a9df758b Change FTP location from ftp.rpm.org to ftp.mirrorservices.org.
pale
parents: 9565
diff changeset
   133
* Wed Dec 19 2007 - [email protected]
c9c8a9df758b Change FTP location from ftp.rpm.org to ftp.mirrorservices.org.
pale
parents: 9565
diff changeset
   134
- Change FTP location to ftp.mirrorservices.org.
c9c8a9df758b Change FTP location from ftp.rpm.org to ftp.mirrorservices.org.
pale
parents: 9565
diff changeset
   135
  ftp.rpm.org does not longer seem available/to exist
9565
4f6ed9cc5ede 2007-03-15 Doug Scott <[email protected]>
drdoug
parents: 9397
diff changeset
   136
* Wed Mar 15 2007 - [email protected]
4f6ed9cc5ede 2007-03-15 Doug Scott <[email protected]>
drdoug
parents: 9397
diff changeset
   137
- Removed CC64 and CC32. They are not needed anymore
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   138
* Sun Feb 11 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   139
- delete PATH changes in the 64-bit build: not needed anymore and break
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   140
  the build on SXDE
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   141
* Mon Sep 04 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   142
- New Manpage tarball
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   143
* Sun Jun 11 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   144
- change group from other to bin/sys
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   145
* Wed May 10 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   146
- merge -share pkg(s) into the base pkg(s)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   147
* Fri Sep 02 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   148
- remove unpackaged files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   149
* Fri Oct 29 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   150
- use $CC64 as the 64-bit C compiler, if defined
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   151
* Sat Oct 02 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   152
- added %pkgbuild_postprocess
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   153
* Sat Oct  2 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   154
- Create 64bit libraries for Solaris
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   155
* Mon Aug 30 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   156
- Bug 5091588 : include files should be in a separate devel package
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   157
  		renamed SUNWlibpopt-share to SUNWlibpopt-devel-share
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   158
	        removed SUNWlibpopt depend on SUNWlibpopt-share
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   159
* Wed Aug 18 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   160
- Change manpage perms for Solaris integration.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   161
* Wed May 19 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   162
- added man page.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   163
* Fri Feb 13 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   164
- added 64-bit version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   165
* Mon Jan 28 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   166
- initial version added to CVS