4f77f8
%global apiver 1.6
4f77f8
# first two digits of version
4f77f8
%define release_version %(echo %{version} | awk -F. '{print $1"."$2}')
4f77f8
4f77f8
%global glibmm24_version 2.46.1
4f77f8
4f77f8
Name:           atkmm
4f77f8
Version:        2.24.2
4f77f8
Release:        6%{?dist}
4f77f8
Summary:        C++ interface for the ATK library
4f77f8
4f77f8
Group:          System Environment/Libraries
4f77f8
License:        LGPLv2+
4f77f8
URL:            http://www.gtkmm.org/
4f77f8
Source0:        http://ftp.gnome.org/pub/GNOME/sources/atkmm/%{release_version}/atkmm-%{version}.tar.xz
4f77f8
4f77f8
BuildRequires:  atk-devel
4f77f8
BuildRequires:  glibmm24-devel >= %{glibmm24_version}
4f77f8
4f77f8
Requires:       glibmm24%{?_isa} >= %{glibmm24_version}
4f77f8
4f77f8
%description
4f77f8
atkmm provides a C++ interface for the ATK library. Highlights
4f77f8
include typesafe callbacks, widgets extensible via inheritance and a
4f77f8
comprehensive set of widget classes that can be freely combined to
4f77f8
quickly create complex user interfaces.
4f77f8
4f77f8
4f77f8
%package devel
4f77f8
Summary:        Development files for %{name}
4f77f8
Group:          Development/Libraries
4f77f8
Requires:       %{name} = %{version}-%{release}
4f77f8
4f77f8
%description devel
4f77f8
The %{name}-devel package contains libraries and header files for
4f77f8
developing applications that use %{name}.
4f77f8
4f77f8
4f77f8
%package        doc
4f77f8
Summary:        Developer's documentation for the atkmm library
4f77f8
Group:          Documentation
4f77f8
BuildArch:      noarch
4f77f8
Requires:       %{name} = %{version}-%{release}
4f77f8
Requires:       glibmm24-doc
4f77f8
4f77f8
%description    doc
4f77f8
This package contains developer's documentation for the atkmm
4f77f8
library. Atkmm is the C++ API for the ATK accessibility toolkit library.
4f77f8
4f77f8
The documentation can be viewed either through the devhelp
4f77f8
documentation browser or through a web browser.
4f77f8
4f77f8
4f77f8
%prep
4f77f8
%setup -q
4f77f8
4f77f8
4f77f8
%build
4f77f8
%configure --disable-static
4f77f8
make %{?_smp_mflags}
4f77f8
4f77f8
4f77f8
%install
4f77f8
%make_install
4f77f8
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
4f77f8
4f77f8
4f77f8
%post -p /sbin/ldconfig
4f77f8
4f77f8
%postun -p /sbin/ldconfig
4f77f8
4f77f8
4f77f8
%files
4f77f8
%license COPYING
4f77f8
%doc AUTHORS NEWS README
4f77f8
%{_libdir}/*.so.*
4f77f8
4f77f8
%files devel
4f77f8
%{_includedir}/atkmm-%{apiver}/
4f77f8
%{_libdir}/*.so
4f77f8
%{_libdir}/pkgconfig/*.pc
4f77f8
%{_libdir}/atkmm-%{apiver}/
4f77f8
4f77f8
%files doc
4f77f8
%doc %{_docdir}/atkmm-%{apiver}/
4f77f8
%doc %{_datadir}/devhelp/
4f77f8
4f77f8
4f77f8
%changelog
4f77f8
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.24.2-6
4f77f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4f77f8
4f77f8
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.24.2-5
4f77f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
4f77f8
4f77f8
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.24.2-4
4f77f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4f77f8
4f77f8
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.24.2-3
4f77f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4f77f8
4f77f8
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.24.2-2
4f77f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4f77f8
4f77f8
* Mon Nov 30 2015 Kalev Lember <klember@redhat.com> - 2.24.2-1
4f77f8
- Update to 2.24.2
4f77f8
4f77f8
* Tue Sep 22 2015 Kalev Lember <klember@redhat.com> - 2.24.1-1
4f77f8
- Update to 2.24.1
4f77f8
- Drop conflicts with old gtkmm24 versions
4f77f8
- Use make_install macro
4f77f8
4f77f8
* Tue Sep 15 2015 Richard Hughes <rhughes@redhat.com> - 2.23.3-1
4f77f8
- Update to 2.23.3
4f77f8
4f77f8
* Tue Jun 30 2015 Kalev Lember <klember@redhat.com> - 2.23.1-1
4f77f8
- Update to 2.23.1
4f77f8
- Set minimum required glibmm24 version
4f77f8
- Use license macro for COPYING
4f77f8
4f77f8
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22.7-6
4f77f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4f77f8
4f77f8
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 2.22.7-5
4f77f8
- Rebuilt for GCC 5 C++11 ABI change
4f77f8
4f77f8
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22.7-4
4f77f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
4f77f8
4f77f8
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22.7-3
4f77f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4f77f8
4f77f8
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22.7-2
4f77f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4f77f8
4f77f8
* Mon Apr 29 2013 Kalev Lember <kalevlember@gmail.com> - 2.22.7-1
4f77f8
- Update to 2.22.7
4f77f8
- Drop -devel package deps that rpmbuild takes care of automatically
4f77f8
4f77f8
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22.6-3
4f77f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4f77f8
4f77f8
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22.6-2
4f77f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4f77f8
4f77f8
* Mon Feb 27 2012 Kalev Lember <kalevlember@gmail.com> - 2.22.6-1
4f77f8
- Update to 2.22.6
4f77f8
- Switch to .xz tarballs
4f77f8
4f77f8
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22.5-2
4f77f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4f77f8
4f77f8
* Thu Mar 31 2011 Kalev Lember <kalev@smartlink.ee> - 2.22.5-1
4f77f8
- Update to 2.22.5
4f77f8
4f77f8
* Fri Mar 25 2011 Kalev Lember <kalev@smartlink.ee> - 2.22.4-1
4f77f8
- Update to 2.22.4
4f77f8
4f77f8
* Tue Mar 01 2011 Kalev Lember <kalev@smartlink.ee> - 2.22.2-4
4f77f8
- Spec cleanup
4f77f8
- Actually co-own /usr/share/devhelp/ directory
4f77f8
- Require base package from -doc subpackage
4f77f8
4f77f8
* Mon Feb 21 2011 Haïkel Guémar <hguemar@fedoraproject.org> - 2.22.2-3
4f77f8
- split doc into subpackage
4f77f8
- fix documentation location
4f77f8
- co-own /usr/share/devhelp
4f77f8
4f77f8
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22.2-2
4f77f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4f77f8
4f77f8
* Thu Jan 13 2011 Kalev Lember <kalev@smartlink.ee> - 2.22.2-1
4f77f8
- Update to 2.22.2
4f77f8
4f77f8
* Tue Sep 28 2010 Kalev Lember <kalev@smartlink.ee> - 2.22.0-1
4f77f8
- Update to 2.22.0
4f77f8
4f77f8
* Tue Sep 14 2010 Kalev Lember <kalev@smartlink.ee> - 2.21.2-2
4f77f8
- Co-own /usr/share/gtk-doc/ directory (#604169)
4f77f8
4f77f8
* Wed Jun 30 2010 Kalev Lember <kalev@smartlink.ee> - 2.21.2-1
4f77f8
- Update to 2.21.2
4f77f8
4f77f8
* Sat Jun 26 2010 Kalev Lember <kalev@smartlink.ee> - 2.21.1-2
4f77f8
- added missing Conflicts: gtkmm24-devel to -devel subpackage
4f77f8
- calculate two-digit download directory from three-digit package version
4f77f8
4f77f8
* Wed Jun 23 2010 Kalev Lember <kalev@smartlink.ee> - 2.21.1-1
4f77f8
- Initial RPM release