2014-08-27 07:46:22 +02:00
|
|
|
#
|
|
|
|
# spec file for package libvhdi
|
|
|
|
#
|
2024-02-06 13:56:16 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2014-08-27 07:46:22 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-04-18 00:56:57 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-08-27 07:46:22 +02:00
|
|
|
#
|
|
|
|
|
2023-11-27 10:49:07 +01:00
|
|
|
|
2023-08-01 20:43:47 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2014-08-27 07:46:22 +02:00
|
|
|
|
|
|
|
%define lname libvhdi1
|
|
|
|
Name: libvhdi
|
2024-03-03 17:44:19 +01:00
|
|
|
Version: 20240303
|
2014-08-27 07:46:22 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Library and tools to access the VHD image format
|
2021-06-09 12:31:42 +02:00
|
|
|
License: GFDL-1.3-or-later AND LGPL-3.0-or-later
|
2014-08-27 07:46:22 +02:00
|
|
|
Group: Productivity/File utilities
|
2023-11-27 10:49:07 +01:00
|
|
|
URL: https://github.com/libyal/libvhdi
|
2022-10-30 01:40:14 +02:00
|
|
|
Source: https://github.com/libyal/libvhdi/releases/download/%version/libvhdi-alpha-%version.tar.gz
|
|
|
|
Source2: https://github.com/libyal/libvhdi/releases/download/%version/libvhdi-alpha-%version.tar.gz.asc
|
|
|
|
Source3: %name.keyring
|
|
|
|
Source8: Virtual_Hard_Disk_VHD_image_format.pdf
|
2022-01-24 14:46:15 +01:00
|
|
|
BuildRequires: %{python_module devel}
|
2024-02-06 13:56:16 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2021-06-09 12:31:42 +02:00
|
|
|
BuildRequires: c_compiler
|
2014-08-27 07:46:22 +02:00
|
|
|
BuildRequires: pkg-config
|
2022-01-24 14:46:15 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2022-10-30 01:40:14 +02:00
|
|
|
BuildRequires: pkgconfig(libbfio) >= 20221025
|
2024-03-03 17:44:19 +01:00
|
|
|
BuildRequires: pkgconfig(libcdata) >= 20240103
|
|
|
|
BuildRequires: pkgconfig(libcerror) >= 20240101
|
|
|
|
BuildRequires: pkgconfig(libcfile) >= 20240106
|
|
|
|
BuildRequires: pkgconfig(libclocale) >= 20240107
|
|
|
|
BuildRequires: pkgconfig(libcnotify) >= 20240108
|
|
|
|
BuildRequires: pkgconfig(libcpath) >= 20240109
|
|
|
|
BuildRequires: pkgconfig(libcsplit) >= 20240110
|
|
|
|
BuildRequires: pkgconfig(libcthreads) >= 20240102
|
|
|
|
BuildRequires: pkgconfig(libfcache) >= 20240112
|
|
|
|
BuildRequires: pkgconfig(libfdata) >= 20240114
|
|
|
|
BuildRequires: pkgconfig(libfguid) >= 20240116
|
|
|
|
BuildRequires: pkgconfig(libuna) >= 20240130
|
2022-01-24 14:46:15 +01:00
|
|
|
%python_subpackages
|
2022-11-27 11:05:37 +01:00
|
|
|
# Various notes: https://en.opensuse.org/libyal
|
2014-08-27 07:46:22 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Library and tools to access the Virtual Hard Disk (VHD) image format.
|
|
|
|
|
2022-11-27 11:05:37 +01:00
|
|
|
Read-supported formats:
|
|
|
|
|
|
|
|
* VHD version 1
|
2014-08-27 07:46:22 +02:00
|
|
|
|
|
|
|
Supported image types:
|
|
|
|
|
2022-11-27 11:05:37 +01:00
|
|
|
* Fixed-size hard disk image
|
|
|
|
* Dynamic-size (or sparse) hard disk image
|
|
|
|
* Differential (or differencing) hard disk image
|
|
|
|
* Note that an undo disk image (.vud) is also a differential image
|
2014-08-27 07:46:22 +02:00
|
|
|
|
|
|
|
%package -n %{lname}
|
|
|
|
Summary: Library to access the VHD image format
|
2019-04-18 00:56:57 +02:00
|
|
|
License: LGPL-3.0-or-later
|
2014-08-27 07:46:22 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{lname}
|
|
|
|
Library to access the Virtual Hard Disk (VHD) image format.
|
|
|
|
|
2022-11-27 11:05:37 +01:00
|
|
|
Read-supported formats:
|
|
|
|
|
|
|
|
* VHD version 1
|
2014-08-27 07:46:22 +02:00
|
|
|
|
|
|
|
Supported image types:
|
|
|
|
|
2022-11-27 11:05:37 +01:00
|
|
|
* Fixed-size hard disk image
|
|
|
|
* Dynamic-size (or sparse) hard disk image
|
|
|
|
* Differential (or differencing) hard disk image
|
|
|
|
* Note that an undo disk image (.vud) is also a differential image
|
2014-08-27 07:46:22 +02:00
|
|
|
|
|
|
|
%package tools
|
|
|
|
Summary: Tools to access the VHD image format
|
2019-04-18 00:56:57 +02:00
|
|
|
License: LGPL-3.0-or-later
|
2014-08-27 07:46:22 +02:00
|
|
|
Group: Productivity/File utilities
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
Tools to access the Virtual Hard Disk (VHD) image format. See libvhdi for additional details.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for libvhdi, a VHD image format library
|
2021-06-09 12:31:42 +02:00
|
|
|
License: GFDL-1.3-or-later AND LGPL-3.0-or-later
|
2014-08-27 07:46:22 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2023-01-03 17:25:22 +01:00
|
|
|
Requires: %lname = %version
|
|
|
|
Requires: libbfio-devel
|
2014-08-27 07:46:22 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
libvhdi is a library to access the Virtual Hard Disk (VHD) image format. see libvhdi for details.
|
|
|
|
|
|
|
|
This subpackage contains libraries and header files for developing
|
|
|
|
applications that want to make use of libvhdi.
|
|
|
|
|
|
|
|
%prep
|
2021-06-09 12:31:42 +02:00
|
|
|
%autosetup -p1
|
2022-01-24 14:46:15 +01:00
|
|
|
cp %_sourcedir/*.pdf .
|
2014-08-27 07:46:22 +02:00
|
|
|
|
|
|
|
%build
|
2022-01-24 14:46:15 +01:00
|
|
|
%{python_expand #
|
2022-08-09 09:34:48 +02:00
|
|
|
echo "V_%version { global: *; };" >v.sym
|
2022-01-24 14:46:15 +01:00
|
|
|
%configure --disable-static --enable-wide-character-type \
|
2022-08-09 09:34:48 +02:00
|
|
|
--enable-python PYTHON_VERSION="%{$python_bin_suffix}" \
|
|
|
|
LDFLAGS="-Wl,--version-script=$PWD/v.sym"
|
2022-11-27 11:05:37 +01:00
|
|
|
grep ' '' ''local' config.log && exit 1
|
2021-06-09 12:31:42 +02:00
|
|
|
%make_build
|
2022-01-24 14:46:15 +01:00
|
|
|
%make_install DESTDIR="%_builddir/rt"
|
|
|
|
%make_build clean
|
|
|
|
}
|
2014-08-27 07:46:22 +02:00
|
|
|
|
|
|
|
%install
|
2022-01-24 14:46:15 +01:00
|
|
|
mv %_builddir/rt/* %buildroot/
|
2014-08-27 07:46:22 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{lname}
|
2021-06-09 12:31:42 +02:00
|
|
|
%license COPYING*
|
2014-08-27 07:46:22 +02:00
|
|
|
%{_libdir}/libvhdi.so.*
|
|
|
|
|
2022-01-24 14:46:15 +01:00
|
|
|
%files -n %name-tools
|
2021-06-09 12:31:42 +02:00
|
|
|
%license COPYING*
|
2014-08-27 07:46:22 +02:00
|
|
|
%{_bindir}/vhdi*
|
|
|
|
%{_mandir}/man1/vhdi*.1*
|
|
|
|
|
2022-01-24 14:46:15 +01:00
|
|
|
%files -n %name-devel
|
2021-06-09 12:31:42 +02:00
|
|
|
%license COPYING*
|
2014-08-27 07:46:22 +02:00
|
|
|
%doc Virtual_Hard_Disk_*
|
|
|
|
%{_includedir}/libvhdi.h
|
|
|
|
%{_includedir}/libvhdi/
|
|
|
|
%{_libdir}/libvhdi.so
|
|
|
|
%{_libdir}/pkgconfig/libvhdi.pc
|
|
|
|
%{_mandir}/man3/libvhdi.3*
|
|
|
|
|
2022-01-24 14:46:15 +01:00
|
|
|
%files %python_files
|
2021-06-09 12:31:42 +02:00
|
|
|
%license COPYING*
|
2022-01-24 14:46:15 +01:00
|
|
|
%python_sitearch/pyvhdi.so
|
2016-07-28 23:04:08 +02:00
|
|
|
|
2014-08-27 07:46:22 +02:00
|
|
|
%changelog
|