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