gtkmm.spec revision 12444
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#
12366N/A# Owner: bewitche
12366N/A#
12366N/A
12366N/AName: gtkmm
12366N/ALicense: LGPL
12366N/AGroup: System/Libraries
13780N/AVersion: 2.12.4
12366N/ARelease: 1
12366N/ADistribution: Java Desktop System
12366N/AVendor: Sun Microsystems, Inc.
12366N/ASummary: gtkmm - C++ Interfaces for GTK+ and GNOME
13400N/ASource: http://download.gnome.org/sources/gtkmm/2.12/gtkmm-%{version}.tar.bz2
12384N/A
12384N/A#date:2008-02-14 owner:bewitche type:feature
12384N/APatch1: gtkmm-01-ignore-defs.diff
13829N/A# date:2008-02-14 owner:bewitche type:bug bugzilla:516600
12366N/APatch2: gtkmm-02-demo.diff
12366N/A# date:2008-02-14 owner:bewitche type:bug bugzilla:516602
12366N/APatch3: gtkmm-03-demo-installation.diff
12366N/A# date:2008-02-18 owner:dcarbery type:bug bugzilla:423990
12366N/APatch4: glibmm-02-m4-macro.diff
12384N/AURL: http://www.gtkmm.org/
12384N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
12366N/A
12366N/A%prep
12366N/A%setup -q -n gtkmm-%version
12366N/A%patch1 -p1
12366N/A%patch2 -p1
12366N/A%patch3 -p1
12366N/A%patch4 -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
12384N/A%if %cc_is_gcc
12384N/A%else
12384N/Aexport CXX="${CXX} -norunpath"
13400N/A%endif
13400N/Aexport CXXFLAGS="%cxx_optflags -D_XPG4_2 -D__EXTENSIONS__"
13400N/A
12384N/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
12366N/A./configure --prefix=%{_prefix} --mandir=%{_mandir} \
12366N/A --libdir=%{_libdir} \
12366N/A --libexecdir=%{_libexecdir} \
12366N/A --sysconfdir=%{_sysconfdir}
12366N/Amake -j$CPUS
12366N/A
12366N/A%install
12366N/Amake install DESTDIR=$RPM_BUILD_ROOT
12366N/A
12366N/Arm -f $RPM_BUILD_ROOT%{_libdir}/lib*a
12384N/Amv $RPM_BUILD_ROOT%{_bindir}/demo $RPM_BUILD_ROOT%{_bindir}/gtkmm-demo
12384N/A
12384N/A%clean
12384N/Arm -rf $RPM_BUILD_ROOT
12384N/A
12366N/A%files
12366N/A%defattr (-, root, bin)
13829N/A%dir %attr (0755, root, bin) %{_libdir}
13829N/A%{_libdir}/lib*
13780N/A
13780N/A
13697N/A%changelog
13697N/A* Fri Fe 22 2008 - damien.carbery@sun.com
13594N/A- Add glibmm-02-m4-macro to fix #423990. Use glibmm patch as issue is identical.
13594N/A* Thu Feb 14 2008 - chris.wang@sun.com
13589N/A- Add patches gtkmm-02-demo, gtkmm-03-demo-installation to deliver gtkmm-demo
13584N/A on /usr/demo/jds/bin and resource files on /usr/share/gtkmm-2.4/demo
13584N/A* Thu Feb 14 2008 - chris.wang@sun.com
13533N/A- Add patch gtkmm-01-ignore-defs to remove the build of defs files since they
13533N/A are delivered with tarball and libglibmm_generate_extra_defs.so is not
12746N/A delivered. We have raise this issue to module owner, and will remove the
12746N/A patch if the module owner agree to remove .def file from tarball
12538N/A* Tue Jan 29 2008 - chris.wang@sun.com
12538N/A- create
12538N/A