Kalev Lember 1a58f9
%global apiver 1.6
Kalev Lember 1a58f9
# first two digits of version
Kalev Lember 1a58f9
%global release_version %(echo %{version} | awk -F. '{print $1"."$2}')
Kalev Lember 1a58f9
Kalev Lember 1a58f9
Name:           atkmm
Kalev Lember 323844
Version:        2.22.2
a31a9e
Release:        3%{?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 1a58f9
Source0:        http://ftp.gnome.org/pub/GNOME/sources/atkmm/%{release_version}/atkmm-%{version}.tar.bz2
Kalev Lember 1a58f9
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
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
Requires:       atk-devel
Kalev Lember 1a58f9
Requires:       glibmm24-devel
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
a31a9e
%package          doc
a31a9e
Summary:          Developer's documentation for the atkmm library
a31a9e
Group:            Documentation
a31a9e
BuildArch:        noarch
a31a9e
Requires:         libsigc++20-doc
a31a9e
Requires:         glibmm24-doc
a31a9e
a31a9e
%description      doc
a31a9e
This package contains developer's documentation for the atkmm
a31a9e
library. Pangomm 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
a31a9e
make %{?_smp_mfla gs}
Kalev Lember 1a58f9
Kalev Lember 1a58f9
Kalev Lember 1a58f9
%install
Kalev Lember 1a58f9
rm -rf $RPM_BUILD_ROOT
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
%clean
Kalev Lember 1a58f9
rm -rf $RPM_BUILD_ROOT
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
%defattr(-,root,root,-)
Kalev Lember 1a58f9
%doc AUTHORS ChangeLog COPYING NEWS README
Kalev Lember 1a58f9
%{_libdir}/*.so.*
Kalev Lember 1a58f9
Kalev Lember 1a58f9
Kalev Lember 1a58f9
%files devel
Kalev Lember 1a58f9
%defattr(-,root,root,-)
Kalev Lember 1a58f9
%{_includedir}/atkmm-%{apiver}/
Kalev Lember 1a58f9
%{_libdir}/*.so
Kalev Lember 1a58f9
%{_libdir}/pkgconfig/*.pc
Kalev Lember 1a58f9
%{_libdir}/atkmm-%{apiver}/
a31a9e
a31a9e
a31a9e
%files doc
a31a9e
%defattr(-, root, root, -)
a31a9e
%doc %{_docdir}/%{name}-%{apiver}/*
a31a9e
%{_datadir}/devhelp/
Kalev Lember 1a58f9
Kalev Lember 1a58f9
Kalev Lember 1a58f9
%changelog
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