Solaris/SUNWlibgtop.spec
author dcarbery
Fri, 24 Nov 2006 16:37:59 +0000
branch217update
changeset 19096 d542fc2c823e
parent 8565 b102e7809c6e
child 8696 16d3205740f6
permissions -rw-r--r--
Merged trunk changes r9797:9829 into 217update branch.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7662
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
     1
#
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
     2
# 
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
     3
# spec file for package SUNWlibgtop  
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
     4
#
8565
b102e7809c6e add remaining spec file owners
laca
parents: 8180
diff changeset
     5
# includes module(s): libgtop
7662
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
     6
#
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
     7
# Copyright (c) 2005 Sun Microsystems, Inc.
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
     8
# This file and all modifications and additions to the pristine
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
     9
# package are under the same license as the package itself.
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    10
#
8565
b102e7809c6e add remaining spec file owners
laca
parents: 8180
diff changeset
    11
# Owner: henryz
b102e7809c6e add remaining spec file owners
laca
parents: 8180
diff changeset
    12
#
7662
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    13
%include Solaris.inc
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    14
%use libgtop = libgtop.spec
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    15
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    16
Name:              SUNWlibgtop
8180
f19b1b55789a 2006-09-22 Henry Zhang <[email protected]>
hz159841
parents: 7969
diff changeset
    17
Summary:           Library to get system specific data 
7662
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    18
Version:           %{default_pkg_version}
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    19
SUNW_BaseDir:      %{_basedir}
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    20
BuildRoot:         %{_tmppath}/%{name}-%{version}-build
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    21
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    22
%include default-depend.inc
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    23
Requires: SUNWgnome-component
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    24
Requires: SUNWgnome-print
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    25
Requires: SUNWgnome-libs
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    26
Requires: SUNWjdsrm
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    27
Requires: SUNWgnome-config
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    28
Requires: SUNWgnome-base-libs
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    29
Requires: SUNWlibms
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    30
Requires: SUNWlibpopt
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    31
Requires: SUNWmlib
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    32
BuildRequires: SUNWgnome-config-devel
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    33
BuildRequires: SUNWlibpopt-devel
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    34
BuildRequires: SUNWgnome-libs-devel
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    35
BuildRequires: SUNWgnome-base-libs-devel
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    36
BuildRequires: SUNWgnome-print-devel
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    37
BuildRequires: SUNWgnome-component-devel
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    38
BuildRequires: SUNWgnome-config-devel
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    39
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    40
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    41
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    42
%package devel
8180
f19b1b55789a 2006-09-22 Henry Zhang <[email protected]>
hz159841
parents: 7969
diff changeset
    43
Summary:           Library to get system specific data - developer files
7662
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    44
SUNW_BaseDir:      %{_basedir}
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    45
%include default-depend.inc
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    46
Requires: %name
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    47
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    48
%if %build_l10n
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    49
%package l10n
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    50
Summary:                 %{summary} - l10n files
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    51
SUNW_BaseDir:            %{_basedir}
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    52
%include default-depend.inc
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    53
Requires:                %{name}
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    54
%endif
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    55
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    56
%prep
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    57
rm -rf %name-%version
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    58
mkdir %name-%version
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    59
%libgtop.prep -d %name-%version
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    60
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    61
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    62
%build
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    63
export PKG_CONFIG_PATH=%{_pkg_config_path}
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    64
export MSGFMT="/usr/bin/msgfmt"
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    65
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    66
export PERL5LIB=%{_prefix}/perl5/site_perl/5.6.1/sun4-solaris-64int
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    67
export CFLAGS="%optflags"
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    68
export RPM_OPT_FLAGS="$CFLAGS"
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    69
export LDFLAGS="%_ldflags"
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    70
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    71
%libgtop.build -d %name-%version
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    72
export PATH=%{_builddir}/%name-%version:$PATH
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    73
export CFLAGS="`echo %optflags | sed -e 's/-xregs=no.frameptr//'`"
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    74
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    75
%install
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    76
%libgtop.install -d %name-%version
7969
b36463f7251a 2006-08-24 Damien Carbery <[email protected]>
dc144907
parents: 7723
diff changeset
    77
# Remove the libgtop2.info file. No other modules install .info files.
b36463f7251a 2006-08-24 Damien Carbery <[email protected]>
dc144907
parents: 7723
diff changeset
    78
rm -rf $RPM_BUILD_ROOT%{_datadir}/info
8180
f19b1b55789a 2006-09-22 Henry Zhang <[email protected]>
hz159841
parents: 7969
diff changeset
    79
# delete files don't need
f19b1b55789a 2006-09-22 Henry Zhang <[email protected]>
hz159841
parents: 7969
diff changeset
    80
rm -rf $RPM_BUILD_ROOT%{_bindir}
7662
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    81
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    82
%if %build_l10n
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    83
%else
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    84
# REMOVE l10n FILES
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    85
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    86
%endif
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    87
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    88
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    89
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    90
%clean
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    91
rm -rf $RPM_BUILD_ROOT
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    92
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    93
%files
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    94
%defattr(-, root, bin)
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    95
%dir %attr (0755, root, bin) %{_libdir}
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    96
%{_libdir}/lib*.so*
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    97
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    98
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
    99
%files devel
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
   100
%defattr(-, root, bin)
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
   101
%dir %attr (0755, root, bin) %{_includedir}
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
   102
%{_includedir}/*
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
   103
%dir %attr (0755, root, bin) %{_libdir}
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
   104
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
   105
%{_libdir}/pkgconfig/*
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
   106
%dir %attr (0755, root, sys) %{_datadir}
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
   107
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
   108
%if %build_l10n
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
   109
%files l10n
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
   110
%defattr (-, root, other)
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
   111
%dir %attr (0755, root, sys) %{_datadir}
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
   112
%{_datadir}/locale
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
   113
%endif
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
   114
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
   115
%changelog
8180
f19b1b55789a 2006-09-22 Henry Zhang <[email protected]>
hz159841
parents: 7969
diff changeset
   116
* Fri Sep 22 2006 - [email protected]
f19b1b55789a 2006-09-22 Henry Zhang <[email protected]>
hz159841
parents: 7969
diff changeset
   117
-  Shorten the summary according to Shirley comments.
f19b1b55789a 2006-09-22 Henry Zhang <[email protected]>
hz159841
parents: 7969
diff changeset
   118
-  Delete unuseful binary files from /usr/bin
f19b1b55789a 2006-09-22 Henry Zhang <[email protected]>
hz159841
parents: 7969
diff changeset
   119
7969
b36463f7251a 2006-08-24 Damien Carbery <[email protected]>
dc144907
parents: 7723
diff changeset
   120
* Thu Aug 23 2006 - [email protected]
b36463f7251a 2006-08-24 Damien Carbery <[email protected]>
dc144907
parents: 7723
diff changeset
   121
- Remove the %{_datadir}/info dir as no other modules install .info files.
b36463f7251a 2006-08-24 Damien Carbery <[email protected]>
dc144907
parents: 7723
diff changeset
   122
7662
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
   123
* Thu May 11 2006 - [email protected]
a7f728d63322 New spec file for libgtop and System Monitor.
hz159841
parents:
diff changeset
   124
- initial version