SUNWlibgtop.spec
author davelam
Wed, 24 Feb 2010 04:10:23 +0000
branchgnome-2-28
changeset 18642 478b5460cc36
parent 18512 cf9ea0efe881
permissions -rw-r--r--
add new proto file for b133
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     1
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     2
# 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     3
# spec file for package SUNWlibgtop  
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     4
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
# includes module(s): libgtop
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     6
#
11431
fccfd472dafe 2008-01-10 Damien Carbery <[email protected]>
dcarbery
parents: 10569
diff changeset
     7
# Copyright 2008 Sun Microsystems, Inc.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     8
# This file and all modifications and additions to the pristine
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     9
# package are under the same license as the package itself.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    10
#
16434
f21f22550fe9 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 15650
diff changeset
    11
%define owner niall
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    12
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
%include Solaris.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
%use libgtop = libgtop.spec
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
Name:              SUNWlibgtop
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
Summary:           Library to get system specific data 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    18
Version:           %{default_pkg_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    19
SUNW_BaseDir:      %{_basedir}
11953
050b30188c33 +2008-03-28 Henry Zhang <[email protected]>
henryz
parents: 11431
diff changeset
    20
SUNW_Copyright:    %{name}.copyright
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
BuildRoot:         %{_tmppath}/%{name}-%{version}-build
12943
b184db61d375 2008-07-28 Henry Zhang <[email protected]>
henryz
parents: 11953
diff changeset
    22
Source:            %{name}-manpages-0.1.tar.gz
b184db61d375 2008-07-28 Henry Zhang <[email protected]>
henryz
parents: 11953
diff changeset
    23
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
%include default-depend.inc
15650
dbcf7e3715dd 2009-04-18 Dave Lin <[email protected]>
davelam
parents: 15477
diff changeset
    25
Requires: SUNWxwrtl
dbcf7e3715dd 2009-04-18 Dave Lin <[email protected]>
davelam
parents: 15477
diff changeset
    26
Requires: SUNWglib2
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
Requires: SUNWgnome-component
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
Requires: SUNWgnome-libs
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
Requires: SUNWjdsrm
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
Requires: SUNWgnome-config
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
Requires: SUNWlibms
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
Requires: SUNWlibpopt
15650
dbcf7e3715dd 2009-04-18 Dave Lin <[email protected]>
davelam
parents: 15477
diff changeset
    33
BuildRequires: SUNWglib2-devel
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
BuildRequires: SUNWgnome-config-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
BuildRequires: SUNWlibpopt-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
BuildRequires: SUNWgnome-libs-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
BuildRequires: SUNWgnome-component-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
BuildRequires: SUNWgnome-config-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
%package devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
Summary:           Library to get system specific data - developer files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
SUNW_BaseDir:      %{_basedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
Requires: %name
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
%if %build_l10n
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
%package l10n
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
Summary:                 %{summary} - l10n files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
SUNW_BaseDir:            %{_basedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
Requires:                %{name}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
rm -rf %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
mkdir %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
%libgtop.prep -d %name-%version
12943
b184db61d375 2008-07-28 Henry Zhang <[email protected]>
henryz
parents: 11953
diff changeset
    58
cd %{_builddir}/%name-%version
b184db61d375 2008-07-28 Henry Zhang <[email protected]>
henryz
parents: 11953
diff changeset
    59
gzcat %SOURCE0 | tar xf -
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
export PKG_CONFIG_PATH=%{_pkg_config_path}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
export CFLAGS="%optflags"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
export RPM_OPT_FLAGS="$CFLAGS"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
export LDFLAGS="%_ldflags"
11431
fccfd472dafe 2008-01-10 Damien Carbery <[email protected]>
dcarbery
parents: 10569
diff changeset
    66
export ACLOCAL_FLAGS="-I /usr/share/aclocal"
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
%libgtop.build -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
export PATH=%{_builddir}/%name-%version:$PATH
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
export CFLAGS="`echo %optflags | sed -e 's/-xregs=no.frameptr//'`"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
%libgtop.install -d %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
# Remove the libgtop2.info file. No other modules install .info files.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
rm -rf $RPM_BUILD_ROOT%{_datadir}/info
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
# delete files don't need
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
rm -rf $RPM_BUILD_ROOT%{_bindir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
%if %build_l10n
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
# REMOVE l10n FILES
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
12943
b184db61d375 2008-07-28 Henry Zhang <[email protected]>
henryz
parents: 11953
diff changeset
    86
# install man page
b184db61d375 2008-07-28 Henry Zhang <[email protected]>
henryz
parents: 11953
diff changeset
    87
rm -rf $RPM_BUILD_ROOT%{_mandir}
b184db61d375 2008-07-28 Henry Zhang <[email protected]>
henryz
parents: 11953
diff changeset
    88
cd %{_builddir}/%name-%version/sun-manpages
b184db61d375 2008-07-28 Henry Zhang <[email protected]>
henryz
parents: 11953
diff changeset
    89
make install DESTDIR=$RPM_BUILD_ROOT
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
%files
13629
f4e74bad3463 2008-09-17 Henry Zhang <[email protected]>
henryz
parents: 12943
diff changeset
    95
%doc -d libgtop-%{libgtop.version} README AUTHORS
f4e74bad3463 2008-09-17 Henry Zhang <[email protected]>
henryz
parents: 12943
diff changeset
    96
%doc(bzip2) -d libgtop-%{libgtop.version} COPYING NEWS ChangeLog
f4e74bad3463 2008-09-17 Henry Zhang <[email protected]>
henryz
parents: 12943
diff changeset
    97
%dir %attr (0755, root, other) %{_datadir}/doc
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
%defattr(-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
%dir %attr (0755, root, bin) %{_libdir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
%{_libdir}/lib*.so*
12943
b184db61d375 2008-07-28 Henry Zhang <[email protected]>
henryz
parents: 11953
diff changeset
   101
%dir %attr (0755, root, sys) %{_datadir}
b184db61d375 2008-07-28 Henry Zhang <[email protected]>
henryz
parents: 11953
diff changeset
   102
%dir %attr(0755, root, bin) %{_mandir}
b184db61d375 2008-07-28 Henry Zhang <[email protected]>
henryz
parents: 11953
diff changeset
   103
%{_mandir}/*/*
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
%files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
%defattr(-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
%dir %attr (0755, root, bin) %{_includedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
%{_includedir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
%dir %attr (0755, root, bin) %{_libdir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   110
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   111
%{_libdir}/pkgconfig/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   112
%dir %attr (0755, root, sys) %{_datadir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   113
%{_datadir}/gtk-doc/html/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   114
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   115
%if %build_l10n
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   116
%files l10n
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   117
%defattr (-, root, other)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   118
%dir %attr (0755, root, sys) %{_datadir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   119
%{_datadir}/locale
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   122
%changelog
16535
d1155c9f3a0a 2009-09-11 Wang Xin <[email protected]>
jedy
parents: 16434
diff changeset
   123
* Fri Sep 11 2009 - [email protected]
d1155c9f3a0a 2009-09-11 Wang Xin <[email protected]>
jedy
parents: 16434
diff changeset
   124
- Remove SUNWmlib dependency.
15477
8736bfbb659a 2009-03-23 Niall Power <[email protected]>
niall
parents: 13630
diff changeset
   125
* Mon Mar 23 2009 - Niall Power <[email protected]>
8736bfbb659a 2009-03-23 Niall Power <[email protected]>
niall
parents: 13630
diff changeset
   126
- Take ownership of spec file
13630
a9061060f5dd 2008-09-17 Henry Zhang <[email protected]>
henryz
parents: 13629
diff changeset
   127
* Wed Sep 17 2008 - Henry Zhang <[email protected]>
a9061060f5dd 2008-09-17 Henry Zhang <[email protected]>
henryz
parents: 13629
diff changeset
   128
- Add  %doc to %files for copyright
12943
b184db61d375 2008-07-28 Henry Zhang <[email protected]>
henryz
parents: 11953
diff changeset
   129
* Mon July 28 2008 - [email protected]
b184db61d375 2008-07-28 Henry Zhang <[email protected]>
henryz
parents: 11953
diff changeset
   130
- Add manpage
11431
fccfd472dafe 2008-01-10 Damien Carbery <[email protected]>
dcarbery
parents: 10569
diff changeset
   131
* Thu Jan 10 2008 - [email protected]
fccfd472dafe 2008-01-10 Damien Carbery <[email protected]>
dcarbery
parents: 10569
diff changeset
   132
- Set ACLOCAL_FLAGS to pick up the modified intltool.m4.
10569
db3674d56c7f 2007-09-28 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
   133
* Fri Sep 28 2007 - [email protected]
db3674d56c7f 2007-09-28 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9397
diff changeset
   134
- delete some unnecessary env variables that break the indiana build
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   135
* Wed Dec 06 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   136
- Add gtk-docs to the devel package.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   137
* Fri Sep 22 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   138
-  Shorten the summary according to Shirley comments.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   139
-  Delete unuseful binary files from /usr/bin
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   140
* Thu Aug 23 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   141
- Remove the %{_datadir}/info dir as no other modules install .info files.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   142
* Thu May 11 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   143
- initial version
15650
dbcf7e3715dd 2009-04-18 Dave Lin <[email protected]>
davelam
parents: 15477
diff changeset
   144