gtkmm.spec revision 12746
12366N/A#
12366N/A# spec file for package gtkmm
12366N/A#
12384N/A# Copyright 2008 Sun Microsystems, Inc.
12366N/A# This file and all modifications and additions to the pristine
12366N/A# package are under the same license as the package itself.
12366N/A#
17185N/A# Owner: bewitche
12366N/A#
12366N/A
17181N/AName: gtkmm
17181N/ALicense: LGPL
12366N/AGroup: System/Libraries
12366N/AVersion: 2.12.7
12366N/ARelease: 1
16861N/ADistribution: Java Desktop System
12366N/AVendor: Sun Microsystems, Inc.
12366N/ASummary: gtkmm - C++ Interfaces for GTK+ and GNOME
12366N/ASource: http://download.gnome.org/sources/gtkmm/2.12/gtkmm-%{version}.tar.bz2
12366N/A
16861N/A#date:2008-02-14 owner:bewitche type:feature
12384N/APatch1: gtkmm-01-ignore-defs.diff
16717N/A# date:2008-02-18 owner:dcarbery type:bug bugzilla:423990
12384N/APatch2: glibmm-02-m4-macro.diff
14361N/AURL: http://www.gtkmm.org/
16738N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
16738N/A
16738N/A%prep
16861N/A%setup -q -n gtkmm-%version
16861N/A%patch1 -p1
16861N/A%patch2 -p1
12366N/A
12366N/A%build
12366N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
12366N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
12366N/A CPUS=1
12384N/Afi
16739N/A%if %cc_is_gcc
16861N/A%else
15362N/Aexport CXX="${CXX} -norunpath"
12366N/A%endif
12366N/Aexport CXXFLAGS="%cxx_optflags -D_XPG4_2 -D__EXTENSIONS__"
12366N/A
12366N/A# background.jpg is required by gtkmm-demo, but not in the right directory
12366N/A# we simply copy the file into the proper directory
12366N/Acp ./demos/background.jpg ./demos/gtk-demo
12366N/A
12366N/Aautomake --add-missing
12366N/Aautoconf
15362N/A./configure --prefix=%{_prefix} --mandir=%{_mandir} \
12366N/A --libdir=%{_libdir} \
12384N/A --libexecdir=%{_libexecdir} \
12384N/A --sysconfdir=%{_sysconfdir}
12384N/Amake -j$CPUS
12384N/A
13400N/A%install
13400N/Amake install DESTDIR=$RPM_BUILD_ROOT
16861N/A
13400N/Arm -f $RPM_BUILD_ROOT%{_libdir}/lib*a
12384N/A
12366N/A%clean
12366N/Arm -rf $RPM_BUILD_ROOT
12366N/A
12366N/A%files
12366N/A%defattr (-, root, bin)
12366N/A%dir %attr (0755, root, bin) %{_libdir}
12366N/A%{_libdir}/lib*
12366N/A
12366N/A
12366N/A%changelog
12366N/A* Wed Apr 03 2008 - damien.carbery@sun.com
12366N/A- Bump to 2.12.7.
12366N/A* Wed Mar 05 2008 - damien.carbery@sun.com
12366N/A- Don't need to rename 'demo' to 'gtkmm-demo' as the installed file is now
12366N/A called 'gtkmm-demo'.
12384N/A* Mon Feb 25 2008 - damien.carbery@sun.com
12384N/A- Bump to 2.12.5. Remove upstream patches, 02-demo and 03-demo-installation.
12384N/A* Fri Feb 22 2008 - damien.carbery@sun.com
12384N/A- Add glibmm-02-m4-macro to fix #423990. Use glibmm patch as issue is identical.
12384N/A* Thu Feb 14 2008 - chris.wang@sun.com
12366N/A- Add patches gtkmm-02-demo, gtkmm-03-demo-installation to deliver gtkmm-demo
12366N/A on /usr/demo/jds/bin and resource files on /usr/share/gtkmm-2.4/demo
16861N/A* Thu Feb 14 2008 - chris.wang@sun.com
16861N/A- Add patch gtkmm-01-ignore-defs to remove the build of defs files since they
16832N/A are delivered with tarball and libglibmm_generate_extra_defs.so is not
16832N/A delivered. We have raise this issue to module owner, and will remove the
16801N/A patch if the module owner agree to remove .def file from tarball
16801N/A* Tue Jan 29 2008 - chris.wang@sun.com
16739N/A- create
16739N/A