SUNWlibpopt.spec
author fujiwara
Thu, 03 Apr 2008 14:59:32 +0000
branchgnome-2-20
changeset 10952 28ff9dbbe93c
parent 10906 a898daa0bc63
permissions -rw-r--r--
2008-04-03 Takao Fujiwara <[email protected]> * ext-sources/l10n-configure.sh: Updated the option --disable-sun-linguas to --enable-sun-linguas. * SUNWTiff.spec SUNWgnome-dtlogin-integration.spec SUNWgnome-sys-suspend.spec SUNWjpg.spec SUNWlibpopt.spec SUNWopenjade.spec SUNWopensp.spec base-specs/acroread.spec base-specs/apoc.spec base-specs/evolution-data-server.spec base-specs/evolution.spec base-specs/file-roller.spec base-specs/gnome-panel.spec base-specs/gst-plugins-base.spec base-specs/gst-plugins-good.spec base-specs/gst.spec base-specs/gtk2.spec base-specs/libexif.spec base-specs/libgcrypt.spec base-specs/libgpg-error.spec base-specs/libogg.spec base-specs/libvorbis.spec base-specs/opensolaris-gdm-themes.spec base-specs/sun-gdm-themes.spec closed/SUNWfsexam.spec closed/SUNWtgnome-tstripe.spec: Updated l10n-configure.sh
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
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    19
Source:                  ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.1.x/popt-%{version}.tar.gz
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
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
SUNW_BaseDir:            %{_prefix}
10906
a898daa0bc63 2008-03-30 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9565
diff changeset
    23
SUNW_Copyright:          %{name}.copyright
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
%include default-depend.inc
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
%package devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
Summary:                 %{summary} - development files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
SUNW_BaseDir:            %{_prefix}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
%include default-depend.inc
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 -c -n %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
gzcat %SOURCE1 | tar xf -
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
%ifarch amd64 sparcv9
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
cp -rp popt-%version popt-%version-64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
%endif
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
cd popt-%version
10952
28ff9dbbe93c 2008-04-03 Takao Fujiwara <[email protected]>
fujiwara
parents: 10906
diff changeset
    42
bash -x %SOURCE2 --enable-sun-linguas
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
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
    46
if test "x$CPUS" = "x" -o $CPUS = 0; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
    CPUS=1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
CONFLAGS="--prefix=%{_prefix} --mandir=%{_mandir} --disable-nls"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
export LDFLAGS="%_ldflags"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
%ifarch amd64 sparcv9
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
cd popt-%version-64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
CFLAGS32="$RPM_OPT_FLAGS"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
RPM_OPT_FLAGS="%optflags64"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
export RPM_OPT_FLAGS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
CFLAGS="$RPM_OPT_FLAGS"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
export CFLAGS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
./configure $CONFLAGS					\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
            --libdir=%{_libdir}/%{_arch64}		\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
            --libexecdir=%{_libexecdir}/%{_arch64}	\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
            --sysconfdir=%{_sysconfdir}/%{_arch64}
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
cd ..
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
cd popt-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
CFLAGS="$CFLAGS32"	\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
./configure $CONFLAGS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
make -j $CPUS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
%ifarch amd64 sparcv9
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
cd popt-%version-64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
make install DESTDIR=$RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
cd ..
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
rm -f $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/lib*a
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
%endif
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
cd popt-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
make install DESTDIR=$RPM_BUILD_ROOT
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
rm -rf $RPM_BUILD_ROOT%{_mandir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
cd ../sun-manpages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
make install DESTDIR=$RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*a
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
%{?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
    94
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
%dir %attr (0755, root, bin) %{_libdir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
%{_libdir}/lib*.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
%ifarch amd64 sparcv9
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
%{_libdir}/%{_arch64}/lib*.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
%dir %attr(0755, root, sys) %{_datadir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
%dir %attr(0755, root, bin) %{_mandir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
%dir %attr(0755, root, bin) %{_mandir}/man3
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
%{_mandir}/man3/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   110
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   111
%files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   112
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   113
%dir %attr (0755, root, bin) %{_includedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   114
%{_includedir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   115
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   116
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   117
%changelog
9565
4f6ed9cc5ede 2007-03-15 Doug Scott <[email protected]>
drdoug
parents: 9397
diff changeset
   118
* Wed Mar 15 2007 - [email protected]
4f6ed9cc5ede 2007-03-15 Doug Scott <[email protected]>
drdoug
parents: 9397
diff changeset
   119
- 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
   120
* Sun Feb 11 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
- 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
   122
  the build on SXDE
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
* Mon Sep 04 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   124
- New Manpage tarball
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   125
* Sun Jun 11 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   126
- change group from other to bin/sys
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   127
* Wed May 10 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   128
- merge -share pkg(s) into the base pkg(s)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   129
* Fri Sep 02 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   130
- remove unpackaged files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   131
* Fri Oct 29 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   132
- 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
   133
* Sat Oct 02 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   134
- added %pkgbuild_postprocess
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   135
* Sat Oct  2 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   136
- Create 64bit libraries for Solaris
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   137
* Mon Aug 30 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   138
- 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
   139
  		renamed SUNWlibpopt-share to SUNWlibpopt-devel-share
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   140
	        removed SUNWlibpopt depend on SUNWlibpopt-share
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   141
* Wed Aug 18 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   142
- Change manpage perms for Solaris integration.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   143
* Wed May 19 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   144
- added man page.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   145
* Fri Feb 13 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   146
- added 64-bit version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   147
* Mon Jan 28 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   148
- initial version added to CVS