[main] Third batch of migrations to enable `libguestfs`. (#2654)

This commit is contained in:
Pawel Winogrodzki 2022-04-05 17:42:27 -07:00 коммит произвёл GitHub
Родитель 3c49f0c44e
Коммит cb1fe832cb
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
61 изменённых файлов: 341 добавлений и 582 удалений

Просмотреть файл

@ -1,65 +0,0 @@
.TH "ZEROFREE" "8"
.SH "NAME"
zerofree \(em zero free blocks from ext2/3 file-systems
.SH "SYNOPSIS"
.PP
\fBzerofree\fR [\fB-n\fP] [\fB-v\fP] \fIfilesystem\fR
.SH "DESCRIPTION"
.PP
\fBzerofree\fR finds the unallocated,
non-zeroed blocks in an ext2 or ext3
\fIfilesystem\fR (e.g. /dev/hda1) and
fills them with zeroes. This is useful if the device on which
this file-system resides is a disk image. In this case,
depending on the type of disk image, a secondary utility may be
able to reduce the size of the disk image after zerofree has
been run.
.PP
The usual way to achieve the same result (zeroing the
unallocated blocks) is to run \fBdd\fR (1) to
create a file full of zeroes that takes up the entire free
space on the drive, and then delete this file. This has many
disadvantages, which zerofree alleviates:
.IP " \(bu" 6
it is slow;
.IP " \(bu" 6
it makes the disk image (temporarily) grow to its maximal
extent;
.IP " \(bu" 6
it (temporarily) uses all free space on the disk, so other
concurrent write actions may fail.
.PP
\fIfilesystem\fR has to be unmounted or
mounted read-only for \fBzerofree\fR to work. It
will exit with an error message if the
\fIfilesystem\fR is mounted writable. To
remount the root file-system readonly, you can first switch to
single user runlevel (\fBtelinit 1\fR) then use
\fBmount \-o remount,ro
\fIfilesystem\fR\fR.
.PP
\fBzerofree\fR has been written to be
run from GNU/Linux systems installed as guest OSes inside a
virtual machine. It may however be useful in other
situations.
.SH "OPTIONS"
.IP "\fB-n\fP " 10
Perform a dry run (do not modify the file-system);
.IP "\fB-v\fP " 10
Be verbose.
.SH "SEE ALSO"
.PP
dd (1).
.SH "AUTHOR"
.PP
This manual page was written by Thibaut Paumard <paumard@users.sourceforge.net> for
the \fBDebian\fP system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under
the terms of the GNU General Public License, Version 2 or any
later version published by the Free Software Foundation.
.PP
On Debian systems, the complete text of the GNU General Public
License can be found in /usr/share/common-licenses/GPL-2.
.\" created by instant / docbook-to-man, Wed 25 Nov 2009, 17:45

Просмотреть файл

@ -1,163 +0,0 @@
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
<!-- Process this file with docbook-to-man to generate an nroff manual
page: `docbook-to-man manpage.sgml > manpage.1'. You may view
the manual page with: `docbook-to-man manpage.sgml | nroff -man |
less'.
-->
<!ENTITY dhfirstname "<firstname>Thibaut</firstname>">
<!ENTITY dhsurname "<surname>Paumard</surname>">
<!-- Please adjust the date whenever revising the manpage. -->
<!ENTITY dhdate "<date>February 6, 2008</date>">
<!ENTITY dhsection "<manvolnum>8</manvolnum>">
<!ENTITY dhemail "<email>&lt;paumard@users.sourceforge.net&gt;</email>">
<!ENTITY dhusername "Thibaut Paumard">
<!ENTITY dhucpackage "<refentrytitle>ZEROFREE</refentrytitle>">
<!ENTITY dhpackage "zerofree">
<!ENTITY debian "<productname>Debian</productname>">
<!ENTITY gnu "<acronym>GNU</acronym>">
<!ENTITY gpl "&gnu; <acronym>GPL</acronym>">
]>
<refentry>
<refentryinfo>
<address>
&dhemail;
</address>
<author>
&dhfirstname;
&dhsurname;
</author>
<copyright>
<year>2003</year>
<holder>&dhusername;</holder>
</copyright>
&dhdate;
</refentryinfo>
<refmeta>
&dhucpackage;
&dhsection;
</refmeta>
<refnamediv>
<refname>&dhpackage;</refname>
<refpurpose>zero free blocks from ext2/3 file-systems</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>&dhpackage;</command>
<arg><option>-n</option></arg>
<arg><option>-v</option></arg>
<arg choice=req><replaceable>filesystem</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1>
<title>DESCRIPTION</title>
<para><command>&dhpackage;</command> finds the unallocated,
non-zeroed blocks in an ext2 or ext3
<replaceable>filesystem</replaceable> (e.g. /dev/hda1) and
fills them with zeroes. This is useful if the device on which
this file-system resides is a disk image. In this case,
depending on the type of disk image, a secondary utility may be
able to reduce the size of the disk image after zerofree has
been run.</para>
<para>The usual way to achieve the same result (zeroing the
unallocated blocks) is to run <command>dd</command> (1) to
create a file full of zeroes that takes up the entire free
space on the drive, and then delete this file. This has many
disadvantages, which zerofree alleviates:</para>
<itemizedlist>
<listitem><para>it is slow;</para></listitem>
<listitem><para>it makes the disk image (temporarily) grow to its maximal
extent;</para></listitem>
<listitem><para>it (temporarily) uses all free space on the disk, so other
concurrent write actions may fail.</para></listitem>
</itemizedlist>
<para><replaceable>filesystem</replaceable> has to be unmounted or
mounted read-only for <command>&dhpackage;</command> to work. It
will exit with an error message if the
<replaceable>filesystem</replaceable> is mounted writable. To
remount the root file-system readonly, you can first switch to
single user runlevel (<command>telinit 1</command>) then use
<command>mount -o remount,ro
<replaceable>filesystem</replaceable></command>.</para>
<para><command>&dhpackage;</command> has been written to be
run from GNU/Linux systems installed as guest OSes inside a
virtual machine. It may however be useful in other
situations.</para>
</refsect1>
<refsect1>
<title>OPTIONS</title>
<variablelist>
<varlistentry>
<term><option>-n</option>
</term>
<listitem>
<para>Perform a dry run (do not modify the file-system);</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-v</option>
</term>
<listitem>
<para>Be verbose.</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>SEE ALSO</title>
<para>dd (1).</para>
</refsect1>
<refsect1>
<title>AUTHOR</title>
<para>This manual page was written by &dhusername; &dhemail; for
the &debian; system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under
the terms of the &gnu; General Public License, Version 2 or any
later version published by the Free Software Foundation.
</para>
<para>
On Debian systems, the complete text of the GNU General Public
License can be found in /usr/share/common-licenses/GPL-2.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:2
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:nil
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
-->

Просмотреть файл

@ -1,48 +1,38 @@
Vendor: Microsoft Corporation
Distribution: Mariner
Summary: Library to support the Advanced Forensic Format
Name: afflib
Version: 3.7.19
Release: 5%{?dist}
Summary: Library to support the Advanced Forensic Format
License: BSD with advertising
Release: 6%{?dist}
License: BSD WITH advertising AND Public Domain
Vendor: Microsoft Corporation
Distribution: Mariner
URL: https://github.com/sshock/AFFLIBv3
Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: curl-devel
BuildRequires: expat-devel
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: make
# GPLv2 FOSS incompatible with BSD with advertising
##BuildRequires: fuse-devel
BuildRequires: ncurses-devel
BuildRequires: openssl-devel
# GPLv2 FOSS incompatible with BSD with advertising
##BuildRequires: readline-devel
#BuildRequires: libedit-devel - good replacement for readline - not supported for now
BuildRequires: zlib-devel
BuildRequires: make
BuildRequires: python3
BuildRequires: python3-Cython
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-Cython
BuildRequires: zlib-devel
# Afflib format uses lzma-SDK 443
Provides: bundled(lzma) = 443
Provides: bundled(lzma) = 443
%description
AFF® is an open and extensible file format designed to store disk images and
associated metadata.
afflib is library for support of the Advanced Forensic Format (AFF).
%package -n afftools
Summary: Utilities for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description -n afftools
@ -50,34 +40,27 @@ The %{name}-utils package contains utilities for using %{name}.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: openssl-devel
Requires: pkgconfig
Requires: pkg-config
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package -n python%{python3_pkgversion}-pyaff
%{?python_provide:%python_provide python%{python3_pkgversion}-pyaff}
Summary: Python3 binding for the AFFLIB
Group: Development/Libraries
%{?python_provide:%python_provide python%{python3_pkgversion}-pyaff}
%description -n python%{python3_pkgversion}-pyaff
Python3 bindings for AFFLIB.
These bindings currently support a read-only file-like interface to AFFLIB and
basic metadata accessor functions. The binding is not currently complete.
%prep
%autosetup -p1 -n AFFLIBv3-%{version}
# prevent internal lzma to be built - testing
#rm -rf lzma443
#fix spurious permissions with lzma443
find lzma443 -type f -exec chmod 0644 {} ';'
@ -106,18 +89,15 @@ cd pyaff
%global py_setup_args build_ext --include-dirs %{_builddir}/AFFLIBv3-%{version}/include --library-dirs %{_builddir}/AFFLIBv3-%{version}/lib/.libs
%py3_build
%install
%make_install
find %{buildroot} -name '*.la' -exec rm -f {} ';'
find %{buildroot} -type f -name "*.la" -delete -print
cd pyaff
%py3_install
%ldconfig_scriptlets
%files
%doc AUTHORS BUGLIST.txt ChangeLog NEWS README
%doc doc/announce_2.2.txt
@ -141,6 +121,9 @@ cd pyaff
%{python3_sitearch}/pyaff*
%changelog
* Fri Apr 01 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 3.7.19-6
- Cleaning-up spec. License verified.
* Mon Aug 09 2021 Thomas Crain <thcrain@microsoft.com> - 3.7.19-5
- Initial CBL-Mariner import from Fedora 35 (license: MIT).
- Remove Python 2 support
@ -442,4 +425,3 @@ cd pyaff
* Fri Nov 2 2007 kwizart < kwizart at gmail.com > - 2.4.0-1
- Initial package for Fedora

Просмотреть файл

@ -1,27 +1,30 @@
Name: execstack
Version: 0.5.0
Release: 19%{?dist}
Summary: Utility to set/clear/query executable stack bit
%global commit 4c79120bcdbde0616f592458ccde7035e92ca3d8
%global shortcommit %(c=%{commit}; echo ${c:0:7})
License: GPLv2+
Summary: Utility to set/clear/query executable stack bit
Name: execstack
Version: 0.5.0
Release: 20%{?dist}
License: GPLv2+
Vendor: Microsoft Corporation
Distribution: Mariner
# work around for missing upstream tarball with latest checkin
Url: https://github.com/keszybz/prelink
Source0: https://github.com/keszybz/prelink/archive/%{commit}.tar.gz#/prelink-%{shortcommit}.tar.gz
URL: https://github.com/keszybz/prelink
Source0: https://github.com/keszybz/prelink/archive/%{commit}.tar.gz#/prelink-%{shortcommit}.tar.gz
Patch0: Add-PL_ARCH-for-AArch64.patch
BuildRequires: elfutils-libelf-devel
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: git
BuildRequires: libselinux-devel
BuildRequires: libselinux-utils
Patch0: Add-PL_ARCH-for-AArch64.patch
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: elfutils-libelf-devel
BuildRequires: libselinux-devel, libselinux-utils
BuildRequires: git
Requires: glibc >= 2.2.4-18, coreutils, findutils
Requires: util-linux, gawk, grep
Obsoletes: prelink < 0.5.0-8
Requires: coreutils
Requires: findutils
Requires: gawk
Requires: glibc >= 2.2.4-18
Requires: grep
Requires: util-linux
%description
This package is built from prelink sources but contains just the
@ -58,6 +61,9 @@ install -Dm0644 doc/execstack.8 %{buildroot}%{_mandir}/man8/execstack.8
%{_mandir}/man8/execstack.8.*
%changelog
* Fri Apr 01 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.5.0-20
- Cleaning-up spec. License verified.
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.5.0-19
- Initial CBL-Mariner import from Fedora 32 (license: MIT).

Просмотреть файл

@ -1,5 +1,3 @@
Vendor: Microsoft Corporation
Distribution: Mariner
###############################################################################
###############################################################################
##
@ -11,30 +9,32 @@ Distribution: Mariner
##
###############################################################################
###############################################################################
Summary: Utilities for managing the global file system (GFS2)
Name: gfs2-utils
Version: 3.2.0
Release: 9%{?dist}
License: GPLv2+ AND LGPLv2+
Vendor: Microsoft Corporation
Distribution: Mariner
URL: https://pagure.io/gfs2-utils
Source: https://releases.pagure.org/gfs2-utils/gfs2-utils-%{version}.tar.gz
Patch0: 0-Fix_libuuid_linking.patch
Patch1: 1-Fix_more_linking_errors.patch
Name: gfs2-utils
Version: 3.2.0
Release: 8%{?dist}
License: GPLv2+ and LGPLv2+
Summary: Utilities for managing the global file system (GFS2)
%ifnarch %{arm}
%{?fedora:Recommends: kmod(gfs2.ko) kmod(dlm.ko)}
%endif
BuildRequires: ncurses-devel
BuildRequires: kernel-headers
BuildRequires: automake
BuildRequires: libtool
BuildRequires: zlib-devel
BuildRequires: gettext-devel
BuildRequires: bison
BuildRequires: flex
BuildRequires: libblkid-devel
BuildRequires: libuuid-devel
BuildRequires: check-devel
Source: https://releases.pagure.org/gfs2-utils/gfs2-utils-%{version}.tar.gz
URL: https://pagure.io/gfs2-utils
Patch0: 0-Fix_libuuid_linking.patch
Patch1: 1-Fix_more_linking_errors.patch
BuildRequires: automake
BuildRequires: bison
BuildRequires: check-devel
BuildRequires: flex
BuildRequires: gettext-devel
BuildRequires: kernel-headers
BuildRequires: libblkid-devel
BuildRequires: libtool
BuildRequires: libuuid-devel
BuildRequires: ncurses-devel
BuildRequires: zlib-devel
Recommends: kmod(dlm.ko)
Recommends: kmod(gfs2.ko)
%prep
%autosetup -p1
@ -50,8 +50,8 @@ make check || { cat tests/testsuite.log; exit 1; }
%install
make -C gfs2 install DESTDIR=%{buildroot}
# Don't ship gfs2_{trace,lockcapture} in this package
rm -f %{buildroot}/usr/sbin/gfs2_trace
rm -f %{buildroot}/usr/sbin/gfs2_lockcapture
rm -f %{buildroot}%{_sbindir}/gfs2_trace
rm -f %{buildroot}%{_sbindir}/gfs2_lockcapture
rm -f %{buildroot}%{_mandir}/man8/gfs2_trace.8
rm -f %{buildroot}%{_mandir}/man8/gfs2_lockcapture.8
@ -60,8 +60,8 @@ The gfs2-utils package contains a number of utilities for creating, checking,
modifying, and correcting inconsistencies in GFS2 file systems.
%files
%doc doc/COPYING.* doc/COPYRIGHT doc/*.txt
%doc doc/README.contributing doc/README.licence
%license doc/COPYING.* doc/README.licence doc/COPYRIGHT
%doc doc/README.contributing doc/*.txt
%{_sbindir}/fsck.gfs2
%{_sbindir}/gfs2_grow
%{_sbindir}/gfs2_jadd
@ -74,9 +74,12 @@ modifying, and correcting inconsistencies in GFS2 file systems.
%{_mandir}/man8/*gfs2*
%{_mandir}/man8/glocktop*
%{_mandir}/man5/*
%{_prefix}/lib/udev/rules.d/82-gfs2-withdraw.rules
%{_libdir}/udev/rules.d/82-gfs2-withdraw.rules
%changelog
* Fri Apr 01 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 3.2.0-9
- Cleaning-up spec. License verified.
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 3.2.0-8
- Initial CBL-Mariner import from Fedora 32 (license: MIT).

Просмотреть файл

@ -1,20 +1,18 @@
Summary: A hexadecimal file viewer and editor
Name: hexedit
Version: 1.2.13
Release: 19%{?dist}
License: GPLv2+
Vendor: Microsoft Corporation
Distribution: Mariner
Summary: A hexadecimal file viewer and editor
Name: hexedit
Version: 1.2.13
Release: 18%{?dist}
License: GPLv2+
URL: http://rigaux.org/hexedit.html
Source: http://rigaux.org/%{name}-%{version}.src.tgz
Patch1: hexedit-1.2.13-config.patch
URL: http://rigaux.org/hexedit.html
Source: http://rigaux.org/%{name}-%{version}.src.tgz
Patch1: hexedit-1.2.13-config.patch
# Document --color option. Sent upstream 2013-04-05.
Patch2: hexedit-man-page-color.patch
Patch2: hexedit-man-page-color.patch
BuildRequires: ncurses-devel
BuildRequires: gcc
BuildRequires: gcc
BuildRequires: ncurses-devel
%description
Hexedit shows a file both in ASCII and in hexadecimal. The file can be a device
@ -33,16 +31,20 @@ make %{_smp_mflags}
%install
make install \
mandir=$RPM_BUILD_ROOT%{_mandir} \
bindir=$RPM_BUILD_ROOT%{_bindir} \
mandir=%{buildroot}%{_mandir} \
bindir=%{buildroot}%{_bindir} \
INSTALL='install -p'
%files
%doc hexedit-%{version}.lsm COPYING Changes
%license COPYING
%doc hexedit-%{version}.lsm Changes
%{_bindir}/hexedit
%{_mandir}/man1/hexedit.1*
%changelog
* Fri Apr 01 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.2.13-19
- Cleaning-up spec. License verified.
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.2.13-18
- Initial CBL-Mariner import from Fedora 32 (license: MIT).

Просмотреть файл

@ -1,35 +1,31 @@
Vendor: Microsoft Corporation
Distribution: Mariner
Summary: Library for the Expert Witness Compression Format (EWF)
Name: libewf
Version: 20140608
Release: 21%{?dist}
Summary: Library for the Expert Witness Compression Format (EWF)
Release: 22%{?dist}
License: LGPLv3
Vendor: Microsoft Corporation
Distribution: Mariner
URL: https://github.com/libyal/libewf
Source0: https://github.com/libyal/legacy/raw/main/%{name}/%{name}-%{version}.tar.gz
License: LGPLv3+
URL: http://sourceforge.net/projects/libewf/
Source0: https://53efc0a7187d0baa489ee347026b8278fe4020f6.googledrive.com/host/0B3fBvzttpiiSMTdoaVExWWNsRjg/%{name}-%{version}.tar.gz
BuildRequires: make
BuildRequires: gcc-c++
BuildRequires: fuse-devel
BuildRequires: gcc-c++
BuildRequires: libuuid-devel
BuildRequires: make
BuildRequires: openssl-devel
BuildRequires: zlib-devel
%description
Libewf is a library for support of the Expert Witness Compression Format (EWF),
it support both the SMART format (EWF-S01) and the EnCase format (EWF-E01).
it support both the SMART format (EWF-S01) and the EnCase format (EWF-E01).
Libewf allows you to read and write media information within the EWF files.
%package -n ewftools
Summary: Utilities for the Expert Witness Compression Format (EWF)
Requires: %{name}%{?_isa} = %{version}-%{release}
Provides: %{name}-tools = %{version}-%{release}
Obsoletes: %{name}-tools <= %{version}-%{release}
%description -n ewftools
Several tools for reading and writing EWF files.
@ -37,19 +33,18 @@ It contains tools to acquire, verify and export EWF files.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: pkg-config
Requires: zlib-devel
Requires: pkgconfig
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q
%build
# FIXME: Package suffers from c11/inline issues
# Workaround by appending -std=gnu89 to CFLAGS
@ -57,10 +52,10 @@ developing applications that use %{name}.
%configure --disable-static \
--enable-wide-character-type \
%if "%{version}" <= "20140608"
CFLAGS="${RPM_OPT_FLAGS} -std=gnu89"
CFLAGS="%{optflags} -std=gnu89"
%endif
# Remove rpath from libtool
# Remove rpath from libtool
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
@ -69,16 +64,12 @@ sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
%make_build
%install
%make_install
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
find %{buildroot} -type f -name "*.la" -delete -print
%ldconfig_scriptlets
%files
%doc AUTHORS NEWS
%license COPYING
@ -96,6 +87,9 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%{_mandir}/man3/*.gz
%changelog
* Fri Apr 01 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 20140608-22
- Cleaning-up spec. License verified.
* Mon Aug 09 2021 Thomas Crain <thcrain@microsoft.com> - 20140608-21
- Initial CBL-Mariner import from Fedora 35 (license: MIT).
- Remove Python 2 support
@ -249,4 +243,3 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
* Fri Nov 2 2007 kwizart < kwizart at gmail.com > - 0-1.20070512
- Initial package for Fedora

Просмотреть файл

@ -1,21 +1,23 @@
Vendor: Microsoft Corporation
Distribution: Mariner
Summary: A tool to manage Windows dynamic disks
Name: libldm
Version: 0.2.4
Release: 8%{?dist}
Summary: A tool to manage Windows dynamic disks
License: LGPLv3+ and GPLv3+
URL: https://github.com/mdbooth/libldm
Release: 9%{?dist}
License: LGPLv3+ AND GPLv3+
Vendor: Microsoft Corporation
Distribution: Mariner
URL: https://github.com/mdbooth/libldm
Source0: https://github.com/mdbooth/libldm/archive/%{name}-%{version}.tar.gz
BuildRequires: %{_bindir}/xsltproc
BuildRequires: autoconf, automake, libtool
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: device-mapper-devel >= 1.0
BuildRequires: glib2-devel >= 2.26.0
BuildRequires: json-glib-devel >= 0.14.0
BuildRequires: device-mapper-devel >= 1.0
BuildRequires: zlib-devel libuuid-devel readline-devel
BuildRequires: libtool
BuildRequires: libuuid-devel
BuildRequires: readline-devel
BuildRequires: zlib-devel
%description
libldm is a library for managing Microsoft Windows dynamic disks, which use
@ -25,7 +27,6 @@ exposes this functionality as a command-line tool.
libldm is released under LGPLv3+. ldmtool is released under GPLv3+.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
@ -34,7 +35,6 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q -n %{name}-%{name}-%{version}
sed -i -e 's/-Werror //' src/Makefile.*
@ -48,28 +48,26 @@ autoreconf -i
%configure --disable-static --disable-gtk-doc
make %{?_smp_mflags} V=1
%install
%make_install
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
find %{buildroot} -type f -name "*.la" -delete -print
%ldconfig_scriptlets
%files
%license COPYING.lgpl COPYING.gpl
%{_libdir}/*.so.*
%{_bindir}/ldmtool
%files devel
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/ldm-1.0.pc
%changelog
* Fri Apr 01 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.2.4-9
- Cleaning-up spec. License verified.
* Mon Mar 21 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.2.4-8
- Adding BR on '%%{_bindir}/xsltproc'.
- Disabled gtk doc generation to remove network dependency during build-time.

Просмотреть файл

@ -1,45 +1,40 @@
Vendor: Microsoft Corporation
Distribution: Mariner
Summary: Tool to create a timeline of file activity for mounted file systems
Name: mac-robber
Version: 1.02
Release: 22%{?dist}
Summary: Tool to create a timeline of file activity for mounted file systems
License: GPLv2+
URL: http://sourceforge.net/projects/mac-robber/
Release: 23%{?dist}
License: GPLv2
Vendor: Microsoft Corporation
Distribution: Mariner
URL: https://sourceforge.net/projects/mac-robber/
Source0: http://downloads.sourceforge.net/mac-robber/mac-robber-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: make
%description
mac-robber is a digital forensics and incident response tool that can be used
with The Sleuth Kit to create a timeline of file activity for mounted
with The Sleuth Kit to create a timeline of file activity for mounted
file systems.
%prep
%setup -q
%build
%make_build GCC_OPT="%{optflags}"
%install
mkdir -p %{buildroot}%{_bindir}
install -pm 0755 mac-robber %{buildroot}%{_bindir}
%files
%doc CHANGES README
%license COPYING
%doc CHANGES README
%{_bindir}/mac-robber
%changelog
* Fri Apr 01 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.02-23
- Cleaning-up spec. License verified.
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.02-22
- Initial CBL-Mariner import from Fedora 35 (license: MIT).

Просмотреть файл

Просмотреть файл

Просмотреть файл

@ -1,8 +1,9 @@
%bcond_with libreport
Summary: The mdadm program controls Linux md devices (software RAID arrays)
Name: mdadm
Version: 4.1
Release: 7%{?dist}
Release: 8%{?dist}
License: GPLv2+
Vendor: Microsoft Corporation
Distribution: Mariner
@ -16,14 +17,16 @@ Source5: mdadm.conf
Source6: mdadm_event.conf
Source7: raid-check.timer
Source8: raid-check.service
# Build without -Werror. From Debian.
# Build without -Werror. From Debian.
Patch00: https://sources.debian.org/data/main/m/mdadm/4.1-2/debian/patches/debian-no-Werror.diff#/mdadm-4.1-no-Werror.patch
# Fedora customization patches
# Fedora customization patches, keeping in Mariner for now.
Patch97: mdadm-3.3-udev.patch
Patch98: mdadm-2.5.2-static.patch
BuildRequires: binutils-devel
BuildRequires: gcc
BuildRequires: systemd-rpm-macros
Requires(post): coreutils
Requires(post): systemd
Requires(postun): coreutils
@ -96,6 +99,9 @@ install -m644 %{SOURCE6} %{buildroot}%{_sysconfdir}/libreport/events.d
%endif
%changelog
* Fri Apr 01 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 4.1-8
- Cleaning-up spec. License verified.
* Tue Jan 18 2022 Thomas Crain <thcrain@microsoft.com> - 4.1-7
- Disable usage of libreport by default
- License verified

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

@ -1,19 +1,20 @@
Summary: NTFS-3G plugin for reading "system compressed" files
Name: ntfs-3g-system-compression
Version: 1.0
Release: 5%{?dist}
License: GPLv2+
Vendor: Microsoft Corporation
Distribution: Mariner
Name: ntfs-3g-system-compression
Summary: NTFS-3G plugin for reading "system compressed" files
Version: 1.0
Release: 4%{?dist}
License: GPLv2+
URL: https://github.com/ebiggers/ntfs-3g-system-compression
Source0: https://github.com/ebiggers/ntfs-3g-system-compression/archive/v%{version}/ntfs-3g-system-compression-%{version}.tar.gz
URL: https://github.com/ebiggers/ntfs-3g-system-compression
Source0: https://github.com/ebiggers/ntfs-3g-system-compression/archive/v%{version}/ntfs-3g-system-compression-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig(libntfs-3g) >= 2017.3.23
BuildRequires: fuse-devel
BuildRequires: gcc
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: pkgconfig(libntfs-3g) >= 2017.3.23
%description
System compression, also known as "Compact OS", is a Windows feature that
@ -37,7 +38,7 @@ autoreconf -i
%install
%make_install
rm -rf %{buildroot}%{_libdir}/ntfs-3g/*.la
find %{buildroot} -type f -name "*.la" -delete -print
%files
%doc README.md
@ -46,6 +47,9 @@ rm -rf %{buildroot}%{_libdir}/ntfs-3g/*.la
%{_libdir}/ntfs-3g/ntfs-plugin-80000017.so
%changelog
* Fri Apr 01 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.0-5
- Cleaning-up spec. License verified.
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.0-4
- Initial CBL-Mariner import from Fedora 32 (license: MIT).

Просмотреть файл

@ -1,40 +1,45 @@
Summary: Expect for Perl
Name: perl-Expect
Version: 1.35
Release: 13%{?dist}
License: GPL+ OR Artistic
Vendor: Microsoft Corporation
Distribution: Mariner
Name: perl-Expect
Version: 1.35
Release: 12%{?dist}
Summary: Expect for Perl
License: GPL+ or Artistic
URL: https://metacpan.org/release/Expect
Source0: https://cpan.metacpan.org/modules/by-module/Expect/Expect-%{version}.tar.gz#/perl-Expect-%{version}.tar.gz
BuildArch: noarch
URL: https://metacpan.org/release/Expect
Source0: https://cpan.metacpan.org/modules/by-module/Expect/Expect-%{version}.tar.gz#/perl-Expect-%{version}.tar.gz
BuildArch: noarch
# Module Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.64
BuildRequires: sed
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: sed
# Module Runtime
BuildRequires: perl(Carp)
BuildRequires: perl(Errno)
BuildRequires: perl(Exporter)
BuildRequires: perl(Fcntl)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IO::Pty) >= 1.11
BuildRequires: perl(IO::Tty) >= 1.11
BuildRequires: perl(POSIX)
BuildRequires: perl(strict)
BuildRequires: perl(vars)
BuildRequires: perl(warnings)
BuildRequires: perl(Carp)
# Test Suite
BuildRequires: perl(Config)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::More) >= 0.98
BuildRequires: perl(Config)
BuildRequires: perl(Errno)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.64
BuildRequires: perl(Fcntl)
BuildRequires: perl(File::Temp)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IO::Pty) >= 1.11
BuildRequires: perl(IO::Tty) >= 1.11
BuildRequires: perl(POSIX)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::More) >= 0.98
BuildRequires: perl(strict)
BuildRequires: perl(vars)
BuildRequires: perl(warnings)
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
This module provides Expect-like functionality to Perl. Expect is
@ -59,16 +64,15 @@ find %{buildroot} -type f -name .packlist -delete
make test
%files
%if 0%{?_licensedir:1}
%license LICENSE
%else
%doc LICENSE
%endif
%doc Changes README.md examples/ tutorial/
%{perl_vendorlib}/Expect.pm
%{_mandir}/man3/Expect.3*
%changelog
* Fri Apr 01 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.35-13
- Cleaning-up spec. License verified.
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.35-12
- Initial CBL-Mariner import from Fedora 32 (license: MIT).

Просмотреть файл

@ -1,12 +1,14 @@
Summary: Perl interface to pseudo tty's
Name: perl-IO-Tty
Version: 1.14
Release: 3%{?dist}
Summary: Perl interface to pseudo tty's
License: (GPL+ or Artistic) and BSD
Release: 4%{?dist}
# Mostly licensed same as Perl. IO-Tty-1.14/Tty.xs is licensed under BSD.
License: (GPL+ OR Artistic) AND BSD
Vendor: Microsoft Corporation
Distribution: Mariner
URL: https://metacpan.org/release/IO-Tty
Source0: https://cpan.metacpan.org/modules/by-module/IO/IO-Tty-%{version}.tar.gz#/perl-IO-Tty-%{version}.tar.gz
# Module Build
BuildRequires: coreutils
BuildRequires: findutils
@ -15,21 +17,24 @@ BuildRequires: make
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(Config)
BuildRequires: perl(Cwd)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
# Module Runtime
BuildRequires: perl(Carp)
BuildRequires: perl(Config)
BuildRequires: perl(Cwd)
BuildRequires: perl(DynaLoader)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(IO::File)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(POSIX)
BuildRequires: perl(strict)
BuildRequires: perl(vars)
# Test Suite
BuildRequires: perl(Test::More)
BuildRequires: perl(strict)
BuildRequires: perl(vars)
BuildRequires: perl(warnings)
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
@ -56,7 +61,8 @@ find %{buildroot} -type f -name '*.bs' -empty -delete
make test
%files
%doc ChangeLog README.md
%license README.md
%doc ChangeLog
%{perl_vendorarch}/auto/IO/
%{perl_vendorarch}/IO/
%{_mandir}/man3/IO::Pty.3*
@ -64,6 +70,9 @@ make test
%{_mandir}/man3/IO::Tty::Constant.3*
%changelog
* Fri Apr 01 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.14-4
- Cleaning-up spec. License verified.
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.14-3
- Initial CBL-Mariner import from Fedora 32 (license: MIT).

Просмотреть файл

@ -1,12 +1,13 @@
Vendor: Microsoft Corporation
Distribution: Mariner
Summary: Represent and manage a libvirt hypervisor connection
Name: perl-Sys-Virt
Version: 6.1.0
Release: 3%{?dist}
Summary: Represent and manage a libvirt hypervisor connection
License: GPLv2+ or Artistic
Release: 4%{?dist}
License: GPLv2+ OR Artistic
Vendor: Microsoft Corporation
Distribution: Mariner
URL: https://metacpan.org/release/Sys-Virt
Source0: https://cpan.metacpan.org/authors/id/D/DA/DANBERR/Sys-Virt-v%{version}.tar.gz#/perl-Sys-Virt-v%{version}.tar.gz
Source0: https://cpan.metacpan.org/authors/id/D/DA/DANBERR/Sys-Virt-v%{version}.tar.gz#/%{name}-v%{version}.tar.gz
# Build
BuildRequires: coreutils
BuildRequires: findutils
@ -16,27 +17,30 @@ BuildRequires: make
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: sed
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(Module::Build)
BuildRequires: sed
BuildRequires: perl(XSLoader)
# Runtime
BuildRequires: perl(overload)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(XSLoader)
%if %{with_check}
# Tests only
BuildRequires: perl(base)
BuildRequires: perl(Sys::Hostname)
# Optional tests only
BuildRequires: perl(Test::CPAN::Changes)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(XML::XPath)
BuildRequires: perl(XML::XPath::XMLParser)
# Optional tests only
BuildRequires: perl(Test::CPAN::Changes)
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
# Tests only
BuildRequires: perl(base)
%endif
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
%description
@ -53,9 +57,9 @@ perl Build.PL installdirs=vendor
./Build
%install
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
./Build install destdir=%{buildroot} create_packlist=0
%{_fixperms} $RPM_BUILD_ROOT/*
%{_fixperms} %{buildroot}/*
%check
./Build test
@ -68,6 +72,9 @@ perl Build.PL installdirs=vendor
%{_mandir}/man3/*
%changelog
* Fri Apr 01 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 6.1.0-4
- Cleaning-up spec. License verified.
* Tue Jan 18 2022 Thomas Crain <thcrain@microsoft.com> - 6.1.0-3
- Only pull in test dependencies during check builds
- License verified

Просмотреть файл

@ -1,14 +1,15 @@
Summary: Disk scrubbing program
Name: scrub
Version: 2.5.2
Release: 18%{?dist}
License: GPLv2+
Vendor: Microsoft Corporation
Distribution: Mariner
Name: scrub
Version: 2.5.2
Release: 17%{?dist}
Summary: Disk scrubbing program
License: GPLv2+
URL: https://code.google.com/archive/p/diskscrub
Source0: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/diskscrub/%{name}-%{version}.tar.bz2
URL: https://code.google.com/archive/p/diskscrub
Source0: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/diskscrub/%{name}-%{version}.tar.bz2
BuildRequires: gcc
%description
Scrub writes patterns on files or disk devices to make
retrieving the data more difficult. It operates in one of three
@ -29,12 +30,15 @@ make %{?_smp_mflags}
make DESTDIR=%{buildroot} install
%files
%doc DISCLAIMER COPYING
%doc README ChangeLog
%license COPYING
%doc DISCLAIMER README ChangeLog
%{_bindir}/scrub
%{_mandir}/man1/scrub.1*
%changelog
* Fri Apr 01 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 2.5.2-18
- Cleaning-up spec. License verified.
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 2.5.2-17
- Initial CBL-Mariner import from Fedora 32 (license: MIT).

Просмотреть файл

@ -1,37 +1,21 @@
Vendor: Microsoft Corporation
Distribution: Mariner
# Could be part of http://fedoraproject.org/wiki/LukeMacken/SecurityLiveCD
Summary: The Sleuth Kit (TSK)
Name: sleuthkit
Version: 4.9.0
Release: 3%{?dist}
Summary: The Sleuth Kit (TSK)
License: CPL and IBM and GPLv2+
URL: http://www.sleuthkit.org
Release: 4%{?dist}
License: BSD AND CPL AND GPLv2+ AND IBM AND MIT
Vendor: Microsoft Corporation
Distribution: Mariner
URL: https://www.sleuthkit.org
Source0: https://github.com/sleuthkit/sleuthkit/releases/download/sleuthkit-%{version}/sleuthkit-%{version}.tar.gz
#BuildRequires: libtool
# afflib - BSD with advertising, GPL incompatible
BuildRequires: gcc-c++
BuildRequires: afflib-devel >= 3.3.4
# libewf - Newer versions are plain BSD (older are BSD with advertising)
BuildRequires: libewf-devel
BuildRequires: perl-generators
BuildRequires: sqlite-devel
%{?_with_java:
BuildRequires: java-devel >= 1.6.0
BuildRequires: jpackage-utils
Requires: java >= 1.6.0
Requires: jpackage-utils
}
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Requires: file
Requires: mac-robber
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Requires: file
Requires: mac-robber
%description
The Sleuth Kit (TSK) is a collection of UNIX-based command line tools that
@ -39,14 +23,12 @@ allow you to investigate a computer. The current focus of the tools is the
file and volume systems and TSK supports FAT, Ext2/3, NTFS, UFS,
and ISO 9660 file systems
%package libs
Summary: Library for %{name}
%description libs
The %{name}-libs package contains library for %{name}.
%package devel
Summary: Development files for %{name}
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
@ -56,15 +38,12 @@ Requires: sqlite-devel%{?_isa}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q -n %{name}-%{version}
%setup -q
%build
#export LIBS='-lpthread -ldl'
%configure --disable-static \
%{!?_with_java:--disable-java}
--disable-java
# remove rpath from libtool
sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
@ -72,15 +51,12 @@ sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build
%install
%make_install INSTALL="install -p"
find %{buildroot} -name '*.la' -exec rm -f {} ';'
find %{buildroot} -type f -name "*.la" -delete -print
%ldconfig_scriptlets libs
%files
%doc ChangeLog.txt NEWS.txt
%license licenses/*
@ -89,8 +65,6 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';'
%{_bindir}/blkcat
%{_bindir}/blkls
%{_bindir}/blkstat
#{_bindir}/disk_sreset
#{_bindir}/disk_stat
#fcat conflicts with freeze fcat
%exclude %{_bindir}/fcat
%{_bindir}/ffind
@ -129,8 +103,6 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';'
%{_mandir}/man1/blkcat.1*
%{_mandir}/man1/blkls.1*
%{_mandir}/man1/blkstat.1*
#{_mandir}/man1/disk_sreset.1*
#{_mandir}/man1/disk_stat.1*
%exclude %{_mandir}/man1/fcat.1*
%{_mandir}/man1/ffind.1*
%{_mandir}/man1/fls.1*
@ -167,8 +139,10 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';'
%{_includedir}/tsk/
%{_libdir}/*.so
%changelog
* Fri Apr 01 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 4.9.0-4
- Cleaning-up spec. License verified.
* Wed Nov 03 2021 Muhammad Falak <mwani@microsft.com> - 4.9.0-3
- Remove epoch
@ -343,5 +317,3 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';'
* Mon Oct 29 2007 kwizart < kwizart at gmail.com > - 2.09-1
- Initial package for Fedora
(inspired from Oden Eriksson mdk spec).

Просмотреть файл

Просмотреть файл

Просмотреть файл

@ -2,8 +2,6 @@
"Signatures": {
"index.html": "1e842f92dfc8ca5c7aa515a5a41b512681f7a591eb27db821996b9832f1c6b1f",
"sparsify.c": "a31d66ebad0a8177d4d4def2f10baa09f8d21cf47515dd754668a6bb70dd3870",
"zerofree-1.1.1.tgz": "956bc861b55ba0a2b7593c58d32339dab1a0e7da6ea2b813d27c80f08b723867",
"zerofree.8": "d2e3c63d37a9a83676126da3bf89ac7c554bc443e1ab699fd916017f720d6e05",
"zerofree.sgml": "46f54d3ea8af335309e7103b35b5fc931f2ff09e2d2d93932ca1579f99a55e71"
"zerofree-1.1.1.tgz": "956bc861b55ba0a2b7593c58d32339dab1a0e7da6ea2b813d27c80f08b723867"
}
}

Просмотреть файл

@ -1,26 +1,17 @@
Vendor: Microsoft Corporation
Distribution: Mariner
Summary: Utility to force unused ext2/3/4 inodes and blocks to zero
Name: zerofree
Version: 1.1.1
Release: 6%{?dist}
Release: 7%{?dist}
License: GPLv2
Vendor: Microsoft Corporation
Distribution: Mariner
URL: https://frippery.org/uml/
Source0: https://frippery.org/uml/%{name}-%{version}.tgz
Source1: https://frippery.org/uml/sparsify.c
Source2: https://frippery.org/uml/index.html
# zerofree.sgml is the source for the man page from Debian.
# Unfortunately we cannot build this in Fedora because of an apparent
# bug in our DocBook tools. Therefore I also include the generated
# man page (generated on a Debian system from this source).
Source3: zerofree.sgml
Source4: zerofree.8
BuildRequires: gcc, e2fsprogs-devel
BuildRequires: e2fsprogs-devel
BuildRequires: gcc
%description
zerofree is a utility to set unused filesystem inodes and blocks of an
@ -34,33 +25,29 @@ WARNING: The filesystem to be processed should be unmounted or mounted
read-only. The tool tries to check this before running, but you
should be careful.
%prep
%setup -q
cp -p %{SOURCE1} .
cp -p %{SOURCE2} .
%build
make CC="gcc $RPM_OPT_FLAGS"
gcc $RPM_OPT_FLAGS sparsify.c -o sparsify -lext2fs
make CC="gcc %{optflags}"
gcc %{optflags} sparsify.c -o sparsify -lext2fs
%install
install -D -p -m 755 zerofree $RPM_BUILD_ROOT%{_sbindir}/zerofree
install -D -p -m 755 sparsify $RPM_BUILD_ROOT%{_sbindir}/sparsify
install -D -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man8/zerofree.8
install -D -p -m 755 zerofree %{buildroot}%{_sbindir}/zerofree
install -D -p -m 755 sparsify %{buildroot}%{_sbindir}/sparsify
%files
%license COPYING
%doc index.html
%{_sbindir}/zerofree
%{_sbindir}/sparsify
%{_mandir}/man8/zerofree.8*
%changelog
* Fri Apr 01 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.1.1-7
- Cleaning-up spec. License verified.
* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.1.1-6
- Initial CBL-Mariner import from Fedora 32 (license: MIT).

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

@ -1,32 +1,46 @@
%define _hardened_build 1
Summary: ZFS ported to Linux FUSE
Name: zfs-fuse
Version: 0.7.2.2
Release: 17%{?dist}
License: CDDL
Vendor: Microsoft Corporation
Distribution: Mariner
%define _hardened_build 1
Name: zfs-fuse
Version: 0.7.2.2
Release: 16%{?dist}
Summary: ZFS ported to Linux FUSE
License: CDDL
URL: https://github.com/gordan-bobic/zfs-fuse
Source00: http://github.com/gordan-bobic/zfs-fuse/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source01: zfs-fuse.service
Source02: zfs-fuse.scrub
Source03: zfs-fuse.sysconfig
Source04: zfs-fuse-helper
Patch0: zfs-fuse-0.7.2.2-stack.patch
Patch1: zfs-fuse-0.7.2.2-python3.patch
Patch2: tirpc.patch
Patch3: common.patch
BuildRequires: gcc
BuildRequires: fuse-devel libaio-devel perl-generators scons gcc-c++
BuildRequires: zlib-devel openssl-devel libattr-devel lzo-devel bzip2-devel xz-devel
BuildRequires: libtirpc-devel
%ifnarch aarch64 ppc64le
BuildRequires: /usr/bin/execstack
%endif
BuildRequires: systemd
Requires: fuse >= 2.7.4-1
URL: https://github.com/gordan-bobic/zfs-fuse
Source00: http://github.com/gordan-bobic/zfs-fuse/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source01: zfs-fuse.service
Source02: zfs-fuse.scrub
Source03: zfs-fuse.sysconfig
Source04: zfs-fuse-helper
Patch0: zfs-fuse-0.7.2.2-stack.patch
Patch1: zfs-fuse-0.7.2.2-python3.patch
Patch2: tirpc.patch
Patch3: common.patch
# (2010 karsten@redhat.com) zfs-fuse doesn't have s390(x) implementations for atomic instructions
ExcludeArch: s390 s390x aarch64
ExcludeArch: s390 s390x aarch64
BuildRequires: bzip2-devel
BuildRequires: fuse-devel
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: libaio-devel
BuildRequires: libattr-devel
BuildRequires: libtirpc-devel
BuildRequires: lzo-devel
BuildRequires: openssl-devel
BuildRequires: perl-generators
BuildRequires: scons
BuildRequires: systemd
BuildRequires: xz-devel
BuildRequires: zlib-devel
%ifnarch aarch64 ppc64le
BuildRequires: %{_bindir}/execstack
%endif
Requires: fuse >= 2.7.4-1
%description
ZFS is an advanced modern general-purpose filesystem from Sun
@ -38,10 +52,10 @@ operating system.
%prep
%setup -q
%patch0 -p0
%patch0
%patch1 -p1
%patch2 -p1
%patch3 -p0
%patch3
f=LICENSE
mv $f $f.iso88591
@ -74,14 +88,14 @@ install -Dp -m 0755 %{SOURCE4} %{buildroot}%{_sbindir}/zfs-fuse-helper
%ifnarch aarch64 ppc64le
#set stack not executable, BZ 911150
for i in zdb zfs zfs-fuse zpool ztest; do
/usr/bin/execstack -c %{buildroot}%{_sbindir}/$i
%{_bindir}/execstack -c %{buildroot}%{_sbindir}/$i
done
%endif
%post
# Move cache if upgrading
oldcache=/etc/zfs/zpool.cache # this changed per 0.6.9, only needed when upgrading from earlier versions
newcache=/var/lib/zfs/zpool.cache
oldcache=%{_sysconfdir}/zfs/zpool.cache # this changed per 0.6.9, only needed when upgrading from earlier versions
newcache=%{_sharedstatedir}/zfs/zpool.cache
if [[ -f $oldcache && ! -e $newcache ]]; then
echo "Moving existing zpool.cache to new location"
@ -99,10 +113,10 @@ fi
%systemd_preun zfs-fuse.service
%postun
%systemd_postun_with_restart zfs-fuse.service
%systemd_postun_with_restart zfs-fuse.service
echo "Removing files since we removed the last package"
rm -rf /var/run/zfs
rm -rf /var/lock/zfs
rm -rf %{_var}/run/zfs
rm -rf %{_var}/lock/zfs
%files
%license LICENSE
@ -127,6 +141,9 @@ rm -rf /var/lock/zfs
%{_mandir}/man8/zstreamdump.8.gz
%changelog
* Fri Apr 01 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.7.2.2-17
- Cleaning-up spec.
* Tue Jan 18 2022 Thomas Crain <thcrain@microsoft.com> - 0.7.2.2-16
- Remove copying of RPM's config.guess/config.sub into build dir (not shipped by RPM anymore)
- Update Source0 URL

Просмотреть файл

@ -9422,7 +9422,7 @@
"other": {
"name": "libewf",
"version": "20140608",
"downloadUrl": "https://53efc0a7187d0baa489ee347026b8278fe4020f6.googledrive.com/host/0B3fBvzttpiiSMTdoaVExWWNsRjg/libewf-20140608.tar.gz"
"downloadUrl": "https://github.com/libyal/legacy/raw/main/libewf/libewf-20140608.tar.gz"
}
}
},