base-specs/libgc.spec
author convert-repo
Tue, 28 Sep 2010 11:41:29 +0000
changeset 20122 34a34bffcb68
parent 20109 234786f0a6c7
permissions -rw-r--r--
update tags
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
     1
#
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
     2
# spec file for package libgc
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
     3
#
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
     4
# Copyright (c) 2008 Sun Microsystems, Inc.
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
     6
# package are under the same license as the package itself.
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
     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
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
     9
#
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    10
16430
1630b44703c8 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 15297
diff changeset
    11
%define OSR 7136:7.x
1630b44703c8 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 15297
diff changeset
    12
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    13
%define real_name gc
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    14
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    15
Name:			libgc
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    16
Group:			System/Libraries
20021
33abc381d8d6 Revised license of libgc to GPLv2/MI
jouby
parents: 17954
diff changeset
    17
License:	        GPLv2/MIT	
12359
99d2537f4e45 2008-05-27 Halton Huo <[email protected]>
halton
parents: 11686
diff changeset
    18
Version:		7.1
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    19
Release:	 	4
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    20
Distribution:		Java Desktop System
17865
b7ff02e93f66 2010-04-19 Christian Kelly <[email protected]>
chrisk
parents: 16434
diff changeset
    21
Vendor:			Other
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    22
Summary:		Boehm-Demers-Weiser garbage collector for C/C++
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    23
Source:			http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-%{version}.tar.gz
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    24
URL:			http://www.hpl.hp.com/personal/Hans_Boehm/gc/
20109
234786f0a6c7 Update module/patch owners.
yippi
parents: 20021
diff changeset
    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
234786f0a6c7 Update module/patch owners.
yippi
parents: 20021
diff changeset
    27
#date:2009-02-16 owner:jouby type:branding
15297
b3e56452f826 rename libgc.so to libbgc.so
jerrytan
parents: 15176
diff changeset
    28
Patch2:                 libgc-02-rename-libbgc.diff
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    29
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    30
Docdir:			%{_defaultdocdir}/doc
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    31
Autoreqprov:		on
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    32
Prereq:                 /sbin/ldconfig
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    33
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    34
%description
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    35
Boehm's GC is a garbage collecting storage allocator that is
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    36
intended to be used as a plug-in replacement for C's malloc.
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    37
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    38
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    39
%package devel
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    40
Summary:		Header files, libraries and development documentation for %{name}
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    41
Group:			Development/Libraries
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    42
Requires:		%{name} = %{version}
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    43
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    44
%description devel
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    45
This package contains the header files, static libraries and development
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    46
documentation for %{name}. If you like to develop programs using %{name},
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    47
you will need to install %{name}-devel.
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    48
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    49
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    50
%prep
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    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
6524062125cf change libgc.so to libbgc.so for libgc
jerrytan
parents: 12966
diff changeset
    53
%patch2 -p1
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    54
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    55
%build
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    56
%ifos linux
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    57
if [ -x /usr/bin/getconf ]; then
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    58
  CPUS=`getconf _NPROCESSORS_ONLN`
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    59
fi
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    60
%else
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    61
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    62
%endif
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    63
if test "x$CPUS" = "x" -o $CPUS = 0; then
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    64
  CPUS=1
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    65
fi
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    66
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    67
libtoolize --force
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    68
aclocal $ACLOCAL_FLAGS
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    69
automake -a -c -f
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    70
autoconf
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    71
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    72
CFLAGS="$RPM_OPT_FLAGS"			\
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    73
./configure --prefix=%{_prefix}         \
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    74
            --mandir=%{_mandir}         \
15297
b3e56452f826 rename libgc.so to libbgc.so
jerrytan
parents: 15176
diff changeset
    75
            --libdir=%{_libdir}         \
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    76
            --libexecdir=%{_libexecdir} \
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    77
            --sysconfdir=%{_sysconfdir} \
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    78
            %gtk_doc_option
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    79
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    80
make -j $CPUS
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    81
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    82
%install
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    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
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    86
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    87
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    88
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    89
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    90
%clean
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    91
rm -rf $RPM_BUILD_ROOT
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    92
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    93
%post   -p /sbin/ldconfig
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    94
%postun -p /sbin/ldconfig
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    95
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    96
%files
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    97
%defattr(-, root, root)
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    98
%doc README.QUICK
15297
b3e56452f826 rename libgc.so to libbgc.so
jerrytan
parents: 15176
diff changeset
    99
%{_libdir}/lib*.so*
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   100
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   101
%files devel
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   102
%defattr(-, root, root)
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   103
%doc doc/*
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   104
%doc %{_mandir}/man?/*
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   105
%{_libdir}/libgc.so
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   106
%{_libdir}/libgccpp.so
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   107
%{_libdir}/libcord.so
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   108
%{_includedir}/gc/
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   109
%{_includedir}/libgc/
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   110
%{_libdir}/pkgconfig/bdw-gc.pc
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   111
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   112
%changelog
20021
33abc381d8d6 Revised license of libgc to GPLv2/MI
jouby
parents: 17954
diff changeset
   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
6524062125cf change libgc.so to libbgc.so for libgc
jerrytan
parents: 12966
diff changeset
   116
* Mon Feb 16 2009 - [email protected]
6524062125cf change libgc.so to libbgc.so for libgc
jerrytan
parents: 12966
diff changeset
   117
- change libgc.so to libbgc.so to avoid conflict with sunstudio
12359
99d2537f4e45 2008-05-27 Halton Huo <[email protected]>
halton
parents: 11686
diff changeset
   118
* Tue May 27 2008 - [email protected]
99d2537f4e45 2008-05-27 Halton Huo <[email protected]>
halton
parents: 11686
diff changeset
   119
- Bump to 7.1
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   120
* Wed Jan 02 2008 - [email protected]
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   121
- spilit from SFEbdw-gc.spec