[packages/hdf5] - fixed sed syntax - rel 3
baggins
baggins at pld-linux.org
Mon Jun 24 12:23:55 CEST 2013
commit 5aceb0f0cc3754e1ee2afcd3635c7170a561f829
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Jun 24 12:23:42 2013 +0200
- fixed sed syntax
- rel 3
hdf5.spec | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/hdf5.spec b/hdf5.spec
index d68094a..253e360 100644
--- a/hdf5.spec
+++ b/hdf5.spec
@@ -10,7 +10,7 @@ Summary: Hierarchical Data Format 5 library
Summary(pl.UTF-8): Biblioteka HDF5 (Hierarchical Data Format 5)
Name: hdf5
Version: 1.8.10
-Release: 2
+Release: 3
License: Nearly BSD, but changed sources must be marked
Group: Libraries
Source0: ftp://ftp.hdfgroup.org/HDF5/current/src/%{name}-%{version}-patch1.tar.bz2
@@ -216,10 +216,10 @@ install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/hl
EXAMPLEDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/hl/c++
install -d $RPM_BUILD_ROOT%{_datadir}/cmake/hdf5
-vmajor=$(sed -ne 's/^#define H5_VERS_MAJOR\s*\([0-9]\+\).*/\1/' src/H5public.h)
-vminor=$(sed -ne 's/^#define H5_VERS_MINOR\s*\([0-9]\+\).*/\1/' src/H5public.h)
-vrel=$(sed -ne 's/^#define H5_VERS_RELEASE\s*\([0-9]\+\).*/\1/' src/H5public.h)
-vsubr=$(sed -ne 's/^#define H5_VERS_SUBRELEASE\s*\([0-9]\+\).*/\1/' src/H5public.h)
+vmajor=$(sed -ne 's/^#define H5_VERS_MAJOR\s*\([0-9]\+\).*/\1/p' src/H5public.h)
+vminor=$(sed -ne 's/^#define H5_VERS_MINOR\s*\([0-9]\+\).*/\1/p' src/H5public.h)
+vrel=$(sed -ne 's/^#define H5_VERS_RELEASE\s*\([0-9]\+\).*/\1/p' src/H5public.h)
+vsubr=$(sed -ne 's/^#define H5_VERS_SUBRELEASE\s*\([^ \t]\+\).*/\1/p' src/H5public.h)
for f in FindHDF5.cmake hdf5-config-version.cmake hdf5-config.cmake.install hdf5-targets.cmake hdf5-targets-noconfig.cmake ; do
sed -e 's, at HDF5_PACKAGE@,hdf5,' \
-e 's, at HDF_PACKAGE_EXT@,,' \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/hdf5.git/commitdiff/5aceb0f0cc3754e1ee2afcd3635c7170a561f829
More information about the pld-cvs-commit
mailing list