(boo#1239678, CVE-2025-2337) (boo#1239677, CVE-2025-2338) OBS-URL: https://build.opensuse.org/package/show/science/matio?expand=0&rev=62
111 lines
3.3 KiB
RPMSpec
111 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package matio
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@gmx.de>
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define libname lib%{name}
|
|
%define major 13
|
|
Name: matio
|
|
Version: 1.5.29
|
|
Release: 0
|
|
Summary: Library for reading and writing MATLAB MAT files
|
|
License: BSD-2-Clause
|
|
URL: https://sourceforge.net/projects/matio/
|
|
Source0: https://downloads.sourceforge.net/matio/%{name}-%{version}.tar.gz
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(zlib) >= 1.2.3
|
|
|
|
%description
|
|
matio is an open-source library for reading and 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 shared library.
|
|
|
|
%package -n %{libname}%{major}
|
|
Summary: Library for reading and writing MATLAB MAT files
|
|
# Avoid unresolvable errors from multiple providers
|
|
Requires: libhdf5
|
|
|
|
%description -n %{libname}%{major}
|
|
matio is an open-source library for reading and 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 shared library.
|
|
|
|
%package -n %{libname}-devel
|
|
Summary: Development files for %{name}
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(zlib) >= 1.2.3
|
|
Requires: %{libname}%{major} = %{version}
|
|
Requires: hdf5-devel
|
|
Requires: pkgconfig
|
|
|
|
%description -n %{libname}-devel
|
|
matio is an open-source library for reading and 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 shared library.
|
|
|
|
%package tools
|
|
Summary: Command line tools for %{name}
|
|
Requires: %{libname}%{major} = %{version}
|
|
# Avoid unresolvable errors from multiple providers
|
|
Requires: libhdf5
|
|
|
|
%description tools
|
|
matio is an open-source library for reading and 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 shared library.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%configure \
|
|
--enable-shared \
|
|
--disable-static \
|
|
--enable-mat73=yes \
|
|
--enable-extended-sparse=yes \
|
|
%{nil}
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%check
|
|
export LD_LIBRARY_PATH=%{_buildroot}/%{libdir}
|
|
%make_build check
|
|
|
|
%ldconfig_scriptlets -n %{libname}%{major}
|
|
|
|
%files -n %{libname}%{major}
|
|
%license COPYING
|
|
%doc NEWS README
|
|
%{_libdir}/libmatio.so.%{major}{,.*}
|
|
|
|
%files tools
|
|
%license COPYING
|
|
%{_bindir}/matdump
|
|
|
|
%files -n %{libname}-devel
|
|
%license COPYING
|
|
%{_includedir}/matio.h
|
|
%{_includedir}/matio_pubconf.h
|
|
%{_libdir}/libmatio.so
|
|
%{_libdir}/pkgconfig/matio.pc
|
|
%{_mandir}/man3/Mat_*.3%{?ext_man}
|
|
|
|
%changelog
|