summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Bogusz2024-04-25 18:18:42 (GMT)
committerJakub Bogusz2024-04-25 18:18:42 (GMT)
commit19cc9fb76889354ec85711ad29963cfb99e8b013 (patch)
tree3ed513dc7f7e104b592c64694dcabad96e5ff74b
parenta226f393caf3c0103e9d2cc67458a41920dd53b9 (diff)
downloadmatio-master.zip
matio-master.tar.gz
- patch to fix .pc file (there is no hdf5.pc so far); release 2HEADauto/th/matio-1.5.27-2master
-rw-r--r--matio-hdf5.patch11
-rw-r--r--matio.spec8
2 files changed, 16 insertions, 3 deletions
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@
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}