File liboil.spec of Package liboil
#
# spec file for package liboil (Version 0.3.17)
#
# Copyright (c) 2010 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: liboil
BuildRequires: glib2-devel
BuildRequires: gtk-doc
Version: 0.3.17
Release: 1
Url: http://liboil.freedesktop.org/wiki/
Group: System/Libraries
License: BSD and Motorola License (please mark changes)
Summary: Library of Optimized Inner Loops
Source: %{name}-%{version}.tar.bz2
Source2: baselibs.conf
# bug437293
%ifarch ppc64
Obsoletes: liboil-64bit
%endif
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Liboil is a library of simple functions that are optimized for various
CPUs. These functions are generally loops implementing simple
algorithms, such as converting an array of N integers to floating-point
numbers or multiplying and summing an array of N numbers. Such
functions are candidates for significant optimization using various
techniques, especially by using extended instructions provided by
modern CPUs (Altivec, MMX, SSE, etc.).
Many multimedia applications and libraries already do similar things
internally. The goal of this project is to consolidate some of the code
used by various multimedia projects and also make optimizations easier
to use by a broader range of applications.
Authors:
--------
David Schleef <ds@schleef.org>
%package devel
License: Other uncritical OpenSource License ; BSD and Motorola License (please mark changes)
Group: Development/Libraries/C and C++
Summary: Library of Optimized Inner Loops
Requires: %{name} = %{version} glibc-devel
# bug437293
%ifarch ppc64
Obsoletes: liboil-devel-64bit
%endif
#
%description devel
Liboil is a library of simple functions that are optimized for various
CPUs. These functions are generally loops implementing simple
algorithms, such as converting an array of N integers to floating-point
numbers or multiplying and summing an array of N numbers. Such
functions are candidates for significant optimization using various
techniques, especially by using extended instructions provided by
modern CPUs (Altivec, MMX, SSE, etc.).
Many multimedia applications and libraries already do similar things
internally. The goal of this project is to consolidate some of the code
used by various multimedia projects, and also make optimizations easier
to use by a broader range of applications.
Authors:
--------
David Schleef <ds@schleef.org>
%package doc
License: Other uncritical OpenSource License ; BSD and Motorola License (please mark changes)
Group: Development/Libraries/C and C++
Summary: Library of optimized inner loops
Requires: %{name} = %{version}
%description doc
This package provides documentation for liboil, a library of simple
functions that are optimized for various CPUs. These functions are
generally loops implementing simple algorithms, such as converting an
array of N integers to floating-point numbers or multiplying and
summing an array of N numbers. Such functions are candidates for
significant optimization using various techniques, especially by using
extended instructions provided by modern CPUs (Altivec, MMX, SSE,
etc.).
Many multimedia applications and libraries already do similar things
internally. The goal of this project is to consolidate some of the code
used by various multimedia projects, and also make optimizations easier
to use by a broader range of applications.
Authors:
--------
David Schleef <ds@schleef.org>
%prep
%setup -q
%build
%configure --disable-static --with-pic
%__make %{?jobs:-j%jobs}
# Do NOT! disable running the testsuite or make failures
# non-fatal for the build!
%check
%__make check
%install
%makeinstall
%{__rm} -f %{buildroot}%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr (-, root, root)
%doc AUTHORS NEWS README
%{_libdir}/*.so.*
%files devel
%defattr (-, root, root)
%{_bindir}/oil-bugreport
%{_includedir}/liboil-*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%files doc
%defattr (-, root, root)
%{_datadir}/gtk-doc/html/liboil
%changelog