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