base-specs/ncurses.spec
author chrisk
Mon, 31 Aug 2009 16:23:04 +0000
changeset 16434 f21f22550fe9
parent 16431 d7743d81b302
child 16502 2f2255ab914d
permissions -rw-r--r--
2009-08-31 Christian Kelly <[email protected]> * base-specs/*.spec, *.spec: Change owner field to be parsable with spectool.
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
#
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
     4
# Copyright (c) 2008 Sun Microsystems, Inc.
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
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    20
Vendor:		Sun Microsystems, Inc.
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
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    50
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    51
%build
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    52
%ifos linux
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    53
if [ -x /usr/bin/getconf ]; then
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    54
  CPUS=`getconf _NPROCESSORS_ONLN`
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    55
fi
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    56
%else
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    57
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    58
%endif
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    59
if test "x$CPUS" = "x" -o $CPUS = 0; then
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    60
  CPUS=1
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    61
fi
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    62
15834
0002d641ae3c move headers to /usr/include/ncurses
jouby
parents: 15832
diff changeset
    63
%define _preincludedir  /usr/include/ncurses
0002d641ae3c move headers to /usr/include/ncurses
jouby
parents: 15832
diff changeset
    64
13155
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
    65
CFLAGS="$RPM_OPT_FLAGS"			  \
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
    66
./configure 				          \
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
    67
	--prefix=%{_prefix} 		    \
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    68
	--sysconfdir=%{_sysconfdir} \
15834
0002d641ae3c move headers to /usr/include/ncurses
jouby
parents: 15832
diff changeset
    69
  --includedir=%{_preincludedir} \
13155
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
    70
  --datadir=%{_datadir}       \
15834
0002d641ae3c move headers to /usr/include/ncurses
jouby
parents: 15832
diff changeset
    71
  --bindir=%{_bindir}       \
16199
07a656870a5b fix 10426 SUNWncurses missed man page and docs
jouby
parents: 16068
diff changeset
    72
  --mandir=%{_mandir}      \
15834
0002d641ae3c move headers to /usr/include/ncurses
jouby
parents: 15832
diff changeset
    73
  --libdir=%{_libdir}       \
13155
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
    74
  --with-normal   \
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
    75
  --with-shared   \
15864
ececc1559170 fix bug 6754653 :Invalid RUNPATH and RPATH in binaries from SUNWncurses
jouby
parents: 15834
diff changeset
    76
  --enable-rpath  \
13555
bc46cad3ce5f 2008-09-05 Rick Ju <[email protected]>
rickju
parents: 13155
diff changeset
    77
  --enable-widec  \
13155
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
    78
%if %debug_build
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
    79
  --with-debug
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
    80
%else
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    81
  --without-debug
13155
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
    82
%endif
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    83
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    84
make -j $CPUS
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    85
 
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    86
%install
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    87
make DESTDIR=$RPM_BUILD_ROOT install \
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    88
    SITEPREFIX=/dummy VENDORPREFIX=/dummy PERLPREFIX=/dummy
16199
07a656870a5b fix 10426 SUNWncurses missed man page and docs
jouby
parents: 16068
diff changeset
    89
07a656870a5b fix 10426 SUNWncurses missed man page and docs
jouby
parents: 16068
diff changeset
    90
#rm -rf $RPM_BUILD_ROOT/%{_prefix}/man
15834
0002d641ae3c move headers to /usr/include/ncurses
jouby
parents: 15832
diff changeset
    91
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    92
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    93
%files
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    94
%defattr(-, root, root)
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    95
%{_bindir}/*
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    96
%{_libdir}/*.so
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
%{_datadir}/terminfo/*
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    99
%{_datadir}/tabset/*
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
   100
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
   101
%files devel
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
   102
%defattr(-, root, root)
15834
0002d641ae3c move headers to /usr/include/ncurses
jouby
parents: 15832
diff changeset
   103
%{_preincludedir}/*.h
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
   104
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
   105
%clean
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
   106
rm -r $RPM_BUILD_ROOT
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
   107
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
   108
%changelog
15832
597c63a6b8da fix bug 6754653
jouby
parents: 13555
diff changeset
   109
* Tue Jue 02 2009 - [email protected]
597c63a6b8da fix bug 6754653
jouby
parents: 13555
diff changeset
   110
- change the owner to yuntong.jin
597c63a6b8da fix bug 6754653
jouby
parents: 13555
diff changeset
   111
- fix bug 6754653
15834
0002d641ae3c move headers to /usr/include/ncurses
jouby
parents: 15832
diff changeset
   112
- fix bug 9168
0002d641ae3c move headers to /usr/include/ncurses
jouby
parents: 15832
diff changeset
   113
- fix bug 9267
13555
bc46cad3ce5f 2008-09-05 Rick Ju <[email protected]>
rickju
parents: 13155
diff changeset
   114
* Fri Sep 12 2008 - [email protected]
bc46cad3ce5f 2008-09-05 Rick Ju <[email protected]>
rickju
parents: 13155
diff changeset
   115
- Add widechar support
13155
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
   116
* Mon Aug 18 2008 - [email protected]
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13131
diff changeset
   117
- use /usr/gnu as prefix
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
   118
* Tue Jul 18 2008 - [email protected]
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
   119
- Initial spec file created.