sigcpp.spec revision 12366
10139N/A#
10139N/A# spec file for package sigcpp
10139N/A#
10139N/A# Copyright 2008 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
11860N/A#
10139N/A# Owner: elaine
10139N/A#
12299N/A
12299N/AName: libsigc++
13405N/ALicense: LGPL
10139N/AGroup: System/Libraries
10139N/AVersion: 2.0.18
10139N/ARelease: 1
10139N/ADistribution: Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
10139N/ASummary: Libsigc++ - a library that implements a typesafe callback system for standard C++
10139N/AURL: http://libsigc.sourceforge.net
10139N/ASource: http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.0/%{name}-%{version}.tar.bz2
10139N/A#Patch1: sigcpp-01-build-fix.diff
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/A
10139N/A%prep
10139N/A%setup -q -n libsigc++-%version
10139N/A#%patch1 -p1
10139N/A
10139N/A%build
10139N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10139N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10139N/A CPUS=1
10139N/Afi
10139N/Aperl -pi -e 's/(\s*#define SIGC_TYPEDEF_REDEFINE_ALLOWED.*)/\/\/$1/' \
10139N/A sigc++/macros/signal.h.m4
10139N/A./configure --prefix=%{_prefix} --mandir=%{_mandir} \
10139N/A --libdir=%{_libdir} \
10139N/A --libexecdir=%{_libexecdir} \
10139N/A --sysconfdir=%{_sysconfdir}
10139N/Amake -j$CPUS
10139N/A
10139N/A%install
10139N/Amake install DESTDIR=$RPM_BUILD_ROOT
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%changelog
10139N/A* Tue Feb 12 2008 - ghee.teo@sun.com
10139N/A- Clean up %files section
10139N/A* Fri Feb 01 2008 - elaine.xiong@sun.com
10139N/A- create. split from SFEsigcpp.spec
10139N/A