Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37534795
en ru br
Репозитории ALT
S:1.5.1-alt1
5.1: 1.3.3-alt1
www.altlinux.org/Changes

Группа :: Разработка/Прочее
Пакет: libmatio

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

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

Group: Development/Other
License: LGPLv2+
Url: http://sourceforge.net/projects/matio
Packager: Vitaly Kuznetsov <vitty at altlinux.ru>

Source: http://downloads.sourceforge.net/matio/matio-%version.tar.gz
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

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

%prep
%setup -q -n matio-%version
#To fix matio.x86_64: W: undefined-non-weak-symbol /usr/lib64/libmatio.so.0.0.0 inflateEnd, etc.
%patch0 -p1 -b .zlibldflag
%patch1 -p1 -b .fortranpath
#sed -i.fortranpath2 -e 's|src/fortran/matio_t.inc|src/matio_t.inc|' configure.ac configure
%patch2 -p1 -b .fortranpath2
%patch3 -p1 -b .automake

#Doxygen

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

#Prevent some files to be missed at -debuginfo extraction

mv src/fortran/* src

%build
export FCFLAGS=$RPM_OPT_FLAGS
%configure \
 --enable-shared \
 --disable-static \
 --enable-fortran \
 --enable-extended-sparse=yes \
 --enable-test=no \
 --enable-docs=yes

# 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

make
#Parallele make fails with
#make[2]: *** No rule to make target `../src/matio.mod', needed by `all-am'.  Stop.
#{?_smp_mflags}
pushd test
 make check
popd

%install
%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/Makefile.am ${f}
done


%files
%doc ChangeLog COPYING NEWS README
%_libdir/*.so.*

%files devel
%doc doxygen/html
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/*.pc

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin