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