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