[packages/vmdkutil] - new

qboosh qboosh at pld-linux.org
Mon Jan 3 19:50:07 CET 2022


commit dd628016449ebcc0f71ddb2f83af51425e3c9840
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Jan 3 19:50:50 2022 +0100

    - new

 vmdkutil-includes.patch | 18 ++++++++++++++++++
 vmdkutil.spec           | 40 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+)
---
diff --git a/vmdkutil.spec b/vmdkutil.spec
new file mode 100644
index 0000000..92ae2a0
--- /dev/null
+++ b/vmdkutil.spec
@@ -0,0 +1,40 @@
+Summary:	VMware VMDK Sparse Disk Utility
+Summary(pl.UTF-8):	Narzędzie do rzadkich dysków VMware VMDK
+Name:		vmdkutil
+Version:	1.0.1
+Release:	1
+License:	BSD
+Group:		Applications/File
+Source0:	https://downloads.sourceforge.net/vmdkutil/%{name}-%{version}.cpp
+# Source0-md5:	5e39d11395756e3843dded6d9635f3f5
+Patch0:		%{name}-includes.patch
+URL:		https://sourceforge.net/projects/vmdkutil/
+BuildRequires:	libstdc++-devel >= 6:4
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+VMware VMDK Sparse Disk Utility.
+
+%description -l pl.UTF-8
+Narzędzie do rzadkich dysków VMware VMDK.
+
+%prep
+%setup -q -c -T
+
+cp -p %{SOURCE0} vmdkutil.cpp
+%patch0 -p1
+
+%build
+%{__cxx} %{rpmldflags} %{rpmcxxflags} %{rpmcppflags} -o vmdkutil vmdkutil.cpp
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -D vmdkutil $RPM_BUILD_ROOT%{_bindir}/vmdkutil
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/vmdkutil
diff --git a/vmdkutil-includes.patch b/vmdkutil-includes.patch
new file mode 100644
index 0000000..c3ea689
--- /dev/null
+++ b/vmdkutil-includes.patch
@@ -0,0 +1,18 @@
+--- vmdkutil-1.0.1/vmdkutil.cpp.orig	2007-10-16 10:18:10.000000000 +0200
++++ vmdkutil-1.0.1/vmdkutil.cpp	2022-01-03 06:13:46.342699412 +0100
+@@ -45,6 +45,7 @@
+ #define _FILE_OFFSET_BITS	64
+ #endif
+ 
++#include <cstring>
+ #include <iostream>
+ #include <string>
+ #include <map>
+@@ -64,6 +65,7 @@
+ #define OPEN_WFLAGS (O_BINARY | O_RDWR)
+ #define OPEN_MODE	(S_IREAD | S_IWRITE)
+ #else
++#include <unistd.h>
+ #define tell(fd)	lseek(fd, 0, SEEK_CUR)
+ #define OPEN_FLAGS	(O_LARGEFILE | O_RDWR | O_TRUNC | O_CREAT)
+ #define OPEN_RFLAGS	(O_RDONLY)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vmdkutil.git/commitdiff/dd628016449ebcc0f71ddb2f83af51425e3c9840



More information about the pld-cvs-commit mailing list