base-specs/ncurses.spec
author Jon Tibble <meths@btinternet.com>
Thu, 15 Mar 2012 09:58:35 +0000
branchs11express-2010-11
changeset 22104 cde243cbe3f6
parent 17865 b7ff02e93f66
permissions -rw-r--r--
Added tag oi_151a_prestable2 for changeset 47b3f775541a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
     1
#
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
     2
# spec file for package ncurses
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
     3
#
16502
2f2255ab914d 2009-09-09 Laszlo (Laca) Peter <[email protected]>
laca
parents: 16434
diff changeset
     4
# Copyright 2009 Sun Microsystems, Inc.
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
     6
# package are under the same license as the package itself.
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
     7
#
16434
f21f22550fe9 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16431
diff changeset
     8
%define owner jouby 
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
     9
# bugdb :
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    10
#
16431
d7743d81b302 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16199
diff changeset
    11
d7743d81b302 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16199
diff changeset
    12
%define OSR 12492:5.7
d7743d81b302 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16199
diff changeset
    13
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    14
Name:		ncurses
16068
8dffa8f94e81 Bump to 5.7, reflesh patchs
jouby
parents: 15885
diff changeset
    15
Version:	5.7
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    16
Release:  1
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    17
License:	MIT
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    18
Group:    System/Libraries
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    19
Distribution:	Java Desktop System
17865
b7ff02e93f66 2010-04-19 Christian Kelly <[email protected]>
chrisk
parents: 16502
diff changeset
    20
Vendor:		Other
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    21
Summary:  A CRT screen handling and optimization package.
13155
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
    22
Source:   http://ftp.gnu.org/pub/gnu/%{name}/%{name}-%{version}.tar.gz
15885
6c55e71413ed change the own of patch to jouby
jouby
parents: 15878
diff changeset
    23
# date:2008-09-12 owner:jouby type:branding
13555
bc46cad3ce5f 2008-09-05 Rick Ju <[email protected]>
rickju
parents: 13155
diff changeset
    24
Patch0:			ncurses-01-widec.diff
15885
6c55e71413ed change the own of patch to jouby
jouby
parents: 15878
diff changeset
    25
# date:2009-06-06 owner:jouby type:branding bugster:6754653
15864
ececc1559170 fix bug 6754653 :Invalid RUNPATH and RPATH in binaries from SUNWncurses
jouby
parents: 15834
diff changeset
    26
Patch1:                 ncurses-02-rpath.diff
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    27
URL:		  http://www.gnu.org/software/ncurses/
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    28
BuildRoot:	%{_tmppath}/%{name}-%{version}-build
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    29
Docdir:		%{_defaultdocdir}/ncurses
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    30
Autoreqprov:	on
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    31
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    32
%description
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    33
The curses library routines are a terminal-independent method of
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    34
updating character screens with reasonable optimization.
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    35
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    36
%package devel
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    37
Summary: The development files for applications which use ncurses.
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    38
Group:   Development/Libraries
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    39
Requires:     %name = %version
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    40
Autoreqprov:  on
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    41
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    42
%description devel
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    43
The header files and libraries for developing applications that use
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    44
the ncurses CRT screen handling and optimization package.
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    45
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    46
%prep
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    47
%setup -q
13555
bc46cad3ce5f 2008-09-05 Rick Ju <[email protected]>
rickju
parents: 13155
diff changeset
    48
%patch0 -p1
15864
ececc1559170 fix bug 6754653 :Invalid RUNPATH and RPATH in binaries from SUNWncurses
jouby
parents: 15834
diff changeset
    49
%patch1 -p1
16502
2f2255ab914d 2009-09-09 Laszlo (Laca) Peter <[email protected]>
laca
parents: 16434
diff changeset
    50
chmod +w ANNOUNCE AUTHORS MANIFEST NEWS README
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    51
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    52
%build
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    53
%ifos linux
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    54
if [ -x /usr/bin/getconf ]; then
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    55
  CPUS=`getconf _NPROCESSORS_ONLN`
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    56
fi
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    57
%else
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    58
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    59
%endif
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    60
if test "x$CPUS" = "x" -o $CPUS = 0; then
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    61
  CPUS=1
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    62
fi
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    63
15834
0002d641ae3c move headers to /usr/include/ncurses
jouby
parents: 15832
diff changeset
    64
%define _preincludedir  /usr/include/ncurses
0002d641ae3c move headers to /usr/include/ncurses
jouby
parents: 15832
diff changeset
    65
13155
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
    66
CFLAGS="$RPM_OPT_FLAGS"			  \
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
    67
./configure 				          \
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
    68
	--prefix=%{_prefix} 		    \
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    69
	--sysconfdir=%{_sysconfdir} \
15834
0002d641ae3c move headers to /usr/include/ncurses
jouby
parents: 15832
diff changeset
    70
  --includedir=%{_preincludedir} \
13155
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
    71
  --datadir=%{_datadir}       \
15834
0002d641ae3c move headers to /usr/include/ncurses
jouby
parents: 15832
diff changeset
    72
  --bindir=%{_bindir}       \
16199
07a656870a5b fix 10426 SUNWncurses missed man page and docs
jouby
parents: 16068
diff changeset
    73
  --mandir=%{_mandir}      \
15834
0002d641ae3c move headers to /usr/include/ncurses
jouby
parents: 15832
diff changeset
    74
  --libdir=%{_libdir}       \
13155
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
    75
  --with-normal   \
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
    76
  --with-shared   \
15864
ececc1559170 fix bug 6754653 :Invalid RUNPATH and RPATH in binaries from SUNWncurses
jouby
parents: 15834
diff changeset
    77
  --enable-rpath  \
13555
bc46cad3ce5f 2008-09-05 Rick Ju <[email protected]>
rickju
parents: 13155
diff changeset
    78
  --enable-widec  \
13155
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
    79
%if %debug_build
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
    80
  --with-debug
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
    81
%else
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    82
  --without-debug
13155
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
    83
%endif
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    84
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    85
make -j $CPUS
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    86
 
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    87
%install
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    88
make DESTDIR=$RPM_BUILD_ROOT install \
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    89
    SITEPREFIX=/dummy VENDORPREFIX=/dummy PERLPREFIX=/dummy
16199
07a656870a5b fix 10426 SUNWncurses missed man page and docs
jouby
parents: 16068
diff changeset
    90
07a656870a5b fix 10426 SUNWncurses missed man page and docs
jouby
parents: 16068
diff changeset
    91
#rm -rf $RPM_BUILD_ROOT/%{_prefix}/man
15834
0002d641ae3c move headers to /usr/include/ncurses
jouby
parents: 15832
diff changeset
    92
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    93
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    94
%files
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    95
%defattr(-, root, root)
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    96
%{_bindir}/*
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    97
%{_libdir}/*.so
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    98
%{_libdir}/*.so.*
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    99
%{_datadir}/terminfo/*
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
   100
%{_datadir}/tabset/*
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
   101
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
   102
%files devel
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
   103
%defattr(-, root, root)
15834
0002d641ae3c move headers to /usr/include/ncurses
jouby
parents: 15832
diff changeset
   104
%{_preincludedir}/*.h
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
   105
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
   106
%clean
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
   107
rm -r $RPM_BUILD_ROOT
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
   108
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
   109
%changelog
15832
597c63a6b8da fix bug 6754653
jouby
parents: 13555
diff changeset
   110
* Tue Jue 02 2009 - [email protected]
597c63a6b8da fix bug 6754653
jouby
parents: 13555
diff changeset
   111
- change the owner to yuntong.jin
597c63a6b8da fix bug 6754653
jouby
parents: 13555
diff changeset
   112
- fix bug 6754653
15834
0002d641ae3c move headers to /usr/include/ncurses
jouby
parents: 15832
diff changeset
   113
- fix bug 9168
0002d641ae3c move headers to /usr/include/ncurses
jouby
parents: 15832
diff changeset
   114
- fix bug 9267
13555
bc46cad3ce5f 2008-09-05 Rick Ju <[email protected]>
rickju
parents: 13155
diff changeset
   115
* Fri Sep 12 2008 - [email protected]
bc46cad3ce5f 2008-09-05 Rick Ju <[email protected]>
rickju
parents: 13155
diff changeset
   116
- Add widechar support
13155
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
   117
* Mon Aug 18 2008 - [email protected]
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
   118
- use /usr/gnu as prefix
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
   119
* Tue Jul 18 2008 - [email protected]
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
   120
- Initial spec file created.