53aeb6c
Name: blitz
Sergio Pascual 50c4675
Version: 0.10
81cdaed
Release: 5%{?dist}
53aeb6c
Summary: C++ class library for matrix scientific computing
53aeb6c
53aeb6c
Group: Development/Libraries
Sergio Pascual 59df5e9
License: LGPLv3+ or BSD or Artistic 2.0
Sergio Pascual 59df5e9
Sergio Pascual 59df5e9
Sergio Pascual 50c4675
URL: http://sourceforge.net/projects/blitz
53aeb6c
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Sergio Pascual 59df5e9
# Modifications of the Fedora package are listed here:
Sergio Pascual 59df5e9
# * Arch dependent hader moved to lib/blitz/include
Sergio Pascual 59df5e9
#   https://sourceforge.net/tracker/?func=detail&aid=3534421&group_id=63961&atid=505791
Sergio Pascual 59df5e9
Source1: README.fedora
Sergio Pascual 59df5e9
# Fails to compile with gcc 4.7
Sergio Pascual 59df5e9
# https://sourceforge.net/tracker/?func=detail&atid=505791&aid=3534421&group_id=63961
Sergio Pascual 50c4675
Patch0: blitz-gcc47.patch
53aeb6c
Sergio Pascual 59df5e9
BuildRequires: gcc-gfortran doxygen texinfo graphviz
Sergio Pascual 50c4675
Requires(post): /sbin/install-info /sbin/ldconfig
Sergio Pascual 50c4675
Requires(preun): /sbin/install-info /sbin/ldconfig
53aeb6c
53aeb6c
%description
53aeb6c
Blitz++ is a C++ class library for scientific computing which provides 
53aeb6c
performance on par with Fortran 77/90. It uses template techniques to achieve 
53aeb6c
high performance. Blitz++ provides dense arrays and vectors, random number 
53aeb6c
generators, and small vectors
53aeb6c
53aeb6c
%package devel
53aeb6c
Summary: Libraries, includes, etc. used to develop an application with %{name}
53aeb6c
Group: Development/Libraries
53aeb6c
Requires: %{name} = %{version}-%{release}
53aeb6c
Requires: pkgconfig
53aeb6c
%description devel
Sergio Pascual 50c4675
These are the header files and libraries needed to develop a %{name}
53aeb6c
application
53aeb6c
53aeb6c
%package doc
53aeb6c
Summary: The Blitz html docs
53aeb6c
Group: Documentation
71ef7d3
BuildArch: noarch
71ef7d3
53aeb6c
%description doc
53aeb6c
HTML documentation files for the Blitz Library
53aeb6c
53aeb6c
%prep
53aeb6c
%setup -q
d68b31a
%patch0 -p1
Sergio Pascual 59df5e9
cp %SOURCE1 .
53aeb6c
53aeb6c
%build
Sergio Pascual 50c4675
%configure --enable-shared --disable-static --disable-cxx-flags-preset \
Sergio Pascual 59df5e9
    --enable-64bit --enable-fortran \
Sergio Pascual 50c4675
    --disable-fortran-flags-preset 
Sergio Pascual 50c4675
71ef7d3
make %{?_smp_mflags}
Sergio Pascual 50c4675
make info
Sergio Pascual 50c4675
make html
Sergio Pascual 50c4675
make pdf
Sergio Pascual 50c4675
addbce4
# blitz.pc is created directly by configure
addbce4
# I use sed to add %%libdir/blitz to the include directories of the library
addbce4
# so that different bzconfig.h can be installed for different archs
Sergio Pascual 50c4675
# 
Sergio Pascual 50c4675
# The problem is reported here
Sergio Pascual 50c4675
# https://sourceforge.net/tracker/?func=detail&aid=2273091&group_id=63961&atid=505791
addbce4
%{__sed} -i -e "s/Cflags: -I\${includedir}/Cflags: -I\${includedir} -I\${libdir}\/blitz\/include/" blitz.pc
53aeb6c
53aeb6c
%install
71ef7d3
rm -rf %{buildroot}
71ef7d3
make DESTDIR=%{buildroot} install
Sergio Pascual 50c4675
make DESTDIR=%{buildroot} install-info
Sergio Pascual 50c4675
71ef7d3
mkdir -p %{buildroot}%{_libdir}/blitz/include/blitz
71ef7d3
mv %{buildroot}%{_includedir}/blitz/gnu %{buildroot}%{_libdir}/blitz/include/blitz
Sergio Pascual 50c4675
53aeb6c
# Put in doc only the source code
71ef7d3
rm -rf examples/.deps
71ef7d3
rm -rf examples/Makefile*
53aeb6c
Sergio Pascual 50c4675
%check
Sergio Pascual 50c4675
make %{?_smp_mflags} check-testsuite
53aeb6c
53aeb6c
%post -p /sbin/ldconfig
53aeb6c
53aeb6c
%postun -p /sbin/ldconfig
53aeb6c
53aeb6c
%post devel
53aeb6c
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
53aeb6c
53aeb6c
%preun devel
53aeb6c
if [ $1 = 0 ]; then
53aeb6c
    /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
53aeb6c
fi
53aeb6c
53aeb6c
%files
Sergio Pascual 59df5e9
%doc AUTHORS LEGAL COPYRIGHT COPYING COPYING.LESSER README LICENSE README.fedora
53aeb6c
%{_libdir}/*so.*
53aeb6c
53aeb6c
%files devel
026f05d
%doc examples
53aeb6c
%{_libdir}/*.so
53aeb6c
%{_libdir}/pkgconfig/*
addbce4
%{_libdir}/blitz
53aeb6c
%{_includedir}/*
53aeb6c
%{_infodir}/*
53aeb6c
%exclude %{_libdir}/*.la
4136b8f
%exclude %{_infodir}/dir
53aeb6c
53aeb6c
%files doc
Sergio Pascual 59df5e9
%doc COPYRIGHT COPYING COPYING.LESSER README LICENSE
Sergio Pascual 50c4675
%doc doc/blitz.pdf
Sergio Pascual 50c4675
%doc doc/blitz.html
Sergio Pascual 50c4675
%doc examples
53aeb6c
53aeb6c
%changelog
81cdaed
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-5
81cdaed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
81cdaed
8d3f62b
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-4
8d3f62b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8d3f62b
d6c7142
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-3
d6c7142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d6c7142
Sergio Pascual 59df5e9
* Fri Jul 06 2012 Sergio Pascual <sergiopr at fedoraproject.org> - 0.10-2
Sergio Pascual 59df5e9
- Licensing updated: LGPLv3+ or BSD os Artistic 2.0
Sergio Pascual 59df5e9
Sergio Pascual 50c4675
* Sun Jul 01 2012 Sergio Pascual <sergiopr at fedoraproject.org> - 0.10-1
Sergio Pascual 50c4675
- New upstream source 
Sergio Pascual 50c4675
a62a3ec
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-15
a62a3ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a62a3ec
07bb11a
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-14
07bb11a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
07bb11a
026f05d
* Tue Dec 22 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 0.9-13
026f05d
- Using pregenerated documentation
026f05d
71ef7d3
* Sun Jul 26 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 0.9-12
71ef7d3
- Noarch doc subpackage
71ef7d3
8abeac1
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-11
8abeac1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8abeac1
ad55165
* Thu May  7 2009 Ville Skyttä <ville.skytta at iki.fi> - 0.9-10
ad55165
- Build with $RPM_OPT_FLAGS.
ad55165
- Disable autotools dependency tracking during build for cleaner build logs
ad55165
  and possible slight build speedup.
ad55165
1dec2f0
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-9
1dec2f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
1dec2f0
144fe3b
* Tue Jan 20 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 0.9-8
144fe3b
- New patch (from upstream) to build with gcc4.3 
144fe3b
144fe3b
* Mon Mar 03 2008 Sergio Pascual <spr@astrax.fis.ucm.es> - 0.9-7
d68b31a
- Patch to build with gcc4.3
d68b31a
a6f8563
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9-6
a6f8563
- Autorebuild for GCC 4.3
a6f8563
4136b8f
* Mon Jan 07 2008 Sergio Pascual <spr@astrax.fis.ucm.es> 0.9-5
4136b8f
- Excluding /usr/share/info/dir
4136b8f
addbce4
* Sat Dec 22 2007 Sergio Pascual <sergiopr at fedoraproject.com> 0.9-4
addbce4
- Removed conflicting Makefiles from examples (bug #340751)
addbce4
- Arch dependent gnu/bzconfig.h moved to %%libdir/blitz/include/blitz/gnu
addbce4
addbce4
* Wed Oct 17 2007 Sergio Pascual <spr@astrax.fis.ucm.es> 0.9-3
53aeb6c
- Removed macro in changelog
addbce4
53aeb6c
* Tue Oct 16 2007 Sergio Pascual <spr@astrax.fis.ucm.es> 0.9-2
53aeb6c
- Excluding /usr/share/info/dir
addbce4
53aeb6c
* Wed Oct 03 2007 Sergio Pascual <spr@astrax.fis.ucm.es> 0.9-1
53aeb6c
- Changed wrong date in changelog
53aeb6c
- Changed license to gplv2 (some .h files haven't got the license text)
53aeb6c
- Changed _datadir/info/* to _infodir/%%{name}*
addbce4
53aeb6c
* Thu Oct 02 2007 Sergio Pascual <spr@astrax.fis.ucm.es> 0.9-0.2
53aeb6c
- Adding requires pkgconfig
53aeb6c
- Changed license tag
53aeb6c
- Removing requires(pre,un)
addbce4
53aeb6c
* Thu May 03 2007 Sergio Pascual <spr@astrax.fis.ucm.es> 0.9-0.1
53aeb6c
- Initial RPM file