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