author | convert-repo |
Tue, 28 Sep 2010 11:41:29 +0000 | |
changeset 20122 | 34a34bffcb68 |
parent 20109 | 234786f0a6c7 |
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 |
# |
|
17954
5840d6651599
change the ownership of SUNWlibgc.spec SUNWlibgdata SUNWpython-setuptools SUNWpython26-setuptools to jouby
jouby
parents:
17865
diff
changeset
|
8 |
%define owner jouby |
11516 | 9 |
# |
10 |
||
16430 | 11 |
%define OSR 7136:7.x |
12 |
||
11516 | 13 |
%define real_name gc |
14 |
||
15 |
Name: libgc |
|
16 |
Group: System/Libraries |
|
20021 | 17 |
License: GPLv2/MIT |
12359 | 18 |
Version: 7.1 |
11516 | 19 |
Release: 4 |
20 |
Distribution: Java Desktop System |
|
17865 | 21 |
Vendor: Other |
11516 | 22 |
Summary: Boehm-Demers-Weiser garbage collector for C/C++ |
23 |
Source: http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-%{version}.tar.gz |
|
24 |
URL: http://www.hpl.hp.com/personal/Hans_Boehm/gc/ |
|
20109 | 25 |
#date:2008-07-31 owner:jouby type:branding |
12966
a28c5890b40c
Add ARC comment into man page for realplayer,libgc,gthumb,tracker
jerrytan
parents:
12563
diff
changeset
|
26 |
Patch1: libgc-01-man.diff |
20109 | 27 |
#date:2009-02-16 owner:jouby type:branding |
15297 | 28 |
Patch2: libgc-02-rename-libbgc.diff |
11516 | 29 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
30 |
Docdir: %{_defaultdocdir}/doc |
|
31 |
Autoreqprov: on |
|
32 |
Prereq: /sbin/ldconfig |
|
33 |
||
34 |
%description |
|
35 |
Boehm's GC is a garbage collecting storage allocator that is |
|
36 |
intended to be used as a plug-in replacement for C's malloc. |
|
37 |
||
38 |
||
39 |
%package devel |
|
40 |
Summary: Header files, libraries and development documentation for %{name} |
|
41 |
Group: Development/Libraries |
|
42 |
Requires: %{name} = %{version} |
|
43 |
||
44 |
%description devel |
|
45 |
This package contains the header files, static libraries and development |
|
46 |
documentation for %{name}. If you like to develop programs using %{name}, |
|
47 |
you will need to install %{name}-devel. |
|
48 |
||
49 |
||
50 |
%prep |
|
51 |
%setup -q -n %{real_name}-%{version} |
|
12966
a28c5890b40c
Add ARC comment into man page for realplayer,libgc,gthumb,tracker
jerrytan
parents:
12563
diff
changeset
|
52 |
%patch1 -p1 |
15095 | 53 |
%patch2 -p1 |
11516 | 54 |
|
55 |
%build |
|
56 |
%ifos linux |
|
57 |
if [ -x /usr/bin/getconf ]; then |
|
58 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
59 |
fi |
|
60 |
%else |
|
61 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
62 |
%endif |
|
63 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
64 |
CPUS=1 |
|
65 |
fi |
|
66 |
||
67 |
libtoolize --force |
|
68 |
aclocal $ACLOCAL_FLAGS |
|
69 |
automake -a -c -f |
|
70 |
autoconf |
|
71 |
||
72 |
CFLAGS="$RPM_OPT_FLAGS" \ |
|
73 |
./configure --prefix=%{_prefix} \ |
|
74 |
--mandir=%{_mandir} \ |
|
15297 | 75 |
--libdir=%{_libdir} \ |
11516 | 76 |
--libexecdir=%{_libexecdir} \ |
77 |
--sysconfdir=%{_sysconfdir} \ |
|
78 |
%gtk_doc_option |
|
79 |
||
80 |
make -j $CPUS |
|
81 |
||
82 |
%install |
|
83 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
12966
a28c5890b40c
Add ARC comment into man page for realplayer,libgc,gthumb,tracker
jerrytan
parents:
12563
diff
changeset
|
84 |
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
|
85 |
cp $RPM_BUILD_ROOT/usr/share/gc/gc.man $RPM_BUILD_ROOT/usr/share/man/man3/gc.3 |
11516 | 86 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
87 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' |
|
88 |
||
89 |
||
90 |
%clean |
|
91 |
rm -rf $RPM_BUILD_ROOT |
|
92 |
||
93 |
%post -p /sbin/ldconfig |
|
94 |
%postun -p /sbin/ldconfig |
|
95 |
||
96 |
%files |
|
97 |
%defattr(-, root, root) |
|
98 |
%doc README.QUICK |
|
15297 | 99 |
%{_libdir}/lib*.so* |
11516 | 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 |
|
20021 | 113 |
* Revised license to GPLv2/MIT |
17954
5840d6651599
change the ownership of SUNWlibgc.spec SUNWlibgdata SUNWpython-setuptools SUNWpython26-setuptools to jouby
jouby
parents:
17865
diff
changeset
|
114 |
* Fri Apr 30 2010 - [email protected] |
5840d6651599
change the ownership of SUNWlibgc.spec SUNWlibgdata SUNWpython-setuptools SUNWpython26-setuptools to jouby
jouby
parents:
17865
diff
changeset
|
115 |
- Change the ownership to jouby |
15095 | 116 |
* Mon Feb 16 2009 - [email protected] |
117 |
- change libgc.so to libbgc.so to avoid conflict with sunstudio |
|
12359 | 118 |
* Tue May 27 2008 - [email protected] |
119 |
- Bump to 7.1 |
|
11516 | 120 |
* Wed Jan 02 2008 - [email protected] |
121 |
- spilit from SFEbdw-gc.spec |