commit
4b42ff1e94
17
parse_time_build_fix.patch
Normal file
17
parse_time_build_fix.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
Description: Fix compilation with newer glibc
|
||||||
|
Fixes compilation with newer glibc.
|
||||||
|
If _XOPEN_SOURCE is defined _DEFAULT_SOURCE needs to be defined explicit
|
||||||
|
to have the definition of loff_t.
|
||||||
|
Author: Felix Zielcke <fzielcke@z-51.de>
|
||||||
|
Bug-Debian: https://bugs.debian.org/916166
|
||||||
|
Last-Update: 2018-12-12
|
||||||
|
|
||||||
|
--- reiserfsprogs-3.6.27.orig/lib/parse_time.c
|
||||||
|
+++ reiserfsprogs-3.6.27/lib/parse_time.c
|
||||||
|
@@ -1,4 +1,5 @@
|
||||||
|
#define _XOPEN_SOURCE
|
||||||
|
+#define _DEFAULT_SOURCE
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
59
reiserfs-utils.spec
Normal file
59
reiserfs-utils.spec
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
Name: reiserfs-utils
|
||||||
|
Version: 3.6.27
|
||||||
|
Release: 2
|
||||||
|
Summary: Tools for creating, repairing, and debugging ReiserFS filesystems
|
||||||
|
URL: http://ftp.kernel.org/pub/linux/utils/fs/reiserfs/
|
||||||
|
Source0: https://www.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/%{version}/reiserfsprogs-%{version}.tar.xz
|
||||||
|
Patch0001: parse_time_build_fix.patch
|
||||||
|
License: GPLv2 with exceptions
|
||||||
|
BuildRequires: e2fsprogs-devel libuuid-devel libacl-devel
|
||||||
|
|
||||||
|
%description
|
||||||
|
The reiserfs-utils package contains a number of utilities for creating, checking, modifying,
|
||||||
|
and correcting any inconsistencies in ReiserFS filesystems, including reiserfsck (used to
|
||||||
|
repair filesystem inconsistencies), mkreiserfs (used to initialize a partition to contain an empty
|
||||||
|
ReiserFS filesystem), debugreiserfs (used to examine the internal structure of a filesystem,
|
||||||
|
to manually repair a corrupted filesystem, or to create test cases for reiserfsck), and some other
|
||||||
|
ReiserFS filesystem utilities.
|
||||||
|
|
||||||
|
You should install the reiserfs-utils package if you want to use ReiserFS on any of your partitions.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Help package for reiserfs-utils
|
||||||
|
|
||||||
|
%description help
|
||||||
|
Help package for reiserfs-utils
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n reiserfsprogs-%{version} -p1
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
mv -f $RPM_BUILD_ROOT/usr/sbin $RPM_BUILD_ROOT/sbin
|
||||||
|
install -d $RPM_BUILD_ROOT%{_mandir}/man8
|
||||||
|
install -m644 debugreiserfs/debugreiserfs.8 $RPM_BUILD_ROOT%{_mandir}/man8
|
||||||
|
install -m644 fsck/reiserfsck.8 $RPM_BUILD_ROOT%{_mandir}/man8
|
||||||
|
install -m644 mkreiserfs/mkreiserfs.8 $RPM_BUILD_ROOT%{_mandir}/man8
|
||||||
|
( cd $RPM_BUILD_ROOT/sbin; ln -fs mkreiserfs mkfs.reiserfs; ln -fs reiserfsck fsck.reiserfs )
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc ChangeLog CREDITS README COPYING
|
||||||
|
/sbin/*reiserfs*
|
||||||
|
%{_includedir}/reiserfs/
|
||||||
|
%{_libdir}/libreiserfscore*
|
||||||
|
%{_libdir}/pkgconfig/reiserfscore.pc
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%{_mandir}/*/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Feb 24 2020 chenli <chenli147@huawei.com> - 3.6.27-2
|
||||||
|
- Init Package
|
||||||
|
|
||||||
|
|
||||||
BIN
reiserfsprogs-3.6.27.tar.xz
Normal file
BIN
reiserfsprogs-3.6.27.tar.xz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user