Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > b867af62cf038be5c90a957cd449c18b > files > 2

fflas-ffpack-1.4.2-1.fc15.src.rpm

# This package is arch-specific, because it computes properties of the system
# (such as endianness) and stores them in generated header files.  Hence, the
# files DO vary by platform.  However, there is no actual compiled code, so
# turn off debuginfo generation.
%global debug_package %{nil}

Name:           fflas-ffpack
Version:        1.4.2
Release:        1%{?dist}
Summary:        Finite field linear algebra subroutines

Group:          Development/Libraries
# %%{_bindir}/fflasffpack-config is CeCILL-B; other files are LGPLv2+
License:        LGPLv2+ and CeCILL-B
URL:            http://linalg.org/projects/fflas-ffpack
Source0:        http://linalg.org/%{name}-%{version}.tar.gz

BuildRequires:  atlas-devel
BuildRequires:  doxygen
BuildRequires:  givaro-devel
BuildRequires:  gmp-devel
BuildRequires:  tex(latex)

# Although there are references to linbox-devel files in this package,
# linbox-devel Requires fflas-ffpack-devel, not the other way around.

%description
The FFLAS-FFPACK library provides functionality for dense linear algebra
over word size prime finite fields.

%package devel
Summary:        Header files for developing with fflas-ffpack
Group:          Development/Libraries
Requires:       atlas-devel%{?_isa}, givaro-devel%{?_isa}, gmp-devel%{?_isa}

%description devel
The FFLAS-FFPACK library provides functionality for dense linear algebra
over word size prime finite fields.  This package provides the header
files for developing applications that use FFLAS-FFPACK.

%package doc
Summary:        API documentation for fflas-ffpack
Group:          Documentation
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}

%description doc
API documentation for fflas-ffpack.

%prep
%setup -q

# Fix character encodings
for f in AUTHORS TODO; do
  iconv -f iso8859-1 -t utf-8 $f > $f.utf8
  touch -r $f $f.utf8
  mv -f $f.utf8 $f
done

# Fix the FSF's address
for f in `grep -FRl 'Temple Place' .`; do
  sed -i.orig \
    's/59 Temple Place, Suite 330, Boston, MA  02111-1307/51 Franklin Street, Suite 500, Boston, MA  02110-1335/' \
    $f
  touch -r $f.orig $f
  rm -f $f.orig
done

%build
%configure --docdir=%{_docdir}/fflas-ffpack-%{version} --disable-static \
  --enable-optimization --enable-doc --with-cblas=%{_libdir}/atlas \
  --with-lapack=%{_libdir}/atlas
make %{?_smp_mflags}

# Don't want these files in with the HTML files
rm -f doc/fflas-ffpack-html/{AUTHORS,COPYING,INSTALL}

# Build the developer documentation, too
cd doc
doxygen DoxyfileDev

%install
make install DESTDIR=$RPM_BUILD_ROOT

# Documentation is installed in the wrong place
rm -fr $RPM_BUILD_ROOT%{_prefix}/docs

%files devel
%doc AUTHORS ChangeLog COPYING README TODO
%{_bindir}/fflas-ffpack-config
%{_includedir}/fflas-ffpack

%files doc
%doc doc/fflas-ffpack.html doc/fflas-ffpack-html doc/fflas-ffpack-dev-html

%changelog
* Mon Aug 29 2011 Jerry James <loganjerry@gmail.com> - 1.4.2-1
- New upstream version
- Tests are hopelessly broken; disable for now

* Thu May 26 2011 Jerry James <loganjerry@gmail.com> - 1.4.1-2
- Issues found on review:
- Fix license tag (fflasffpack-config is CeCILL-B)
- Add -doc subpackage
- More bad FSF addresses

* Tue May 24 2011 Jerry James <loganjerry@gmail.com> - 1.4.1-1
- Initial RPM