SUNWncurses.spec
author krish_p
Mon, 16 Nov 2009 05:30:39 +0000
branchopensolaris-2009-06
changeset 14347 513efb5e2b38
parent 13858 67fcbe135706
permissions -rw-r--r--
6883034 OpenSolaris 0906 Nautilus 2.24.2 Drag and Drop issue copy/move
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 SUNWncurses
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
# includes module(s): ncurses
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
     5
#
13155
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13144
diff changeset
     6
# Copyright (c) 2008 Sun Microsystems, Inc.
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
     7
# This file and all modifications and additions to the pristine
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
     8
# package are under the same license as the package itself.
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
     9
#
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    10
# Owner: rickju
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    11
#
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    12
%include Solaris.inc
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    13
13155
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13144
diff changeset
    14
# Relegating to /usr/gnu to avoid name collisions with regular curses files
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13144
diff changeset
    15
%define _basedir    /usr
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13144
diff changeset
    16
%define _subdir     gnu
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13144
diff changeset
    17
%define _prefix     %{_basedir}/%{_subdir}
13858
67fcbe135706 2008-10-10 Rick Ju <[email protected]>
rickju
parents: 13155
diff changeset
    18
%define ncurses_includedir /usr/include/ncurses
13155
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13144
diff changeset
    19
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    20
%use ncurses = ncurses.spec 
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    21
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    22
Name:                    SUNWncurses
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    23
Summary:                 A CRT screen handling and optimization package.
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    24
Version:                 %{ncurses.version}
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    25
SUNW_BaseDir:            %{_basedir}
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    26
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    27
SUNW_Copyright:          %{name}.copyright
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    28
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    29
%include default-depend.inc
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    30
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    31
%package devel
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    32
Summary:                 %{summary} - development files
13858
67fcbe135706 2008-10-10 Rick Ju <[email protected]>
rickju
parents: 13155
diff changeset
    33
SUNW_BaseDir:            %{_basedir}
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    34
%include default-depend.inc
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
%prep
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    37
rm -rf %name-%version
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    38
mkdir %name-%version
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    39
%ncurses.prep -d %name-%version
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    40
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    41
%build
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    42
export PKG_CONFIG_PATH=%{_pkg_config_path}
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    43
export CFLAGS="%optflags"
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    44
export RPM_OPT_FLAGS="$CFLAGS"
13155
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13144
diff changeset
    45
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    46
export LDFLAGS="%_ldflags"
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    47
%ncurses.build -d %name-%version
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    48
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    49
%install
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    50
%ncurses.install -d %name-%version
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
# install man page
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    53
#rm -rf $RPM_BUILD_ROOT%{_mandir}
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    54
#cd %{_builddir}/%name-%version/sun-manpages
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    55
#make install DESTDIR=$RPM_BUILD_ROOT
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    56
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    57
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    58
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    59
%clean
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    60
rm -rf $RPM_BUILD_ROOT
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    61
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    62
%files
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    63
%defattr (-, root, bin)
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    64
%dir %attr (0755, root, bin) %{_libdir}
13144
08b1300dc7e2 2008-08-16 Halton Huo <[email protected]>
halton
parents: 13131
diff changeset
    65
%dir %attr (0755, root, sys) %{_datadir}
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    66
%dir %attr (0755, root, bin) %{_datadir}/terminfo
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    67
%dir %attr (0755, root, bin) %{_datadir}/tabset
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    68
%{_bindir}/*
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    69
%{_libdir}/*
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    70
%{_datadir}/terminfo/*
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    71
%{_datadir}/tabset/*
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    72
#%dir %attr(0755, root, bin) %{_mandir}
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    73
#%dir %attr(0755, root, bin) %{_mandir}/man1
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    74
#%{_mandir}/man1/*
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    75
#%dir %attr(0755, root, bin) %{_mandir}/man3
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    76
#%{_mandir}/man3/*
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    77
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    78
%files devel
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    79
%defattr (-, root, bin)
13858
67fcbe135706 2008-10-10 Rick Ju <[email protected]>
rickju
parents: 13155
diff changeset
    80
%dir %attr (0755, root, bin) %{ncurses_includedir}
67fcbe135706 2008-10-10 Rick Ju <[email protected]>
rickju
parents: 13155
diff changeset
    81
%{ncurses_includedir}/*
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    82
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    83
%changelog
13858
67fcbe135706 2008-10-10 Rick Ju <[email protected]>
rickju
parents: 13155
diff changeset
    84
* Thu Oct 09 2008 - [email protected]
67fcbe135706 2008-10-10 Rick Ju <[email protected]>
rickju
parents: 13155
diff changeset
    85
- fix the header files ship directory bug 6757250
13155
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13144
diff changeset
    86
* Mon Aug 18 2008 - [email protected]
aace282b2cef 2008-08-18 Rick Ju <[email protected]>
rickju
parents: 13144
diff changeset
    87
- use /usr/gnu as prefix
13144
08b1300dc7e2 2008-08-16 Halton Huo <[email protected]>
halton
parents: 13131
diff changeset
    88
* Sat Aug 16 2008 - [email protected]
08b1300dc7e2 2008-08-16 Halton Huo <[email protected]>
halton
parents: 13131
diff changeset
    89
- Add (0755, root, sys) %{_datadir} to fix conflict issue.
08b1300dc7e2 2008-08-16 Halton Huo <[email protected]>
halton
parents: 13131
diff changeset
    90
* Tur Jul 17 2008 - [email protected]
13131
2139929b6fba 2008-08-06 Rick Ju <[email protected]>
rickju
parents:
diff changeset
    91
- Initial spec file created.