base-specs/libgc.spec
author mattman
Wed, 18 Feb 2009 15:07:13 +0000
changeset 15143 d2d90ead6862
parent 15095 6524062125cf
child 15150 b597b2300a3c
permissions -rw-r--r--
* SUNWtgnome-tsoljdsdevmgr.spec : Update Owner format string * SUNWtgnome-tsol-libs.spec : Update Owner format string * SUNWPython25.spec : Update Owner format string * SUNWdesktop-search.spec : Update Owner format string * SUNWlibtasn1.spec : Update Owner format string * SUNWtelepathy-glib.spec : Update Owner format string * SUNWtgnome-xagent.spec : Update Owner format string * SUNWlibgsf.spec : Update Owner format string * SUNWw3m.spec : Update Owner format string * SUNWtgnome-tsoljdslabel.spec : Update Owner format string * SUNWlibgc.spec : Update Owner format string * SUNWmission-control.spec : Update Owner format string * SUNWfirefox.spec : Update Owner format string * SUNWtgnome-tstripe.spec : Update Owner format string * SUNWtgnome-tsoljdsselmgr.spec : Update Owner format string * SUNWlibgmime.spec : Update Owner format string * SUNWlibtelepathy.spec : Update Owner format string * SUNWPython26.spec : Update Owner format string * base-specs/nautilus-open-terminal.spec : Update Owner format string * base-specs/brltty.spec : Update Owner format string * base-specs/dmz-cursor-aa.spec : Update Owner format string * base-specs/telepathy-mission-control.spec : Update Owner format string * base-specs/libIDL.spec : Update Owner format string * base-specs/dmz-cursor.spec : Update Owner format string * base-specs/w3m.spec : Update Owner format string * base-specs/tracker.spec : Update Owner format string * base-specs/gmime.spec : Update Owner format string * base-specs/nautilus.spec : Update Owner format string * base-specs/libgsf.spec : Update Owner format string * base-specs/vinagre.spec : Update Owner format string * base-specs/gnome-volume-manager.spec : Update Owner format string * base-specs/GConf.spec : Update Owner format string * base-specs/gnome-mount.spec : Update Owner format string * base-specs/libtelepathy.spec : Update Owner format string * base-specs/gtk-vnc.spec : Update Owner format string * base-specs/telepathy-glib.spec : Update Owner format string * base-specs/eel.spec : Update Owner format string * base-specs/ORBit2.spec : Update Owner format string * base-specs/unique.spec : Update Owner format string * base-specs/libgc.spec : Update Owner format string
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
#
15143
d2d90ead6862 * SUNWtgnome-tsoljdsdevmgr.spec : Update Owner format string
mattman
parents: 15095
diff changeset
     8
# Owner: jerrytan
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
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    11
%define real_name gc
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    12
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    13
Name:			libgc
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    14
License:		BSD
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    15
Group:			System/Libraries
12359
99d2537f4e45 2008-05-27 Halton Huo <[email protected]>
halton
parents: 11686
diff changeset
    16
Version:		7.1
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    17
Release:	 	4
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    18
Distribution:		Java Desktop System
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    19
Vendor:			Sun Microsystems, Inc.
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    20
Summary:		Boehm-Demers-Weiser garbage collector for C/C++
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    21
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
    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
6524062125cf change libgc.so to libbgc.so for libgc
jerrytan
parents: 12966
diff changeset
    25
#date:2009-02-16 owner:jerrytan type:branding
6524062125cf change libgc.so to libbgc.so for libgc
jerrytan
parents: 12966
diff changeset
    26
Patch2:                 libgc-02-rename-libbgc.diff
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    27
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    28
Docdir:			%{_defaultdocdir}/doc
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    29
Autoreqprov:		on
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    30
Prereq:                 /sbin/ldconfig
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    31
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    32
%description
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    33
Boehm's GC is a garbage collecting storage allocator that is
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    34
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
    35
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    36
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    37
%package devel
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    38
Summary:		Header files, libraries and development documentation for %{name}
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    39
Group:			Development/Libraries
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    40
Requires:		%{name} = %{version}
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    41
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    42
%description devel
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    43
This package contains the header files, static libraries and development
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    44
documentation for %{name}. If you like to develop programs using %{name},
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    45
you will need to install %{name}-devel.
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    46
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    47
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    48
%prep
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    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
6524062125cf change libgc.so to libbgc.so for libgc
jerrytan
parents: 12966
diff changeset
    51
%patch2 -p1
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    52
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    53
%build
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    54
%ifos linux
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    55
if [ -x /usr/bin/getconf ]; then
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    56
  CPUS=`getconf _NPROCESSORS_ONLN`
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    57
fi
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    58
%else
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    59
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    60
%endif
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    61
if test "x$CPUS" = "x" -o $CPUS = 0; then
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    62
  CPUS=1
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    63
fi
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    64
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    65
libtoolize --force
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    66
aclocal $ACLOCAL_FLAGS
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    67
automake -a -c -f
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    68
autoconf
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    69
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    70
CFLAGS="$RPM_OPT_FLAGS"			\
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    71
./configure --prefix=%{_prefix}         \
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    72
            --mandir=%{_mandir}         \
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    73
            --libdir=%{_libdir}         \
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    74
            --libexecdir=%{_libexecdir} \
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    75
            --sysconfdir=%{_sysconfdir} \
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    76
            %gtk_doc_option
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    77
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    78
make -j $CPUS
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
%install
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    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
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    84
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    85
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    86
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    87
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    88
%clean
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    89
rm -rf $RPM_BUILD_ROOT
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    90
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    91
%post   -p /sbin/ldconfig
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    92
%postun -p /sbin/ldconfig
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    93
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    94
%files
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    95
%defattr(-, root, root)
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    96
%doc README.QUICK
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    97
%{_libdir}/libgc.so.*
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    98
%{_libdir}/libgccpp.so.*
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
    99
%{_libdir}/libcord.so.*
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
15095
6524062125cf change libgc.so to libbgc.so for libgc
jerrytan
parents: 12966
diff changeset
   113
* Mon Feb 16 2009 - [email protected]
6524062125cf change libgc.so to libbgc.so for libgc
jerrytan
parents: 12966
diff changeset
   114
- 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
   115
* Tue May 27 2008 - [email protected]
99d2537f4e45 2008-05-27 Halton Huo <[email protected]>
halton
parents: 11686
diff changeset
   116
- Bump to 7.1
11516
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   117
* Wed Jan 02 2008 - [email protected]
78f2ff195ca5 2008-01-24 Halton Huo <[email protected]>
halton
parents:
diff changeset
   118
- spilit from SFEbdw-gc.spec