a71bc3
# first two digits of version
a71bc3
%define release_version %(echo %{version} | awk -F. '{print $1"."$2}')
a71bc3
%global tarname gtkmm
a71bc3
%global api_ver 2.4
a71bc3
a71bc3
Name:           gtkmm24
a71bc3
Version:        2.24.5
a71bc3
Release:        1%{?dist}
a71bc3
a71bc3
Summary:        C++ interface for GTK2 (a GUI library for X)
a71bc3
a71bc3
License:        LGPLv2+
a71bc3
URL:            http://www.gtkmm.org/
a71bc3
Source0:        http://ftp.gnome.org/pub/GNOME/sources/gtkmm/%{release_version}/gtkmm-%{version}.tar.xz
a71bc3
a71bc3
BuildRequires:  glibmm24-devel >= 2.24
a71bc3
BuildRequires:  atkmm-devel >= 2.22
a71bc3
BuildRequires:  gtk2-devel >= 2.24
a71bc3
BuildRequires:  cairomm-devel >= 1.2.2
a71bc3
BuildRequires:  pangomm-devel >= 2.26
a71bc3
a71bc3
a71bc3
%description
a71bc3
gtkmm provides a C++ interface to the GTK+ GUI library. gtkmm2 wraps GTK+ 2.
a71bc3
Highlights include typesafe callbacks, widgets extensible via inheritance
a71bc3
and a comprehensive set of widget classes that can be freely combined to
a71bc3
quickly create complex user interfaces.
a71bc3
a71bc3
a71bc3
%package        devel
a71bc3
Summary:        Headers for developing programs that will use %{name}.
a71bc3
Requires:       %{name}%{_isa} = %{version}-%{release}
a71bc3
Requires:       gtk2-devel
a71bc3
Requires:       glibmm24-devel
a71bc3
Requires:       atkmm-devel
a71bc3
Requires:       pangomm-devel
a71bc3
Requires:       cairomm-devel
a71bc3
a71bc3
a71bc3
%description devel
a71bc3
This package contains the static libraries and header files needed for
a71bc3
developing gtkmm applications.
a71bc3
a71bc3
a71bc3
%package        docs
a71bc3
Summary:        Documentation for %{name}, includes full API docs
a71bc3
BuildArch:      noarch
a71bc3
Requires:       %{name} = %{version}-%{release}
a71bc3
Requires:       glibmm24-doc
a71bc3
a71bc3
%description    docs
a71bc3
This package contains the full API documentation for %{name}.
a71bc3
a71bc3
a71bc3
%prep
a71bc3
%setup -q -n gtkmm-%{version}
a71bc3
a71bc3
a71bc3
%build
a71bc3
%configure %{!?_with_static: --disable-static} --enable-shared
a71bc3
# removing rpath
a71bc3
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
a71bc3
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
a71bc3
a71bc3
make %{?_smp_mflags}
a71bc3
a71bc3
a71bc3
%install
a71bc3
make install DESTDIR=$RPM_BUILD_ROOT
a71bc3
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
a71bc3
a71bc3
a71bc3
%post -p /sbin/ldconfig
a71bc3
a71bc3
a71bc3
%postun -p /sbin/ldconfig
a71bc3
a71bc3
a71bc3
%files
a71bc3
%license COPYING
a71bc3
%doc AUTHORS NEWS README
a71bc3
%{_libdir}/*.so.*
a71bc3
a71bc3
a71bc3
%files devel
a71bc3
%doc PORTING demos/gtk-demo/
a71bc3
%{_includedir}/gtkmm-2.4/
a71bc3
%{_includedir}/gdkmm-2.4/
a71bc3
%{?_with_static: %{_libdir}/*.a}
a71bc3
%{_libdir}/*.so
a71bc3
%{_libdir}/gtkmm-2.4/
a71bc3
%{_libdir}/gdkmm-2.4/
a71bc3
%{_libdir}/pkgconfig/*.pc
a71bc3
a71bc3
a71bc3
%files docs
a71bc3
%doc %{_docdir}/%{tarname}-%{api_ver}
a71bc3
%doc %{_datadir}/devhelp/
a71bc3
a71bc3
%changelog
a71bc3
* Mon Sep 05 2016 Kalev Lember <klember@redhat.com> - 2.24.5-1
a71bc3
- Update to 2.24.5
a71bc3
- Resolves: #1425963
a71bc3
a71bc3
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.24.2-8
a71bc3
- Mass rebuild 2014-01-24
a71bc3
a71bc3
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.24.2-7
a71bc3
- Mass rebuild 2013-12-27
a71bc3
a71bc3
* Fri Jun 21 2013 Kalev Lember <kalevlember@gmail.com> - 2.24.2-6
a71bc3
- Revert back to 2.24.2 for F19 as per upstream's recommendation
a71bc3
  (#961087, #963909)
a71bc3
a71bc3
* Fri Jun 21 2013 Matthias Clasen <mclasen@redhat.com> - 2.24.3-2
a71bc3
- Don't install ChangeLog
a71bc3
a71bc3
* Fri Apr 05 2013 Kalev Lember <kalevlember@gmail.com> - 2.24.3-1
a71bc3
- Update to 2.24.3
a71bc3
a71bc3
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.24.2-5
a71bc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a71bc3
a71bc3
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.24.2-4
a71bc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a71bc3
a71bc3
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.24.2-3
a71bc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a71bc3
a71bc3
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 2.24.2-2
a71bc3
- Rebuild for new libpng
a71bc3
a71bc3
* Sat Jul 09 2011 Kalev Lember <kalevlember@gmail.com> - 2.24.2-1
a71bc3
- Update to 2.24.2
a71bc3
- Removed mm-common buildrequire which is no longer needed for tarball builds
a71bc3
- Cleaned up the spec file for modern rpmbuild
a71bc3
a71bc3
* Thu Jul 07 2011 Kalev Lember <kalevlember@gmail.com> - 2.24.1-1
a71bc3
- Update to 2.24.1
a71bc3
- Dropped the doctooldir patch
a71bc3
a71bc3
* Mon Jul 04 2011 Karsten Hopp <karsten@redhat.com> 2.24.0-4
a71bc3
- buildrequire mm-common
a71bc3
- fix pkg-config call to figure out doctooldir
a71bc3
a71bc3
* Wed Mar 02 2011 Kalev Lember <kalev@smartlink.ee> - 2.24.0-3
a71bc3
- Co-own /usr/share/devhelp/ directory
a71bc3
- Require base package from -doc subpackage
a71bc3
- Dropped unneeded doxygen and graphviz BRs
a71bc3
a71bc3
* Mon Feb 21 2011 Haïkel Guémar <hguemar@fedoraproject.org> - 2.24.0-2
a71bc3
- fix documentation location
a71bc3
a71bc3
* Thu Feb 10 2011 Kalev Lember <kalev@smartlink.ee> - 2.24.0-1
a71bc3
- Update to 2.24.0
a71bc3
- Use macro for automatically figuring out the download URL
a71bc3
- Cleaned up unnecessary BuildRequires / Requires
a71bc3
a71bc3
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22.0-2
a71bc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a71bc3
a71bc3
* Tue Sep 28 2010 Kalev Lember <kalev@smartlink.ee> - 2.22.0-1
a71bc3
- Update to 2.22.0
a71bc3
a71bc3
* Tue Sep 21 2010 Kalev Lember <kalev@smartlink.ee> - 2.21.8.1-1
a71bc3
- Update to 2.21.8.1
a71bc3
a71bc3
* Tue Sep 21 2010 Kalev Lember <kalev@smartlink.ee> - 2.21.8-1
a71bc3
- Update to 2.21.8
a71bc3
a71bc3
* Tue Sep 14 2010 Kalev Lember <kalev@smartlink.ee> - 2.21.7-2
a71bc3
- Dropped gtkmm24-2.21.1-gtkcalendar.patch
a71bc3
- Build docs subpackage as noarch
a71bc3
- Co-own gtk-doc directory (#604169)
a71bc3
- Fixed macro-in-changelog rpmlint warning
a71bc3
a71bc3
* Wed Sep 08 2010 Haïkel Guémar <hguemar@fedoraproject.org> - 2.21.7-1
a71bc3
- Update to upstream 2.21.7
a71bc3
a71bc3
* Mon Jul 05 2010 Haïkel Guémar <hguemar@fedoraproject.org> - 2.21.1-1
a71bc3
- Update to upstream 2.21.1
a71bc3
- close RHBZ #610195 (first step for parallel installable Gtkmm stacks)
a71bc3
- build patch from Kalev
a71bc3
a71bc3
* Thu Apr 29 2010 Haïkel Guémar <hguemar@fedoraproject.org> - 2.20.2-1
a71bc3
- Update to upstream 2.20.2
a71bc3
a71bc3
* Sat Mar 20 2010 Denis Leroy <denis@poolshark.org> - 2.19.7-1
a71bc3
- Update to unstable 2.19.7
a71bc3
a71bc3
* Sat Feb 27 2010 Denis Leroy <denis@poolshark.org> - 2.19.6-1
a71bc3
- Update to unstable 2.19.6, fixes #568905
a71bc3
a71bc3
* Thu Feb 18 2010 Denis Leroy <denis@poolshark.org> - 2.19.4-1
a71bc3
- Update to upstream 2.19.4
a71bc3
a71bc3
* Sun Jan 17 2010 Denis Leroy <denis@poolshark.org> - 2.19.2-1
a71bc3
- Update to upstream 2.19.2, new unstable branch
a71bc3
a71bc3
* Sat Oct 24 2009 Denis Leroy <denis@poolshark.org> - 2.18.2-1
a71bc3
- Update to upstream 2.18.2
a71bc3
a71bc3
* Fri Sep 25 2009 Denis Leroy <denis@poolshark.org> - 2.18.1-1
a71bc3
- Update to upstream 2.18.1
a71bc3
a71bc3
* Mon Sep 14 2009 Denis Leroy <denis@poolshark.org> - 2.17.11-1
a71bc3
- Update to upstream 2.17.11
a71bc3
- Added demo code to devel package doc directory
a71bc3
a71bc3
* Sun Aug 16 2009 Denis Leroy <denis@poolshark.org> - 2.17.2-1
a71bc3
- Update to upstream 2.17.2
a71bc3
a71bc3
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.16.0-2
a71bc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a71bc3
a71bc3
* Mon Apr  6 2009 Denis Leroy <denis@poolshark.org> - 2.16.0-1
a71bc3
- Update to upstream 2.16.0
a71bc3
a71bc3
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.15.3-2
a71bc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a71bc3
a71bc3
* Sat Feb 14 2009 Denis Leroy <denis@poolshark.org> - 2.15.3-1
a71bc3
- Update to upstream 2.15.3
a71bc3
a71bc3
* Wed Jan 14 2009 Denis Leroy <denis@poolshark.org> - 2.15.0-1
a71bc3
- Update to upstream 2.15.0
a71bc3
a71bc3
* Thu Dec 11 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.14.3-2
a71bc3
- Rebuild for pkgconfig provides
a71bc3
a71bc3
* Wed Nov 26 2008 Denis Leroy <denis@poolshark.org> - 2.14.3-1
a71bc3
- Update to 2.14.3 version
a71bc3
- Devhelp patch upstreamed
a71bc3
a71bc3
* Sat Oct 11 2008 Denis Leroy <denis@poolshark.org> - 2.14.1-1
a71bc3
- Update to 2.14.1
a71bc3
- Fix documentation links
a71bc3
a71bc3
* Tue Sep 23 2008 Denis Leroy <denis@poolshark.org> - 2.14.0-1
a71bc3
- Update to stable 2.14.0
a71bc3
a71bc3
* Fri Sep  5 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.13.7-2
a71bc3
- Patch from svn temporarily to make compatible with GTK 2.14
a71bc3
  (bug 461227)
a71bc3
a71bc3
* Sun Aug 24 2008 Denis Leroy <denis@poolshark.org> - 2.13.7-1
a71bc3
- Update to upstream 2.13.7, with pangomm split
a71bc3
a71bc3
* Wed Jul 23 2008 Denis Leroy <denis@poolshark.org> - 2.13.4-1
a71bc3
- Update to upstream 2.13.4
a71bc3
a71bc3
* Fri Jul  4 2008 Denis Leroy <denis@poolshark.org> - 2.13.1-1
a71bc3
- Update to version 2.13.1
a71bc3
a71bc3
* Sat May 31 2008 Denis Leroy <denis@poolshark.org> - 2.13.0-1
a71bc3
- Following gtk2 to 2.13 unstable branch
a71bc3
a71bc3
* Sat Apr 12 2008 Denis Leroy <denis@poolshark.org> - 2.12.7-1
a71bc3
- Update to upstream 2.12.7
a71bc3
a71bc3
* Wed Mar 12 2008 Denis Leroy <denis@poolshark.org> - 2.12.5-1
a71bc3
- Update to upstream 2.12.5
a71bc3
a71bc3
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.12.4-2
a71bc3
- Autorebuild for GCC 4.3
a71bc3
a71bc3
* Tue Jan 29 2008 Denis Leroy <denis@poolshark.org> - 2.12.4-1
a71bc3
- Update to upstream 2.12.4, includes gcc 4.3 build fix
a71bc3
a71bc3
* Sun Nov 11 2007 Denis Leroy <denis@poolshark.org> - 2.12.3-1
a71bc3
- Update to 2.12.3, bug fix
a71bc3
a71bc3
* Mon Sep 17 2007 Denis Leroy <denis@poolshark.org> - 2.12.0-1
a71bc3
- Update to new stable branch 2.12.0
a71bc3
a71bc3
* Tue Aug 28 2007 Denis Leroy <denis@poolshark.org> - 2.11.7-1
a71bc3
- Update to 2.11.7
a71bc3
- License tag update
a71bc3
- ppc32 rebuild
a71bc3
a71bc3
* Wed Aug  1 2007 Denis Leroy <denis@poolshark.org> - 2.11.6-1
a71bc3
- Update to 2.11.6
a71bc3
a71bc3
* Tue Jul  3 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.11.3-2
a71bc3
- Rebuild against newest GLib (due to #245141, #245634)
a71bc3
a71bc3
* Thu Jun 21 2007 Denis Leroy <denis@poolshark.org> - 2.11.3-1
a71bc3
- Update to unstable 2.11 tree to follow gtk2 version
a71bc3
- Fixed documentation devhelp support
a71bc3
a71bc3
* Mon Apr 30 2007 Denis Leroy <denis@poolshark.org> - 2.10.9-1
a71bc3
- Update to 2.10.9
a71bc3
a71bc3
* Thu Mar 15 2007 Denis Leroy <denis@poolshark.org> - 2.10.8-1
a71bc3
- Update to 2.10.8
a71bc3
a71bc3
* Sun Jan 28 2007 Denis Leroy <denis@poolshark.org> - 2.10.7-1
a71bc3
- Update to 2.10.7, fixed Source url path
a71bc3
a71bc3
* Tue Dec 12 2006 Denis Leroy <denis@poolshark.org> - 2.10.6-1
a71bc3
- Update to 2.10.6
a71bc3
a71bc3
* Mon Dec  4 2006 Denis Leroy <denis@poolshark.org> - 2.10.5-1
a71bc3
- Update to 2.10.5
a71bc3
a71bc3
* Tue Oct  3 2006 Denis Leroy <denis@poolshark.org> - 2.10.2-1
a71bc3
- Update to 2.10.2
a71bc3
a71bc3
* Mon Aug 28 2006 Denis Leroy <denis@poolshark.org> - 2.10.0-3
a71bc3
- FE6 Rebuild
a71bc3
a71bc3
* Mon Aug 21 2006 Denis Leroy <denis@poolshark.org> - 2.10.0-2
a71bc3
- Added cairomm Require in devel 
a71bc3
a71bc3
* Mon Aug 21 2006 Denis Leroy <denis@poolshark.org> - 2.10.0-1
a71bc3
- Update to 2.10.0. Now depends on cairomm
a71bc3
a71bc3
* Sun Jun 25 2006 Denis Leroy <denis@poolshark.org> - 2.8.8-2
a71bc3
- Added dist postfix to release version
a71bc3
a71bc3
* Sun Jun 25 2006 Denis Leroy <denisleroy@yahoo.com> - 2.8.8-1
a71bc3
- Update to 2.8.8
a71bc3
a71bc3
* Sun May  7 2006 Denis Leroy <denis@poolshark.org> - 2.8.5-1
a71bc3
- Update to 2.8.5
a71bc3
a71bc3
* Tue Feb 28 2006 Denis Leroy <denis@poolshark.org> - 2.8.3-1
a71bc3
- Update to version 2.8.3
a71bc3
- Added optional macro to compile static libs
a71bc3
a71bc3
* Fri Nov 25 2005 Denis Leroy <denis@poolshark.org> - 2.8.1-1
a71bc3
- Update to gtkmm 2.8.1
a71bc3
- Disabled static libraries build
a71bc3
a71bc3
* Mon Sep 19 2005 Denis Leroy <denis@poolshark.org> - 2.8.0-1
a71bc3
- Update to gtkmm 2.8.0
a71bc3
- Incorporated dependency updates from Rick Vinyard
a71bc3
a71bc3
* Fri Apr 29 2005 Denis Leroy <denis@poolshark.org> - 2.6.2-2
a71bc3
- Disabled building of demo and examples
a71bc3
a71bc3
* Sat Apr  9 2005 Denis Leroy <denis@poolshark.org> - 2.6.2-1
a71bc3
- Update to gtkmm 2.6.2
a71bc3
- Added demo binary to devel package
a71bc3
a71bc3
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
a71bc3
- rebuilt
a71bc3
a71bc3
* Sat Jan 15 2005 Rick L Vinyard Jr <rvinyard@cs.nmsu.edu> - 0:2.4.8-1
a71bc3
- Update for gtkmm 2.4.8
a71bc3
a71bc3
* Wed Nov 17 2004 Denis Leroy <denis@poolshark.org> - 0:2.4.7-1
a71bc3
- Update for gtkmm 2.4.7
a71bc3
a71bc3
* Mon Jun 27 2004 Denis Leroy <denis@poolshark.org> - 0:2.4.5-0.fdr.1
a71bc3
- Upgrade to 2.4.5
a71bc3
a71bc3
* Thu Oct 8 2003 Michael Koziarski <michael@koziarski.org> - 0:2.2.8-0.fdr.3
a71bc3
- Incorporated more of Michael Schwendt's Comments in fedora bug 727
a71bc3
- Seperate -docs package with devhelp support disabled.
a71bc3
a71bc3
* Tue Oct 7 2003 Michael Koziarski <michael@koziarski.org> - 0:2.2.8-0.fdr.2
a71bc3
- Split the documentation into a separate -docs package
a71bc3
- Included devhelp
a71bc3
a71bc3
* Sat Oct 4 2003 Michael Koziarski <michael@koziarski.org> - 0:2.2.8-0.fdr.1
a71bc3
- Incorporated Michael Schwendt's Comments in fedora bug 727
a71bc3
- Updated to 2.2.8
a71bc3
a71bc3
* Tue Sep 16 2003 Phillip Compton <pcompton[AT]proteinmedia.com> - 0:2.2.7-0.fdr.1
a71bc3
- Initial Fedora Release.
a71bc3
- Updated to 2.2.7.
a71bc3
a71bc3
* Fri Dec 6 2002 Gary Peck <gbpeck@sbcglobal.net> - 2.0.2-1
a71bc3
- Removed "--without docs" option and simplified the spec file since the
a71bc3
  documentation is included in the tarball now
a71bc3
a71bc3
* Thu Dec 5 2002 Walter H. van Holst <rpm-maintainer@fossiel.xs4all.nl> - 1.0.2
a71bc3
- Removed reference to patch
a71bc3
- Added the documentation files in %%files
a71bc3
a71bc3
* Thu Oct 31 2002 Gary Peck <gbpeck@sbcglobal.net> - 2.0.0-gp1
a71bc3
- Update to 2.0.0
a71bc3
a71bc3
* Wed Oct 30 2002 Gary Peck <gbpeck@sbcglobal.net> - 1.3.26-gp3
a71bc3
- Added "--without docs" option to disable DocBook generation
a71bc3
a71bc3
* Sat Oct 26 2002 Gary Peck <gbpeck@sbcglobal.net> - 1.3.26-gp2
a71bc3
- Update to 1.3.26
a71bc3
- Spec file cleanups
a71bc3
- Removed examples from devel package
a71bc3
- Build html documentation (including a Makefile patch)
a71bc3
a71bc3
* Mon Oct 14 2002 Gary Peck <gbpeck@sbcglobal.net> - 1.3.24-gp1
a71bc3
- Initial release of gtkmm2, using gtkmm spec file as base