]> git.pld-linux.org Git - packages/vmdkutil.git/commitdiff
- new master auto/th/vmdkutil-1.0.1-1
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 3 Jan 2022 18:50:50 +0000 (19:50 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 3 Jan 2022 18:50:50 +0000 (19:50 +0100)
vmdkutil-includes.patch [new file with mode: 0644]
vmdkutil.spec [new file with mode: 0644]

diff --git a/vmdkutil-includes.patch b/vmdkutil-includes.patch
new file mode 100644 (file)
index 0000000..c3ea689
--- /dev/null
@@ -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\r
+ #endif\r
\r
++#include <cstring>\r
+ #include <iostream>\r
+ #include <string>\r
+ #include <map>\r
+@@ -64,6 +65,7 @@
+ #define OPEN_WFLAGS (O_BINARY | O_RDWR)\r
+ #define OPEN_MODE     (S_IREAD | S_IWRITE)\r
+ #else\r
++#include <unistd.h>\r
+ #define tell(fd)      lseek(fd, 0, SEEK_CUR)\r
+ #define OPEN_FLAGS    (O_LARGEFILE | O_RDWR | O_TRUNC | O_CREAT)\r
+ #define OPEN_RFLAGS   (O_RDONLY)\r
diff --git a/vmdkutil.spec b/vmdkutil.spec
new file mode 100644 (file)
index 0000000..92ae2a0
--- /dev/null
@@ -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
This page took 0.127099 seconds and 4 git commands to generate.