commit 19cc9fb76889354ec85711ad29963cfb99e8b013
Author: Jakub Bogusz <qbo...@pld-linux.org>
Date:   Thu Apr 25 20:18:42 2024 +0200

    - patch to fix .pc file (there is no hdf5.pc so far); release 2

 matio-hdf5.patch | 11 +++++++++++
 matio.spec       |  8 +++++---
 2 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/matio.spec b/matio.spec
index 5ec5e5a..3d648db 100644
--- a/matio.spec
+++ b/matio.spec
@@ -8,17 +8,18 @@ Summary:      MATIO - Matlab MAT file I/O library
 Summary(pl.UTF-8):     MATIO - biblioteka wejścia/wyjścia do plików MAT 
(Matlaba)
 Name:          matio
 Version:       1.5.27
-Release:       1
+Release:       2
 License:       BSD
 Group:         Libraries
 Source0:       
https://downloads.sourceforge.net/matio/%{name}-%{version}.tar.gz
 # Source0-md5: d9e55f091cbecbe988d4579a51c08776
+Patch0:                %{name}-hdf5.patch
 URL:           https://matio.sourceforge.net/
 BuildRequires: autoconf >= 2.60
 BuildRequires: automake >= 1:1.8
 %{?with_apidocs:BuildRequires: doxygen}
 %{?with_fortran:BuildRequires: gcc-fortran}
-%{?with_hdf5:BuildRequires:    hdf5-devel}
+%{?with_hdf5:BuildRequires:    hdf5-devel >= 1.10}
 BuildRequires: libtool >= 2:2
 BuildRequires: sed >= 4.0
 BuildRequires: zlib-devel
@@ -51,7 +52,7 @@ Summary:      Header files for MATIO library
 Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki MATIO
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
-%{?with_hdf5:Requires: hdf5-devel}
+%{?with_hdf5:Requires: hdf5-devel >= 1.10}
 Requires:      zlib-devel
 
 %description devel
@@ -122,6 +123,7 @@ Dokumentacja API biblioteki MATIO.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
diff --git a/matio-hdf5.patch b/matio-hdf5.patch
new file mode 100644
index 0000000..d462c6d
--- /dev/null
+++ b/matio-hdf5.patch
@@ -0,0 +1,11 @@
+hdf5.pc is not provided so far (as of hdf 1.10.10)
+--- matio-1.5.27/matio.pc.in.orig      2024-04-20 10:09:17.000000000 +0200
++++ matio-1.5.27/matio.pc.in   2024-04-25 20:08:22.906996972 +0200
+@@ -7,5 +7,6 @@ Name: MATIO
+ Description: MATIO Library
+ Version: @VERSION@
+ Libs: -L${libdir} -lmatio
++Libs.private: @HDF5_LIBS@
+ Cflags: -I${includedir}
+-Requires.private: @HDF5_REQUIRES_PRIVATE@ @ZLIB_REQUIRES_PRIVATE@
++Requires.private: @ZLIB_REQUIRES_PRIVATE@
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/matio.git/commitdiff/19cc9fb76889354ec85711ad29963cfb99e8b013

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to