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