Sisyphus repositório
Última atualização: 17 janeiro 2021 | SRPMs: 17781 | Visitas: 20063868
en ru br
ALT Linux repositórios

Group :: Desenvolvimento/Outros
RPM: libmatio

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: libmatio
Version: 1.5.1
Release: alt1
Summary: Library for reading/writing Matlab MAT files

Group: Development/Other
License: LGPLv2+

Patch: matio-1.3.3-zlibldflag.patch
Patch1: matio-1.3.3-fortranpath.patch
Patch2: matio-1.3.3-fortranpath2.patch
Patch3: matio-1.3.3-automake.patch

BuildRequires: doxygen
BuildRequires: gcc-fortran
#According to the README - zlib 1.2.2 is possible but require a patch
BuildRequires: zlib-devel >= 1.2.3

matio is an open-source library for reading/writing Matlab MAT files.  This
library is designed for use by programs/libraries that do not have access or
do not want to rely on Matlab's libmat shared library.

%package devel
Summary: Development files for %name
Group: Development/Other
Requires: %name = %version-%release
Requires: zlib-devel

%description devel
The %name-devel package contains libraries and header files for
developing applications that use %name.

%setup -q -n matio-%version
#To fix matio.x86_64: W: undefined-non-weak-symbol /usr/lib64/ inflateEnd, etc.
#patch0 -p1 -b .zlibldflag
#patch1 -p1 -b .fortranpath
#patch2 -p1 -b .fortranpath2
#patch3 -p1 -b .automake


#pushd doxygen
#  doxygen -u doxygen.config
 #Fake the pdf creation
#  mkdir -p latex
#  touch latex/refman.pdf

#Prevent some files to be missed at -debuginfo extraction

#mv src/fortran/* src

%configure \
 --enable-shared \
 --disable-static \
 --enable-fortran \
 --enable-extended-sparse=yes \
 --enable-test=no \

# remove rpath from libtool

sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

#Parallele make fails with
#make[2]: *** No rule to make target `../src/matio.mod', needed by `all-am'.  Stop.

%makeinstall_std INSTALL="install -p"
find %buildroot -name '*.la' -exec rm -f {} ';'

#Remove pdf - really needed along with doxygen ?

rm -rf %buildroot%_docdir/matio/libmatio.pdf

#Fix html docs timestramps generation.

#for f in $(find doxygen/html -type f); do
#  touch -r doxygen/ ${f}

export LD_LIBRARY_PATH=%buildroot%_libdir
%make -C test check


%files devel


Todas as alterações você pod ver aqui

projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009