File atk.spec of Package atk
#
# spec file for package atk (Version 1.28.0)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: atk
BuildRequires: fdupes gcc-c++ glib2-devel translation-update-upstream
Summary: An Accessibility ToolKit
Version: 1.28.0
Release: 1
Requires: %{name}-lang = %{version}
# bug437293
%ifarch ppc64
Obsoletes: atk-64bit
%endif
#
Url: http://www.gtk.org/
License: LGPL v2.1 or later
Group: System/Libraries
Source: ftp://ftp.gnome.org/pub/gnome/sources/atk/1.20/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: libatk-1_0-0
%description
The ATK library provides a set of accessibility interfaces. By
supporting the ATK interfaces, an application or toolkit can be used
with screen readers, magnifiers, and alternate input devices.
%package -n libatk-1_0-0
License: LGPL v2.1 or later
Summary: An Accessibility ToolKit
Group: System/Libraries
Requires: %{name} >= %{version}
%description -n libatk-1_0-0
The ATK library provides a set of accessibility interfaces. By
supporting the ATK interfaces, an application or toolkit can be used
with screen readers, magnifiers, and alternate input devices.
%package devel
License: LGPL v2.1 or later
Summary: Include Files and Libraries mandatory for Development
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
Requires: glib2-devel
# bug437293
%ifarch ppc64
Obsoletes: atk-devel-64bit
%endif
#
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
%package doc
License: LGPL v2.1 or later
Summary: Additional Package Documentation for atk
Group: System/Libraries
Requires: %{name} = %{version}
%description doc
This package contains additional documentation for the ATK Library.
%lang_package
%prep
%setup -q
translation-update-upstream
%build
%configure --disable-static
make %{?jobs:-j%jobs}
%install
%makeinstall
%if 0%{?suse_version} > 1110
%{__rm} %{buildroot}/%{_libdir}/*.la
%endif
%find_lang atk10
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libatk-1_0-0 -p /sbin/ldconfig
%postun -n libatk-1_0-0 -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%if %suse_version <= 1020
%dir %{_datadir}/locale/be@latin
%dir %{_datadir}/locale/be@latin/LC_MESSAGES
%endif
%files -n libatk-1_0-0
%defattr(-, root, root)
%{_libdir}/lib*.so.*
%files lang -f atk10.lang
%files devel
%defattr(-, root, root)
%{_includedir}/atk-1.0
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%if 0%{?suse_version} <= 1110
%{_libdir}/*.la
%endif
%files doc
%defattr(-, root, root)
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/atk
%changelog