From addbce48ac581683afab5f5bda5d9656acfb4234 Mon Sep 17 00:00:00 2001 From: Sergio Pascual Date: Jan 04 2008 14:50:50 +0000 Subject: - Removed conflicting Makefiles from examples (bug #340751) - Arch dependent gnu/bzconfig.h moved to %libdir/blitz/include/blitz/gnu --- diff --git a/blitz.spec b/blitz.spec index 6b171d3..3fb2eef 100644 --- a/blitz.spec +++ b/blitz.spec @@ -1,6 +1,6 @@ Name: blitz Version: 0.9 -Release: 3%{?dist} +Release: 4%{?dist} Summary: C++ class library for matrix scientific computing Group: Development/Libraries @@ -41,15 +41,22 @@ HTML documentation files for the Blitz Library %build %configure --enable-shared --disable-static --disable-fortran %{__make} %{?_smp_mflags} +# blitz.pc is created directly by configure +# I use sed to add %%libdir/blitz to the include directories of the library +# so that different bzconfig.h can be installed for different archs +%{__sed} -i -e "s/Cflags: -I\${includedir}/Cflags: -I\${includedir} -I\${libdir}\/blitz\/include/" blitz.pc %install %{__rm} -fr %{buildroot} %{__make} DESTDIR=%{buildroot} install +%{__mkdir_p} %{buildroot}%{_libdir}/blitz/include/blitz +%{__mv} %{buildroot}%{_includedir}/blitz/gnu %{buildroot}%{_libdir}/blitz/include/blitz %{__rm} -rf doc/doxygen/html/installdox # There are some empty files in doc, remove before copying in doc (find -empty | xargs rm) # Put in doc only the source code %{__rm} -rf examples/.deps +%{__rm} -rf examples/Makefile* %check %{__make} %{?_smp_mflags} check-testsuite @@ -80,10 +87,11 @@ fi %doc AUTHORS LEGAL COPYING README LICENSE examples %{_libdir}/*.so %{_libdir}/pkgconfig/* +%{_libdir}/blitz %{_includedir}/* %{_infodir}/* %exclude %{_libdir}/*.la -%exclude %{_infodir}/dir +#%exclude %{_infodir}/dir %exclude %{_libdir}/pkgconfig/blitz-uninstalled.pc %files doc @@ -93,17 +101,25 @@ fi %changelog -* Wed Oct 17 2007 Sergio Pascual 0.9-3 +* Sat Dec 22 2007 Sergio Pascual 0.9-4 +- Removed conflicting Makefiles from examples (bug #340751) +- Arch dependent gnu/bzconfig.h moved to %%libdir/blitz/include/blitz/gnu + +* Wed Oct 17 2007 Sergio Pascual 0.9-3 - Removed macro in changelog + * Tue Oct 16 2007 Sergio Pascual 0.9-2 - Excluding /usr/share/info/dir + * Wed Oct 03 2007 Sergio Pascual 0.9-1 - Changed wrong date in changelog - Changed license to gplv2 (some .h files haven't got the license text) - Changed _datadir/info/* to _infodir/%%{name}* + * Thu Oct 02 2007 Sergio Pascual 0.9-0.2 - Adding requires pkgconfig - Changed license tag - Removing requires(pre,un) + * Thu May 03 2007 Sergio Pascual 0.9-0.1 - Initial RPM file