Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3
matio
matio.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File matio.spec of Package matio
# # spec file for package matio # # Copyright (c) 2012 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.0 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: %{name}-%{version}.tar.gz # PATCH-FIX-UPSTREAM gcc-warnings-fix.patch Patch0: gcc-warnings-fix.patch # PATCH-FIX-UPSTREAM upstream commit 09f5c87438a5883361b38cc98b4848acfcb65d97 Patch1: matvar_struct.patch # PATCH-FIX-UPSTREAM patch from upsream developer. Will hit git repo soon. Patch2: mat4_bigendian.patch 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 %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} %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 %patch0 -p1 %patch1 -p1 %patch2 -p1 %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