From 52a3000222b740eed75811a3bbe8713ba2933e45 Mon Sep 17 00:00:00 2001 From: Jing Zhang Date: Wed, 12 Apr 2023 15:34:04 +0800 Subject: [PATCH] Refact spec Signed-off-by: Jing Zhang --- ntfs-3g-system-compression.spec | 54 +++++++++++++++++++-------------- 1 file changed, 31 insertions(+), 23 deletions(-) diff --git a/ntfs-3g-system-compression.spec b/ntfs-3g-system-compression.spec index 6391211..cd338da 100644 --- a/ntfs-3g-system-compression.spec +++ b/ntfs-3g-system-compression.spec @@ -1,45 +1,48 @@ -%define anolis_release 1 +%define anolis_release 2 Name: ntfs-3g-system-compression -Summary: NTFS-3G plugin for reading "system compressed" files Version: 1.0 Release: %{anolis_release}%{?dist} +Summary: NTFS-3G plugin for reading "system compressed" files License: GPLv2+ URL: https://github.com/ebiggers/ntfs-3g-system-compression Source0: https://github.com/ebiggers/ntfs-3g-system-compression/archive/refs/tags/v%{version}.tar.gz + Patch0: 0001-init-for-buildrequire-package-fuse.patch -BuildRequires: make -BuildRequires: gcc -BuildRequires: autoconf -BuildRequires: automake -BuildRequires: libtool -BuildRequires: pkgconfig(libntfs-3g) >= 2017.3.23 -BuildRequires: fuse -BuildRequires: python -BuildRequires: fuse-devel -BuildRequires: fuse-libs -BuildRequires: ntfs-3g +BuildRequires: make gcc autoconf automake libtool pkgconfig(libntfs-3g) >= 2017.3.23 python +BuildRequires: fuse fuse-devel fuse-libs ntfs-3g %description +NTFS-3G is a stable, open source, GPL licensed, POSIX, read/write NTFS +driver for Linux and many other operating systems. + System compression, also known as "Compact OS", is a Windows feature that allows rarely modified files to be compressed using the XPRESS or LZX -compression formats. It is not built directly into NTFS but rather is -implemented using reparse points. This feature appeared in Windows 10 and it -appears that many Windows 10 systems have been using it by default. +compression formats. + +This RPM package includes a plugin for the NTFS-3G FUSE driver. The plugin +allows the driver to read system-compressed files transparently. Currently, +the plugin only supports reading and does not provide compression. However, +users can compress an already existing file using the "compact" utility on +a Windows system. + +%package doc +Summary:Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch -This RPM contains a plugin which enables the NTFS-3G FUSE driver to -transparently read from system-compressed files. Currently, only reading is -supported. Compressing an existing file may be done by using the "compact" -utility on Windows. +%description doc +The %{name}-doc package contains documentation files for %{name}. %prep -%setup -%patch0 -p1 +%autosetup -n %{name}-%{version} -p1 %build autoreconf -i + %configure + %make_build %install @@ -47,11 +50,16 @@ autoreconf -i rm -rf %{buildroot}%{_libdir}/ntfs-3g/*.la %files -%doc README.md %license COPYING %dir %{_libdir}/ntfs-3g/ %{_libdir}/ntfs-3g/ntfs-plugin-80000017.so +%files doc +%doc README.md + %changelog +* Wed Apr 12 2023 Jing Zhang -1.0-2 +- Refact spec + * Wed Apr 20 2022 zhang xianting - 1.0-1 - Initial build for Anolis V23 -- Gitee