gtkmm.spec revision 16739
19033N/A#
19033N/A# spec file for package gtkmm
19033N/A#
19033N/A# Copyright 2008 Sun Microsystems, Inc.
19033N/A# This file and all modifications and additions to the pristine
19033N/A# package are under the same license as the package itself.
19033N/A#
19033N/A# Owner: gheet
19033N/A#
19033N/A
19033N/AName: gtkmm
19033N/ALicense: LGPL
19033N/AGroup: System/Libraries
19033N/AVersion: 2.16.0
19033N/ARelease: 1
19033N/ADistribution: Java Desktop System
19033N/AVendor: Sun Microsystems, Inc.
19033N/ASummary: gtkmm - C++ Interfaces for GTK+ and GNOME
19033N/ASource: http://download.gnome.org/sources/gtkmm/2.16/gtkmm-%{version}.tar.bz2
19033N/A
19033N/A#date:2008-02-14 owner:gheet type:feature
19033N/APatch1: gtkmm-01-ignore-defs.diff
19033N/A
19033N/A#date:2009-07-02 owner:chrisk type:bug
19033N/APatch2: gtkmm-02-const-char.diff
19033N/A
19033N/AURL: http://www.gtkmm.org/
19033N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
19033N/A
19033N/A%prep
19033N/A%setup -q -n gtkmm-%version
19033N/A%patch1 -p1
19033N/A%patch2 -p1
19033N/A
19033N/A%build
19033N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
19033N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
19033N/A CPUS=1
19033N/Afi
19033N/A%if %cc_is_gcc
19033N/A%else
19033N/Aexport CXX="${CXX} -norunpath"
19033N/A%endif
19033N/Aexport CXXFLAGS="%cxx_optflags -D_XPG4_2 -D_RWSTD_NO_WSTR -D__EXTENSIONS__"
19033N/A
19033N/A# background.jpg is required by gtkmm-demo, but not in the right directory
19033N/A# we simply copy the file into the proper directory
19033N/Acp ./demos/background.jpg ./demos/gtk-demo
19033N/A
19033N/A# Recreate aclocal.m4 because of automake version mismatch (CBE: 1.10,
19033N/A# gtkmm: 1.10.1)
19033N/Aaclocal -Iscripts
19033N/Aautomake --add-missing
19033N/Aautoconf
19033N/A./configure --prefix=%{_prefix} --mandir=%{_mandir} \
19033N/A --libdir=%{_libdir} \
19033N/A --libexecdir=%{_libexecdir} \
19033N/A --sysconfdir=%{_sysconfdir}
19033N/Amake -j$CPUS
19033N/A
19033N/A%install
19033N/Amake install DESTDIR=$RPM_BUILD_ROOT
19033N/A
19033N/Arm -f $RPM_BUILD_ROOT%{_libdir}/lib*a
19033N/A
19033N/A%clean
19033N/Arm -rf $RPM_BUILD_ROOT
19033N/A
19117N/A%files
19033N/A%defattr (-, root, bin)
19033N/A%dir %attr (0755, root, bin) %{_libdir}
19033N/A%{_libdir}/lib*
20353N/A
20353N/A
19098N/A%changelog
19033N/A* Thu Jul 02 2009 - christian.kelly@sun.com
19033N/A- Add gtkmm-02-const-char to fix build issue.
19033N/A* Fri Jun 26 2009 - chris.wang@sun.com
19033N/A- Change spec and patch owner to gheet
19033N/A* Tue Mar 17 2009 - dave.lin@sun.com
19033N/A- Bump to 2.16.0
19117N/A* Fri Mar 13 2009 - dave.lin@sun.com
19033N/A- Bump to 2.15.5
19117N/A* Mon Feb 16 2009 - dave.lin@sun.com
19033N/A- Bump to 2.15.3
19033N/A* Thu Jan 08 2009 - christian.kelly@sun.com
19033N/A- Bump to 2.15.0.
19033N/A* Mon Nov 17 2008 - chris.wang@sun.com
19033N/A- Add _RWSTD_NO_WSTR to CXXFLAG
19033N/A* Fri Sep 12 2008 - chris,wang@sun.com
19033N/A- Bump to 2.13.8
19033N/A- remove patch 02-widget, as the community has revert the code
19033N/A* Thu Aug 21 2008 - dave.lin@sun.com
19033N/A- Bump to 2.13.7
19033N/A* Fri Aug 08 2008 - damien.carbery@sun.com
19033N/A- Remove reference to upstream patch glibmm-02-m4-macro.diff. Rename remainder.
19033N/A* Tue Aug 05 2008 - damien.carbery@sun.com
19033N/A- Bump to 2.13.6.
19033N/A* Thu Jul 30 2008 - chris.wang@sun.com
19033N/A- Bump to 2.13.5, we added pangomm spec
19033N/A* Fri Jul 18 2008 - christian.kelly@sun.com
19033N/A- Add patch gtkmm-03-widget, fix build issue, widget.cc use of & operator.
19033N/A* Thu Jul 17 2008 - christian.kelly@sun.com
19033N/A- Bump to 2.13.4.
19033N/A- Remove patch 02-gtk-deprecated, fix upstream.
19033N/A* Thu Jul 10 2008 - damien.carbery@sun.com
19033N/A- Add patch 02-gtk-deprecated.
19033N/A* Wed Apr 03 2008 - damien.carbery@sun.com
19033N/A- Bump to 2.12.7.
19033N/A* Wed Mar 05 2008 - damien.carbery@sun.com
19033N/A- Don't need to rename 'demo' to 'gtkmm-demo' as the installed file is now
19033N/A called 'gtkmm-demo'.
19033N/A* Mon Feb 25 2008 - damien.carbery@sun.com
19033N/A- Bump to 2.12.5. Remove upstream patches, 02-demo and 03-demo-installation.
19033N/A* Fri Feb 22 2008 - damien.carbery@sun.com
19033N/A- Add glibmm-02-m4-macro to fix #423990. Use glibmm patch as issue is identical.
19033N/A* Thu Feb 14 2008 - chris.wang@sun.com
19033N/A- Add patches gtkmm-02-demo, gtkmm-03-demo-installation to deliver gtkmm-demo
19033N/A on /usr/demo/jds/bin and resource files on /usr/share/gtkmm-2.4/demo
19033N/A* Thu Feb 14 2008 - chris.wang@sun.com
19033N/A- Add patch gtkmm-01-ignore-defs to remove the build of defs files since they
19033N/A are delivered with tarball and libglibmm_generate_extra_defs.so is not
19033N/A delivered. We have raise this issue to module owner, and will remove the
19033N/A patch if the module owner agree to remove .def file from tarball
19033N/A* Tue Jan 29 2008 - chris.wang@sun.com
19033N/A- create
19033N/A