2007-01-15 23:21:50 +00:00
|
|
|
#
|
2012-02-08 15:08:24 +00:00
|
|
|
# spec file for package libfreevec
|
2007-01-15 23:21:50 +00:00
|
|
|
#
|
2012-02-08 15:08:24 +00:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:21:50 +00:00
|
|
|
#
|
2008-09-25 11:16:53 +00:00
|
|
|
# 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.
|
|
|
|
|
2007-06-21 20:39:00 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-15 23:21:50 +00:00
|
|
|
#
|
|
|
|
|
2008-05-11 15:18:18 +00:00
|
|
|
|
2007-06-21 20:39:00 +00:00
|
|
|
Name: libfreevec
|
2009-01-16 00:47:32 +00:00
|
|
|
Version: 1.0.4
|
2012-02-08 15:08:24 +00:00
|
|
|
Release: 0
|
2007-06-21 20:39:00 +00:00
|
|
|
Summary: Altivec Versions of Some libc Functions
|
2012-02-08 15:08:24 +00:00
|
|
|
License: LGPL-2.1+
|
2007-06-21 20:39:00 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2008-05-11 15:18:18 +00:00
|
|
|
Requires: libfreevec-library
|
2007-10-12 22:11:16 +00:00
|
|
|
Url: http://www.freevec.org/
|
2012-02-08 15:08:24 +00:00
|
|
|
ExclusiveArch: ppc ppc64
|
2007-06-21 20:39:00 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-05-11 15:18:18 +00:00
|
|
|
Source0: http://www.codex.gr/system/files/libfreevec-%{version}.tar.bz2
|
2012-02-08 15:08:24 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
2007-01-15 23:21:50 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
libfreevec is a free (LGPL) library with hand-optimized replacement
|
2007-06-21 20:39:00 +00:00
|
|
|
routines for GLIBC, such as memcpy() and strlen(). These routines have
|
|
|
|
been written specifically to take advantage of the AltiVec unit
|
|
|
|
(Velocity Engine or VMX) and will only work on processors that include
|
|
|
|
this unit. This means they will not work on older processors, such as
|
|
|
|
603, 604, 750 (G3), or the POWER family of CPUs.
|
2007-01-15 23:21:50 +00:00
|
|
|
|
2008-05-11 15:18:18 +00:00
|
|
|
%package -n libfreevec0
|
|
|
|
Summary: Altivec Versions of Some libc Functions
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: libfreevec-devel
|
|
|
|
Provides: libfreevec-library
|
|
|
|
|
|
|
|
%description -n libfreevec0
|
|
|
|
libfreevec is a free (LGPL) library with hand-optimized replacement
|
|
|
|
routines for GLIBC, such as memcpy() and strlen(). These routines have
|
|
|
|
been written specifically to take advantage of the AltiVec unit
|
|
|
|
(Velocity Engine or VMX) and will only work on processors that include
|
|
|
|
this unit. This means they will not work on older processors, such as
|
|
|
|
603, 604, 750 (G3), or the POWER family of CPUs.
|
|
|
|
|
2007-01-15 23:21:50 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2008-05-11 15:18:18 +00:00
|
|
|
autoreconf -fi
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS -U_FORTIFY_SOURCE -O3 -maltivec -funroll-loops -DHAVE_ALTIVEC_H -flax-vector-conversions" \
|
2012-02-08 15:08:24 +00:00
|
|
|
%configure \
|
|
|
|
--prefix=%_prefix \
|
2007-01-15 23:21:50 +00:00
|
|
|
--libdir=%{_libdir}
|
2012-02-08 15:08:24 +00:00
|
|
|
make %{?_smp_mflags}
|
2007-01-15 23:21:50 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT pkglibdir=%{_libdir}
|
|
|
|
|
2008-05-11 15:18:18 +00:00
|
|
|
%post -n libfreevec0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libfreevec0 -p /sbin/ldconfig
|
|
|
|
|
2007-01-15 23:21:50 +00:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc AUTHORS COPYING FAQ README
|
2008-05-11 15:18:18 +00:00
|
|
|
|
|
|
|
%files -n libfreevec0
|
|
|
|
%defattr(-, root, root)
|
2007-01-15 23:21:50 +00:00
|
|
|
%{_libdir}/lib*
|
2008-05-11 15:18:18 +00:00
|
|
|
|
2007-06-21 20:39:00 +00:00
|
|
|
%changelog
|