77a11c
%global apiver 3.0
77a11c
# first two digits of version
77a11c
%define release_version %(echo %{version} | awk -F. '{print $1"."$2}')
77a11c
77a11c
%global atkmm_version 2.24.2
77a11c
%global cairomm_version 1.12.0
77a11c
%global gdk_pixbuf2_version 2.35.5
77a11c
%global glibmm24_version 2.49.1
77a11c
%global gtk3_version 3.22.0
77a11c
%global pangomm_version 2.38.2
77a11c
77a11c
Name:           gtkmm30
77a11c
Version:        3.22.2
77a11c
Release:        1%{?dist}
77a11c
Summary:        C++ interface for the GTK+ library
77a11c
77a11c
License:        LGPLv2+
77a11c
URL:            http://www.gtkmm.org/
77a11c
Source0:        http://download.gnome.org/sources/gtkmm/%{release_version}/gtkmm-%{version}.tar.xz
77a11c
77a11c
BuildRequires:  atkmm-devel >= %{atkmm_version}
77a11c
BuildRequires:  cairomm-devel >= %{cairomm_version}
77a11c
BuildRequires:  gdk-pixbuf2-devel >= %{gdk_pixbuf2_version}
77a11c
BuildRequires:  glibmm24-devel >= %{glibmm24_version}
77a11c
BuildRequires:  gtk3-devel >= %{gtk3_version}
77a11c
BuildRequires:  pangomm-devel >= %{pangomm_version}
77a11c
77a11c
Requires:       atkmm%{?_isa} >= %{atkmm_version}
77a11c
Requires:       cairomm%{?_isa} >= %{cairomm_version}
77a11c
Requires:       gdk-pixbuf2%{?_isa} >= %{gdk_pixbuf2_version}
77a11c
Requires:       glibmm24%{?_isa} >= %{glibmm24_version}
77a11c
Requires:       gtk3%{?_isa} >= %{gtk3_version}
77a11c
Requires:       pangomm%{?_isa} >= %{pangomm_version}
77a11c
77a11c
%description
77a11c
gtkmm is the official C++ interface for the popular GUI library GTK+.
77a11c
Highlights include type safe callbacks, and a comprehensive set of
77a11c
widgets that are easily extensible via inheritance.
77a11c
77a11c
77a11c
%package        devel
77a11c
Summary:        Development files for %{name}
77a11c
Requires:       %{name}%{?_isa} = %{version}-%{release}
77a11c
77a11c
%description devel
77a11c
The %{name}-devel package contains libraries and header files for
77a11c
developing applications that use %{name}.
77a11c
77a11c
77a11c
%package        doc
77a11c
Summary:        API documentation for %{name}
77a11c
BuildArch:      noarch
77a11c
Requires:       %{name} = %{version}-%{release}
77a11c
Requires:       glibmm24-doc
77a11c
77a11c
%description    doc
77a11c
This package contains the full API documentation for %{name}.
77a11c
77a11c
77a11c
%prep
77a11c
%setup -q -n gtkmm-%{version}
77a11c
77a11c
# Copy demos before build to avoid including built binaries in -doc package
77a11c
mkdir -p _docs
77a11c
cp -a demos/ _docs/
77a11c
77a11c
77a11c
%build
77a11c
%configure --disable-static
77a11c
77a11c
# fix lib64 rpaths
77a11c
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
77a11c
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
77a11c
77a11c
# avoid unused direct dependencies
77a11c
sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
77a11c
77a11c
make %{?_smp_mflags}
77a11c
77a11c
77a11c
%install
77a11c
%make_install
77a11c
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
77a11c
77a11c
77a11c
%post -p /sbin/ldconfig
77a11c
77a11c
%postun -p /sbin/ldconfig
77a11c
77a11c
77a11c
%files
77a11c
%license COPYING
77a11c
%doc AUTHORS NEWS README
77a11c
%{_libdir}/*.so.*
77a11c
77a11c
%files devel
77a11c
%{_includedir}/gtkmm-%{apiver}/
77a11c
%{_includedir}/gdkmm-%{apiver}/
77a11c
%{_libdir}/*.so
77a11c
%{_libdir}/gtkmm-%{apiver}/
77a11c
%{_libdir}/gdkmm-%{apiver}/
77a11c
%{_libdir}/pkgconfig/*.pc
77a11c
77a11c
%files doc
77a11c
%doc %{_docdir}/gtkmm-%{apiver}/
77a11c
%doc %{_datadir}/devhelp/
77a11c
%doc _docs/*
77a11c
77a11c
77a11c
%changelog
77a11c
* Fri Nov 03 2017 Kalev Lember <klember@redhat.com> - 3.22.2-1
77a11c
- Update to 3.22.2
77a11c
- Related: #1488581
77a11c
77a11c
* Mon Oct  2 2017 Matthias Clasen <mclasen@redhat.com> - 3.22.0-2
77a11c
- Rebuild for Wayland support
77a11c
- Resolves: #1488581
77a11c
77a11c
* Tue Sep 20 2016 Kalev Lember <klember@redhat.com> - 3.22.0-1
77a11c
- Update to 3.22.0
77a11c
- Resolves: #1386982
77a11c
77a11c
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 3.8.1-3
77a11c
- Mass rebuild 2014-01-24
77a11c
77a11c
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.8.1-2
77a11c
- Mass rebuild 2013-12-27
77a11c
77a11c
* Thu May 02 2013 Kalev Lember <kalevlember@gmail.com> - 3.8.1-1
77a11c
- Update to 3.8.1
77a11c
77a11c
* Wed Apr 17 2013 Kalev Lember <kalevlember@gmail.com> - 3.8.0-1
77a11c
- Update to 3.8.0
77a11c
77a11c
* Wed Mar 20 2013 Kalev Lember <kalevlember@gmail.com> - 3.7.12-1
77a11c
- Update to 3.7.12
77a11c
77a11c
* Mon Feb 25 2013 Kalev Lember <kalevlember@gmail.com> - 3.7.10-1
77a11c
- Update to 3.7.10
77a11c
77a11c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.0-2
77a11c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
77a11c
77a11c
* Mon Oct 22 2012 Kalev Lember <kalevlember@gmail.com> - 3.6.0-1
77a11c
- Update to 3.6.0
77a11c
77a11c
* Thu Sep 27 2012 Kalev Lember <kalevlember@gmail.com> - 3.5.13-1
77a11c
- Update to 3.5.13
77a11c
77a11c
* Wed Sep 05 2012 Kalev Lember <kalevlember@gmail.com> - 3.5.12-1
77a11c
- Update to 3.5.12
77a11c
77a11c
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.6-2
77a11c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
77a11c
77a11c
* Thu Jul 12 2012 Kalev Lember <kalevlember@gmail.com> - 3.5.6-1
77a11c
- Update to 3.5.6
77a11c
77a11c
* Tue Jun 12 2012 Kalev Lember <kalevlember@gmail.com> - 3.5.4-1
77a11c
- Update to 3.5.4
77a11c
77a11c
* Wed Apr 11 2012 Kalev Lember <kalevlember@gmail.com> - 3.4.0-1
77a11c
- Update to 3.4.0
77a11c
77a11c
* Wed Mar 07 2012 Kalev Lember <kalevlember@gmail.com> - 3.3.18-1
77a11c
- Update to 3.3.18
77a11c
77a11c
* Tue Feb 28 2012 Kalev Lember <kalevlember@gmail.com> - 3.3.16-1
77a11c
- Update to 3.3.16
77a11c
- Remove manual Requires from -devel subpackage; these are automatically
77a11c
  generated with rpm pkgconfig depgen
77a11c
77a11c
* Tue Feb 07 2012 Kalev Lember <kalevlember@gmail.com> - 3.3.14-1
77a11c
- Update to 3.3.14
77a11c
77a11c
* Sun Jan 22 2012 Haïkel Guémar <hguemar@fedoraproject.org> - 3.3.2-1
77a11c
- upstream 3.3.2
77a11c
77a11c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.0-2
77a11c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
77a11c
77a11c
* Wed Sep 28 2011 Ray <rstrode@redhat.com> - 3.2.0-1
77a11c
- Update to 3.2.0
77a11c
77a11c
* Fri Sep 16 2011 Kalev Lember <kalevlember@gmail.com> - 3.1.90-1
77a11c
- Update to 3.1.90
77a11c
77a11c
* Wed Sep 07 2011 Kalev Lember <kalevlember@gmail.com> - 3.1.18-1
77a11c
- Update to 3.1.18
77a11c
77a11c
* Wed Aug 31 2011 Kalev Lember <kalevlember@gmail.com> - 3.1.16-1
77a11c
- Update to 3.1.16
77a11c
77a11c
* Thu Jul 28 2011 Kalev Lember <kalevlember@gmail.com> - 3.1.10-1
77a11c
- Update to 3.1.10
77a11c
77a11c
* Sat Jul 09 2011 Kalev Lember <kalevlember@gmail.com> - 3.1.8-1
77a11c
- Update to 3.1.8
77a11c
- Use the xz compressed tarballs
77a11c
- Clean up the spec file for modern rpmbuild
77a11c
77a11c
* Mon May 09 2011 Kalev Lember <kalev@smartlink.ee> - 3.0.1-1
77a11c
- Update to 3.0.1
77a11c
77a11c
* Wed Apr 06 2011 Kalev Lember <kalev@smartlink.ee> - 3.0.0-1
77a11c
- Update to 3.0.0
77a11c
77a11c
* Fri Mar 25 2011 Kalev Lember <kalev@smartlink.ee> - 2.99.8-1
77a11c
- Update to 2.99.8
77a11c
- Dropped BR mm-common which is no longer needed for tarball builds
77a11c
77a11c
* Fri Mar 18 2011 Kalev Lember <kalev@smartlink.ee> - 2.99.6-1
77a11c
- Update to 2.99.6
77a11c
- BuildRequire mm-common for doctools which are no longer in glibmm24-devel.
77a11c
77a11c
* Tue Mar 01 2011 Kalev Lember <kalev@smartlink.ee> - 2.99.5-2
77a11c
- Spec cleanup
77a11c
- Ship the source code for demos in -doc
77a11c
- Require base package from -doc subpackage
77a11c
- Actually co-own /usr/share/devhelp/ directory
77a11c
77a11c
* Sun Feb 27 2011 Haïkel Guémar <hguemar@fedoraproject.org> - 2.99.5-1
77a11c
- Update to 2.99.5
77a11c
77a11c
* Sun Feb 27 2011 Haïkel Guémar <hguemar@fedoraproject.org> - 2.99.3-4
77a11c
- fix documentation handling
77a11c
77a11c
* Fri Feb 11 2011 Matthias Clasen <mclasen@redhat.com> - 2.99.3-3
77a11c
- Rebuild against newer gtk
77a11c
77a11c
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.99.3-2
77a11c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
77a11c
77a11c
* Thu Feb 03 2011 Kalev Lember <kalev@smartlink.ee> - 2.99.3-1
77a11c
- Update to 2.99.3
77a11c
77a11c
* Thu Jan 13 2011 Kalev Lember <kalev@smartlink.ee> - 2.99.1-1
77a11c
- Update to 2.99.1
77a11c
77a11c
* Fri Dec 03 2010 Kalev Lember <kalev@smartlink.ee> - 2.91.5.1-1
77a11c
- Update to 2.91.5.1
77a11c
77a11c
* Tue Nov 02 2010 Kalev Lember <kalev@smartlink.ee> - 2.91.3-1
77a11c
- Update to 2.91.3
77a11c
77a11c
* Mon Nov 01 2010 Kalev Lember <kalev@smartlink.ee> - 2.91.2-1
77a11c
- Update to 2.91.2
77a11c
- Removed no-application.patch as we now have new enough glibmm
77a11c
77a11c
* Sun Oct 03 2010 Kalev Lember <kalev@smartlink.ee> - 2.91.0-1
77a11c
- Update to 2.91.0
77a11c
77a11c
* Wed Sep 29 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 2.90.7-1
77a11c
- 2.90.7
77a11c
- no more "application" support in glib
77a11c
77a11c
* Wed Sep 29 2010 jkeating - 2.90.5-3
77a11c
- Rebuilt for gcc bug 634757
77a11c
77a11c
* Tue Sep 14 2010 Kalev Lember <kalev@smartlink.ee> - 2.90.5-2
77a11c
- Co-own /usr/share/gtk-doc/ directory (#604169)
77a11c
77a11c
* Wed Jul 14 2010 Kalev Lember <kalev@smartlink.ee> - 2.90.5-1
77a11c
- Update to 2.90.5
77a11c
77a11c
* Wed Jul 07 2010 Kalev Lember <kalev@smartlink.ee> - 2.90.4.0-3
77a11c
- Avoid putting built demos in /usr/share (#608326)
77a11c
- Moved demos to -doc package
77a11c
77a11c
* Tue Jul 06 2010 Kalev Lember <kalev@smartlink.ee> - 2.90.4.0-2
77a11c
- Review fixes (#608326)
77a11c
- Fixed lib64 rpaths
77a11c
- Added %%check section
77a11c
- Use %%define instead of %%global to set release_version macro, as the latter
77a11c
  seems to confuse rpmlint
77a11c
- Replaced hardcoded /usr/share with %%_datadir macro
77a11c
- Updated description
77a11c
77a11c
* Mon Jul 05 2010 Kalev Lember <kalev@smartlink.ee> - 2.90.4.0-1
77a11c
- Update to 2.90.4.0
77a11c
77a11c
* Sat Jun 26 2010 Kalev Lember <kalev@smartlink.ee> - 2.90.3.1-1
77a11c
- Initial gtkmm30 spec based on gtkmm24 spec