author | mattman |
Wed, 18 Feb 2009 15:07:13 +0000 | |
changeset 15143 | d2d90ead6862 |
parent 15095 | 6524062125cf |
child 15150 | b597b2300a3c |
permissions | -rw-r--r-- |
11516 | 1 |
# |
2 |
# spec file for package libgc |
|
3 |
# |
|
4 |
# Copyright (c) 2008 Sun Microsystems, Inc. |
|
5 |
# This file and all modifications and additions to the pristine |
|
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
15143
d2d90ead6862
* SUNWtgnome-tsoljdsdevmgr.spec : Update Owner format string
mattman
parents:
15095
diff
changeset
|
8 |
# Owner: jerrytan |
11516 | 9 |
# |
10 |
||
11 |
%define real_name gc |
|
12 |
||
13 |
Name: libgc |
|
14 |
License: BSD |
|
15 |
Group: System/Libraries |
|
12359 | 16 |
Version: 7.1 |
11516 | 17 |
Release: 4 |
18 |
Distribution: Java Desktop System |
|
19 |
Vendor: Sun Microsystems, Inc. |
|
20 |
Summary: Boehm-Demers-Weiser garbage collector for C/C++ |
|
21 |
Source: http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-%{version}.tar.gz |
|
22 |
URL: http://www.hpl.hp.com/personal/Hans_Boehm/gc/ |
|
12966
a28c5890b40c
Add ARC comment into man page for realplayer,libgc,gthumb,tracker
jerrytan
parents:
12563
diff
changeset
|
23 |
#date:2008-07-31 owner:jerrytan type:branding |
a28c5890b40c
Add ARC comment into man page for realplayer,libgc,gthumb,tracker
jerrytan
parents:
12563
diff
changeset
|
24 |
Patch1: libgc-01-man.diff |
15095 | 25 |
#date:2009-02-16 owner:jerrytan type:branding |
26 |
Patch2: libgc-02-rename-libbgc.diff |
|
11516 | 27 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
28 |
Docdir: %{_defaultdocdir}/doc |
|
29 |
Autoreqprov: on |
|
30 |
Prereq: /sbin/ldconfig |
|
31 |
||
32 |
%description |
|
33 |
Boehm's GC is a garbage collecting storage allocator that is |
|
34 |
intended to be used as a plug-in replacement for C's malloc. |
|
35 |
||
36 |
||
37 |
%package devel |
|
38 |
Summary: Header files, libraries and development documentation for %{name} |
|
39 |
Group: Development/Libraries |
|
40 |
Requires: %{name} = %{version} |
|
41 |
||
42 |
%description devel |
|
43 |
This package contains the header files, static libraries and development |
|
44 |
documentation for %{name}. If you like to develop programs using %{name}, |
|
45 |
you will need to install %{name}-devel. |
|
46 |
||
47 |
||
48 |
%prep |
|
49 |
%setup -q -n %{real_name}-%{version} |
|
12966
a28c5890b40c
Add ARC comment into man page for realplayer,libgc,gthumb,tracker
jerrytan
parents:
12563
diff
changeset
|
50 |
%patch1 -p1 |
15095 | 51 |
%patch2 -p1 |
11516 | 52 |
|
53 |
%build |
|
54 |
%ifos linux |
|
55 |
if [ -x /usr/bin/getconf ]; then |
|
56 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
57 |
fi |
|
58 |
%else |
|
59 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
60 |
%endif |
|
61 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
62 |
CPUS=1 |
|
63 |
fi |
|
64 |
||
65 |
libtoolize --force |
|
66 |
aclocal $ACLOCAL_FLAGS |
|
67 |
automake -a -c -f |
|
68 |
autoconf |
|
69 |
||
70 |
CFLAGS="$RPM_OPT_FLAGS" \ |
|
71 |
./configure --prefix=%{_prefix} \ |
|
72 |
--mandir=%{_mandir} \ |
|
73 |
--libdir=%{_libdir} \ |
|
74 |
--libexecdir=%{_libexecdir} \ |
|
75 |
--sysconfdir=%{_sysconfdir} \ |
|
76 |
%gtk_doc_option |
|
77 |
||
78 |
make -j $CPUS |
|
79 |
||
80 |
%install |
|
81 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
12966
a28c5890b40c
Add ARC comment into man page for realplayer,libgc,gthumb,tracker
jerrytan
parents:
12563
diff
changeset
|
82 |
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man3 |
a28c5890b40c
Add ARC comment into man page for realplayer,libgc,gthumb,tracker
jerrytan
parents:
12563
diff
changeset
|
83 |
cp $RPM_BUILD_ROOT/usr/share/gc/gc.man $RPM_BUILD_ROOT/usr/share/man/man3/gc.3 |
11516 | 84 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
85 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' |
|
86 |
||
87 |
||
88 |
%clean |
|
89 |
rm -rf $RPM_BUILD_ROOT |
|
90 |
||
91 |
%post -p /sbin/ldconfig |
|
92 |
%postun -p /sbin/ldconfig |
|
93 |
||
94 |
%files |
|
95 |
%defattr(-, root, root) |
|
96 |
%doc README.QUICK |
|
97 |
%{_libdir}/libgc.so.* |
|
98 |
%{_libdir}/libgccpp.so.* |
|
99 |
%{_libdir}/libcord.so.* |
|
100 |
||
101 |
%files devel |
|
102 |
%defattr(-, root, root) |
|
103 |
%doc doc/* |
|
104 |
%doc %{_mandir}/man?/* |
|
105 |
%{_libdir}/libgc.so |
|
106 |
%{_libdir}/libgccpp.so |
|
107 |
%{_libdir}/libcord.so |
|
108 |
%{_includedir}/gc/ |
|
109 |
%{_includedir}/libgc/ |
|
110 |
%{_libdir}/pkgconfig/bdw-gc.pc |
|
111 |
||
112 |
%changelog |
|
15095 | 113 |
* Mon Feb 16 2009 - [email protected] |
114 |
- change libgc.so to libbgc.so to avoid conflict with sunstudio |
|
12359 | 115 |
* Tue May 27 2008 - [email protected] |
116 |
- Bump to 7.1 |
|
11516 | 117 |
* Wed Jan 02 2008 - [email protected] |
118 |
- spilit from SFEbdw-gc.spec |