Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Update
matio
matio.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File matio.spec of Package matio
# # spec file for package matio # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # Name: matio %define libname lib%{name} Version: 1.5.2 Release: 0 %define major 2 Summary: Open-source library for reading and writing MATLAB MAT files License: BSD-2-Clause Group: System/Libraries Url: http://sourceforge.net/projects/matio Source0: http://downloads.sourceforge.net/matio/%{name}-%{version}.tar.gz BuildRequires: hdf5-devel >= 1.8 BuildRequires: pkgconfig BuildRequires: zlib-devel >= 1.2.3 BuildRoot: %{_tmppath}/%{name}-%{version}-build %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: Open-source library for reading and writing MATLAB MAT files Group: System/Libraries # 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} Group: Development/Libraries/C and C++ Requires: %{libname}%{major} = %{version} Requires: hdf5-devel Requires: pkgconfig Requires: zlib-devel %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} Group: Productivity/Scientific/Other 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 %setup -q %build %configure \ --enable-shared \ --disable-static \ --enable-mat73=yes \ --enable-extended-sparse=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 %{?_smp_mflags} %install %makeinstall find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print %check export LD_LIBRARY_PATH=%{_buildroot}/%{name}*/src/.libs/ make check %clean rm -rf %{buildroot} %post -n %{libname}%{major} -p /sbin/ldconfig %postun -n %{libname}%{major} -p /sbin/ldconfig %files -n %{libname}%{major} %defattr(-,root,root) %doc COPYING NEWS README %{_libdir}/libmatio.so.%{major}* %files tools %defattr(-,root,root) %{_bindir}/matdump %files -n %{libname}-devel %defattr(-,root,root) %{_includedir}/matio.h %{_includedir}/matio_pubconf.h %{_libdir}/libmatio.so %{_libdir}/pkgconfig/matio.pc %{_mandir}/man3/Mat_*.3.* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor