gtkmm.spec revision 12384
10139N/A#
10139N/A# spec file for package gtkmm
10139N/A#
10139N/A# Copyright 2008 Sun Microsystems, Inc.
13600N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
10139N/A#
10139N/A# Owner: bewitche
10139N/A#
10139N/A
10139N/AName: gtkmm
10139N/ALicense: LGPL
10139N/AGroup: System/Libraries
13898N/AVersion: 2.12.4
13898N/ARelease: 1
10139N/ADistribution: Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
10139N/ASummary: gtkmm - C++ Interfaces for GTK+ and GNOME
10139N/ASource: http://download.gnome.org/sources/gtkmm/2.12/gtkmm-%{version}.tar.bz2
10139N/A
10139N/A#date:2008-02-14 owner:bewitche type:feature
10139N/APatch1: gtkmm-01-ignore-defs.diff
10139N/A# date:2008-02-14 owner:bewitche type:bug bugzilla:516600
10139N/APatch2: gtkmm-02-demo.diff
10139N/A# date:2008-02-14 owner:bewitche type:bug bugzilla:516602
10139N/APatch3: gtkmm-03-demo-installation.diff
13898N/AURL: http://www.gtkmm.org/
13898N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
13898N/A
10139N/A%prep
10139N/A%setup -q -n gtkmm-%version
10139N/A%patch1 -p1
10139N/A%patch2 -p1
13898N/A%patch3 -p1
13898N/A
13898N/A%build
13898N/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
13898N/A%if %cc_is_gcc
10139N/A%else
11999N/Aexport CXX="${CXX} -norunpath"
11999N/A%endif
13898N/Aexport CXXFLAGS="%cxx_optflags -D_XPG4_2 -D__EXTENSIONS__"
10139N/A
13577N/A# background.jpg is required by gtkmm-demo, but not in the right directory
10139N/A# we simply copy the file into the proper directory
13898N/Acp ./demos/background.jpg ./demos/gtk-demo
10139N/A
10139N/Aautomake --add-missing
10139N/Aautoconf
13898N/A./configure --prefix=%{_prefix} --mandir=%{_mandir} \
10139N/A --libdir=%{_libdir} \
10139N/A --libexecdir=%{_libexecdir} \
10139N/A --sysconfdir=%{_sysconfdir}
13898N/Amake -j$CPUS
10139N/A
13898N/A%install
13898N/Amake install DESTDIR=$RPM_BUILD_ROOT
10139N/A
13898N/Arm -f $RPM_BUILD_ROOT%{_libdir}/lib*a
13898N/Amv $RPM_BUILD_ROOT%{_bindir}/demo $RPM_BUILD_ROOT%{_bindir}/gtkmm-demo
13898N/A
10139N/A%clean
13898N/Arm -rf $RPM_BUILD_ROOT
13898N/A
12164N/A%files
13898N/A%defattr (-, root, bin)
10139N/A%dir %attr (0755, root, bin) %{_libdir}
13898N/A%{_libdir}/lib*
13898N/A
13898N/A
13898N/A%changelog
10139N/A* Thu Feb 14 2008 - chris.wang@sun.com
11425N/A- Add patches gtkmm-02-demo, gtkmm-03-demo-installation to deliver gtkmm-demo
11425N/A on /usr/demo/jds/bin and resource files on /usr/share/gtkmm-2.4/demo
13898N/A* Thu Feb 14 2008 - chris.wang@sun.com
13898N/A- Add patch gtkmm-01-ignore-defs to remove the build of defs files since they
13898N/A are delivered with tarball and libglibmm_generate_extra_defs.so is not
10330N/A delivered. We have raise this issue to module owner, and will remove the
10330N/A patch if the module owner agree to remove .def file from tarball
13898N/A* Tue Jan 29 2008 - chris.wang@sun.com
13898N/A- create
13898N/A