Compare commits

...

16 Commits

Author SHA1 Message Date
openeuler-ci-bot
79559a2874
!13 Upgrade to 0.3.27
From: @starlet-dx 
Reviewed-by: @wu-leilei 
Signed-off-by: @wu-leilei
2023-10-09 08:12:09 +00:00
starlet-dx
97d23ecc07 Upgrade to 0.3.27 2023-10-09 15:09:57 +08:00
openeuler-ci-bot
b2cbedfade
!12 [sync] PR-10: fix build error
From: @openeuler-sync-bot 
Reviewed-by: @ruebb 
Signed-off-by: @ruebb
2022-03-11 01:38:51 +00:00
lyn1001
9638f66a96 fix build error
(cherry picked from commit 70142d6d3370e0d2318bd07d106e905f42f45b48)
2022-03-10 19:56:12 +08:00
openeuler-ci-bot
66d2ba3414 !8 Fix link failuer with gcc-10
From: @weidongkl
Reviewed-by: @ruebb
Signed-off-by: @ruebb
2021-08-16 11:20:41 +00:00
weidong
d4656e1edf Fix link failuer with gcc-10 2021-08-16 16:14:50 +08:00
openeuler-ci-bot
ce7782b1d2 !3 Modify buildrequires
From: @weidongkl
Reviewed-by: @imjoey,@Charlie_li
Signed-off-by: @Charlie_li
2020-12-02 16:51:41 +08:00
weidong
ea47f8efe1 Modify buildrequires 2020-11-09 13:11:28 +08:00
weidong
ef02b79fd6 Modify buildqequires 2020-11-06 15:18:03 +08:00
openeuler-ci-bot
45251feea1 !1 package init
Merge pull request !1 from weidongkl/master
2020-08-20 19:24:33 +08:00
weidong
4c03b37d13 delete useless patch 2020-08-20 17:02:40 +08:00
weidong
2e21144d16 fix yaml 2020-08-20 14:50:27 +08:00
weidong
a92c5ed22e 修改spec问题 2020-08-17 10:13:58 +08:00
weidong
7fd2a213c0 修改spec问题 2020-08-17 10:08:00 +08:00
weidong
69e2f27e07 reset release to 1 2020-08-14 11:10:45 +08:00
weidong
0170db91aa init package 2020-08-13 11:18:00 +08:00
3 changed files with 148 additions and 0 deletions

BIN
partclone-0.3.27.tar.gz Normal file

Binary file not shown.

144
partclone.spec Normal file
View File

@ -0,0 +1,144 @@
# Testsuite is CPU and disk space intensive, partially also just broken
%{!?testsuite: %global testsuite 1}
Summary: Utility to clone and restore a partition
Name: partclone
Version: 0.3.27
Release: 1
# Partclone itself is GPLv2+ but uses other source codes, breakdown:
# GPLv3+: fail-mbr/fail-mbr.S
# GPLv2 and GPLv2+: src/btrfs*
# GPL+ and GPLv2 and GPLv2+ and LGPLv2 and LGPLv2+: src/xfs*
# GPLv2 and GPLv2+: src/f2fs*
# GPLv2+: src/{dd,extfs,fat,hfsplus,minix,nilfs,ntfsclone-ng,part}clone*
# GPLv2+: src/{{fuseimg,info,main,ntfsfixboot,readblock}.c,progress*}
# LGPLv2+: src/gettext.h
# Unused source code (= not built): src/{exfat,jfs,reiser,ufs,vmfs}*
License: GPL+ and GPLv2 and GPLv2+ and GPLv3+ and LGPLv2 and LGPLv2+
URL: http://partclone.org/
Source0: https://github.com/Thomas-Tsai/partclone/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: libuuid-devel
BuildRequires: fuse-devel
BuildRequires: ncurses-devel
BuildRequires: openssl-devel
BuildRequires: e2fsprogs-devel
BuildRequires: ntfs-3g-devel
BuildRequires: libblkid-devel
%if 0%{?testsuite}
BuildRequires: e2fsprogs
BuildRequires: ntfsprogs
BuildRequires: dosfstools
BuildRequires: hfsplus-tools
BuildRequires: xfsprogs
BuildRequires: btrfs-progs
BuildRequires: f2fs-tools
%endif
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gettext-devel
Provides: bundled(libbtrfs)
Provides: bundled(libbtrfsutil)
Provides: bundled(xfsprogs-libs)
%description
Partclone provides utilities to clone and restore used blocks on a partition
and is designed for higher compatibility of the file system by using existing
libraries, e.g. e2fslibs is used to read and write the ext2 partition.
%prep
%autosetup -p1
autoreconf -i -f
%build
# /usr/include/asm/types.h:31 and xfs/platform_defs.h:50 try both to define
# umode_t, reported: https://github.com/Thomas-Tsai/partclone/issues/96
%configure \
--enable-extfs \
--enable-xfs \
--disable-reiserfs \
--disable-reiser4 \
--enable-hfsp \
--enable-fat \
--disable-exfat \
--enable-f2fs \
--disable-nilfs2 \
--enable-ntfs \
--disable-ufs \
--disable-vmfs \
--disable-jfs \
--enable-btrfs \
--enable-minix \
--enable-ncursesw \
--enable-fs-test
# https://forum.slitaz.org/topic/parclone-needs-to-be-rebuilded
sed -i 's|exit 1|exit 0|' fail-mbr/compile-mbr.sh
%make_build
%install
%make_install
# Building fail-mbr.bin requires a compiler that can build x86 binaries
%ifnarch %{ix86} x86_64
rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/
%endif
%find_lang %{name}
%if 0%{?testsuite}
%check
# Patch proposal submitted: https://github.com/Thomas-Tsai/partclone/issues/103
sed -e 's/256/1440/' -i tests/_common
# Tests for Btrfs, XFS and F2FS filesystems are broken on all architectures
sed -e 's/^\(am__append_[[:digit:]]* = btrfs.test\)/#\1/' \
-e 's/^\(am__append_[[:digit:]]* = xfs.test\)/#\1/' \
-e 's/^\(am__append_[[:digit:]]* = f2fs.test\)/#\1/' \
-e 's/^\(am__append_[[:digit:]]* = btrfs.test\)/#\1/' \
-i tests/Makefile
# NILFS2 tests must be run as root (mockbuild is unprivileged)
sed -e 's/^\(am__append_[[:digit:]]* = nilfs2.test\)/#\1/' \
-i tests/Makefile
# Reiser4 tests require reiser4progs (which are not packaged)
sed -e 's/^\(am__append_[[:digit:]]* = reiser4.test\)/#\1/' \
-i tests/Makefile
# Tests for FAT and HFS+ filesystems are broken on ppc64 and s390x
%ifarch ppc64 s390x
sed -e 's/^\(am__append_[[:digit:]]* = fat.test\)/#\1/' \
-e 's/^\(am__append_[[:digit:]]* = hfsplus.test\)/#\1/' \
-i tests/Makefile
%endif
make check || (cat tests/test-suite.log; exit 1)
%endif
%files -f %{name}.lang
%license COPYING
%doc AUTHORS ChangeLog
%{_sbindir}/%{name}.*
%ifarch %{ix86} x86_64
%{_datadir}/%{name}/
%endif
%{_mandir}/man8/%{name}*.8*
%changelog
* Mon Oct 09 2023 yaoxin <yao_xin001@hoperun.com> - 0.3.27-1
- Upgrade to 0.3.27
* Thu Mar 10 2022 liyanan <liyanan32@huawei.com> - 0.3.12-4
- Fix build error
* Tue Aug 3 2021 weidong <weidong@uniontech.com> - 0.3.12-3
- Fix link failuer with gcc-10
* Fri Nov 6 2020 weidong <weidong@uniontech.com> - 0.3.12-2
- Modify buildrequires
* Fri Aug 7 2020 weidong <weidong@uniontech.com> - 0.3.12-1
- Initial release for OpenEuler

4
partclone.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: Thomas-Tsai/partclone
tag_prefix: ""
seperator: "."