author | Jon Tibble <meths@btinternet.com> |
Thu, 15 Mar 2012 09:58:35 +0000 | |
branch | s11express-2010-11 |
changeset 22104 | cde243cbe3f6 |
parent 17842 | 1cc615f41f16 |
child 18266 | 113621622ba8 |
child 21242 | 8058e8f41127 |
permissions | -rw-r--r-- |
16197
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
1 |
# |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
2 |
# spec file for package tack |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
3 |
# |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
4 |
# Copyright (c) 2009 Sun Microsystems, Inc. |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
5 |
# This file and all modifications and additions to the pristine |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
6 |
# package are under the same license as the package itself. |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
7 |
# |
16434 | 8 |
%define owner jouby |
16197
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
9 |
# bugdb : |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
10 |
# |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
11 |
|
17842 | 12 |
%define OSR 12493:1.06 |
13 |
||
16197
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
14 |
Name: tack |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
15 |
Version: 1.06 |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
16 |
Release: 1 |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
17 |
License: GPLv2 |
17842 | 18 |
Vendor: gnu.org |
16197
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
19 |
Group: System/Libraries |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
20 |
Distribution: Java Desktop System |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
21 |
Vendor: Sun Microsystems, Inc. |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
22 |
Summary: Tack is a diagnostic that is designed to create and verify the correctness of terminfo's |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
23 |
Source: http://ftp.gnu.org/pub/gnu/ncurses/%{name}-%{version}.tar.gz |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
24 |
URL: http://www.gnu.org/software/ncurses/ |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
25 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
26 |
Docdir: %{_defaultdocdir}/ncurses |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
27 |
Autoreqprov: on |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
28 |
|
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
29 |
%description |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
30 |
This program is a diagnostic that is designed to create and |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
31 |
verify the correctness of terminfo's. This program can be used to |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
32 |
create new terminal descriptions that are not included in the standard |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
33 |
release. |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
34 |
|
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
35 |
%prep |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
36 |
%setup -q |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
37 |
|
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
38 |
%build |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
39 |
%ifos linux |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
40 |
if [ -x /usr/bin/getconf ]; then |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
41 |
CPUS=`getconf _NPROCESSORS_ONLN` |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
42 |
fi |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
43 |
%else |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
44 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
45 |
%endif |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
46 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
47 |
CPUS=1 |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
48 |
fi |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
49 |
|
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
50 |
CFLAGS="$RPM_OPT_FLAGS" \ |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
51 |
./configure --prefix=%{_prefix} --mandir=%{_mandir} --sysconfdir=%{_sysconfdir} --includedir=%{_preincludedir} --datadir=%{_datadir} --bindir=%{_bindir} --libdir=%{_libdir} --enable-widec |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
52 |
|
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
53 |
make -j $CPUS |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
54 |
|
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
55 |
%install |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
56 |
make DESTDIR=$RPM_BUILD_ROOT install |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
57 |
|
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
58 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
59 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
60 |
|
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
61 |
%files |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
62 |
%defattr(-, root, root) |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
63 |
%{_bindir}/* |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
64 |
|
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
65 |
|
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
66 |
%clean |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
67 |
rm -r $RPM_BUILD_ROOT |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
68 |
|
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
69 |
%changelog |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
70 |
* Tue Jul 26 2009 - [email protected] |
dd020dde6145
The tack program is distributed separately from ncurses(SUNWncurese)
jouby
parents:
diff
changeset
|
71 |
- Initial spec file created. |