File libfreevec.spec of Package libfreevec

#
# spec file for package libfreevec (Version 1.0.4)
#
# 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:           libfreevec
Version:        1.0.4
Release:        1
License:        LGPL v2.1 or later
Summary:        Altivec Versions of Some libc Functions
Group:          Development/Libraries/C and C++
Requires:       libfreevec-library
Url:            http://www.freevec.org/
ExclusiveArch:  ppc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        http://www.codex.gr/system/files/libfreevec-%{version}.tar.bz2

%description
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.



Authors:
--------
    Konstantinos Margaritis <markos@codex.gr>

%package -n libfreevec0
License:        LGPL v2.1 or later
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.



Authors:
--------
    Konstantinos Margaritis <markos@codex.gr>

%prep
%setup -q

%build
autoreconf -fi
CFLAGS="$RPM_OPT_FLAGS -U_FORTIFY_SOURCE -O3 -maltivec -funroll-loops -DHAVE_ALTIVEC_H -flax-vector-conversions" \
./configure \
	--prefix=/usr \
	--libdir=%{_libdir}
make

%install
make install DESTDIR=$RPM_BUILD_ROOT pkglibdir=%{_libdir}

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libfreevec0 -p /sbin/ldconfig

%postun -n libfreevec0 -p /sbin/ldconfig

%files
%defattr(-, root, root)
%doc AUTHORS COPYING FAQ README

%files -n libfreevec0
%defattr(-, root, root)
%{_libdir}/lib*

%changelog
* Thu Jan 15 2009 olh@suse.de
- update to version 1.0.4
  fix bugs in memset() and strcpy()
* Thu Sep 25 2008 olh@suse.de
- do not build for ppc64
* Fri May 09 2008 olh@suse.de
- update to version 1.0.3
  Author did not provide a changelog
- split libfreevec0 package
* Fri Oct 12 2007 olh@suse.de
- use uint8_t instead of int8_t in strlen to fix compile with gcc43
* Thu Jun 21 2007 adrian@suse.de
- add ExclusiveArch: ppc ppc64 to avoid build in OBS for wrong
  architectures
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Oct 20 2005 olh@suse.de
- correct filelist pattern for -debug package
* Thu Sep 29 2005 olh@suse.de
- new package libfreevec 0.8
openSUSE Build Service is sponsored by