Blame fstransform.spec

5a16cc3
# help2man is too old on rhel <= 6 to support some switches.
47076b7
%if 0%{?fedora} || 0%{?rhel} >= 7
47076b7
%bcond_without	man
47076b7
%else
47076b7
%bcond_with	man
47076b7
%endif
47076b7
47076b7
47076b7
Name:		fstransform
b074750
Version:	0.9.4
eebce67
Release:	5%{?dist}
47076b7
Summary:	Tool for in-place file-system conversion without backup
47076b7
47076b7
License:	GPLv3+
47076b7
URL:		https://github.com/cosmos72/%{name}
b074750
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz
47076b7
5facdaa
BuildRequires:	e2fsprogs-devel
47076b7
BuildRequires:	gcc-c++
5facdaa
BuildRequires:	libcom_err-devel
5facdaa
BuildRequires:	zlib-devel
5facdaa
47076b7
%if %{with man}
47076b7
BuildRequires:	help2man
47076b7
%endif # with man
21b4634
BuildRequires: make
47076b7
47076b7
Requires:	coreutils
47076b7
Requires:	util-linux
47076b7
Requires:	which
47076b7
47076b7
%description
47076b7
fstransform is a tool to change a file-system from one format
47076b7
to another, for example from jfs/xfs/reiser to ext2/ext3/ext4,
47076b7
in-place and without the need for backup.
47076b7
47076b7
47076b7
%prep
b074750
%autosetup -p 1
47076b7
47076b7
# Make sure Autotools files have proper timestamps.
47076b7
/bin/touch aclocal.m4 configure Makefile.am Makefile.in
47076b7
47076b7
47076b7
%build
47076b7
%configure --disable-silent-rules
47076b7
%make_build
47076b7
47076b7
47076b7
%install
47076b7
%make_install
47076b7
47076b7
%if %{with man}
47076b7
# Create man-pages.
47076b7
%{__mkdir} -p %{buildroot}%{_mandir}/man8
47076b7
for f in %{buildroot}%{_sbindir}/* ; do
47076b7
	n="$(echo ${f} | %{__sed} -e 's!^%{buildroot}%{_sbindir}/!!g')"
47076b7
	%{_bindir}/help2man -N -s 8 --version-string='%{version}'	\
b074750
		--no-discard-stderr -o %{buildroot}%{_mandir}/man8/${n}.8 ${f}
47076b7
done
47076b7
%endif # with man
47076b7
47076b7
47076b7
%check
47076b7
%make_build check
47076b7
47076b7
47076b7
%files
47076b7
%doc doc/*
47076b7
%doc ChangeLog
47076b7
%doc README
47076b7
%doc TODO
47076b7
%license AUTHORS
47076b7
%license COPYING
47076b7
%if %{with man}
b074750
%{_mandir}/man8/fsattr.8*
b074750
%{_mandir}/man8/fsmount_kernel.8*
47076b7
%{_mandir}/man8/fsmove.8*
47076b7
%{_mandir}/man8/fsremap.8*
47076b7
%{_mandir}/man8/%{name}.8*
47076b7
%endif # with man
b074750
%{_sbindir}/fsattr
b074750
%{_sbindir}/fsmount_kernel
47076b7
%{_sbindir}/fsmove
47076b7
%{_sbindir}/fsremap
47076b7
%{_sbindir}/%{name}
47076b7
47076b7
47076b7
%changelog
eebce67
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-5
eebce67
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
eebce67
b6ee591
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-4
b6ee591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b6ee591
7c02fbf
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-3
7c02fbf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
7c02fbf
5facdaa
* Wed May 08 2019 Björn Esser <besser82@fedoraproject.org> - 0.9.4-2
5facdaa
- Add some BuildRequires to enable optional functionality
5facdaa
b074750
* Wed May 08 2019 Björn Esser <besser82@fedoraproject.org> - 0.9.4-1
b074750
- New upstream release
b074750
cfd7fc3
* Wed May 08 2019 Björn Esser <besser82@fedoraproject.org> - 0.9.3-5
cfd7fc3
- Add upstream patch fixing data loss bug (#1705564)
cfd7fc3
4f9b551
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.3-4
4f9b551
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4f9b551
53544d9
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.3-3
53544d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
53544d9
ce5a39c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.3-2
ce5a39c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ce5a39c
47076b7
* Wed Aug 23 2017 Björn Esser <besser82@fedoraproject.org> - 0.9.3-1
47076b7
- Initial import (rhbz#1484166)
47076b7
47076b7
* Tue Aug 22 2017 Björn Esser <besser82@fedoraproject.org> - 0.9.3-0.1
47076b7
- Initial rpm release (rhbz#1484166)