2009-03-01 04:28:54 +01:00
|
|
|
#
|
2011-03-15 10:25:29 +01:00
|
|
|
# spec file for package btrfsprogs
|
2009-03-01 04:28:54 +01:00
|
|
|
#
|
2015-01-21 21:50:48 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-03-01 04:28:54 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2009-03-01 04:28:54 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2009-03-01 04:28:54 +01:00
|
|
|
#
|
|
|
|
|
2011-03-15 10:25:29 +01:00
|
|
|
|
2009-03-01 04:28:54 +01:00
|
|
|
Name: btrfsprogs
|
2015-01-30 23:58:06 +01:00
|
|
|
Version: 3.18.2
|
2012-02-21 12:15:43 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Utilities for the Btrfs filesystem
|
|
|
|
License: GPL-2.0
|
2009-03-01 04:28:54 +01:00
|
|
|
Group: System/Filesystems
|
2014-04-09 18:17:26 +02:00
|
|
|
Url: http://btrfs.wiki.kernel.org/index.php/Main_Page
|
2014-09-25 09:33:23 +02:00
|
|
|
#Git-Web: http://git.kernel.org/cgit/linux/kernel/git/kdave/btrfs-progs.git
|
|
|
|
#Git-Clone: git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs
|
2014-11-29 08:39:46 +01:00
|
|
|
Source: https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v%{version}.tar.gz
|
|
|
|
# support for mkinitrd in < 13.1
|
2012-02-21 12:15:43 +01:00
|
|
|
Source1: boot-btrfs.sh
|
2013-07-29 17:35:55 +02:00
|
|
|
Source4: setup-btrfs.sh
|
2014-04-14 06:43:24 +02:00
|
|
|
|
2013-11-28 16:50:38 +01:00
|
|
|
Patch163: 0163-btrfs-progs-fsck-fix-segfault.patch
|
|
|
|
Patch167: 0167-Btrfs-progs-make-find_and_setup_root-return-an-error.patch
|
|
|
|
Patch168: 0168-Btrfs-progs-don-t-bug-out-if-we-can-t-find-the-last-.patch
|
|
|
|
Patch169: 0169-btrfs-progs-Check-metadata-mirrors-in-find-root.patch
|
2014-05-27 11:51:12 +02:00
|
|
|
|
2012-02-21 12:15:43 +01:00
|
|
|
Patch1000: local-version-override.patch
|
2014-11-29 08:39:46 +01:00
|
|
|
Patch1001: fix-doc-build-on-SLE11SP3.diff
|
2014-09-08 21:28:13 +02:00
|
|
|
|
2014-06-18 07:50:19 +02:00
|
|
|
BuildRequires: asciidoc
|
2012-02-21 12:15:43 +01:00
|
|
|
BuildRequires: libacl-devel
|
2013-06-18 10:28:54 +02:00
|
|
|
BuildRequires: libattr-devel
|
2013-07-29 17:35:55 +02:00
|
|
|
BuildRequires: libblkid-devel
|
2012-02-21 12:15:43 +01:00
|
|
|
BuildRequires: libext2fs-devel
|
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
BuildRequires: lzo-devel
|
2014-11-29 08:39:46 +01:00
|
|
|
%if 0%{?suse_version} >= 1310
|
|
|
|
BuildRequires: suse-module-tools
|
|
|
|
%endif
|
2013-07-29 17:35:55 +02:00
|
|
|
BuildRequires: udev
|
2014-06-18 07:50:19 +02:00
|
|
|
BuildRequires: xmlto
|
2012-02-21 12:15:43 +01:00
|
|
|
BuildRequires: zlib-devel
|
2013-06-18 10:28:54 +02:00
|
|
|
Supplements: filesystem(btrfs)
|
2014-04-09 18:17:26 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-03-01 04:28:54 +01:00
|
|
|
|
|
|
|
%description
|
2011-08-04 09:32:48 +02:00
|
|
|
Utilities needed to create and maintain btrfs file systems under Linux.
|
|
|
|
|
2013-07-29 17:35:55 +02:00
|
|
|
%package -n libbtrfs0
|
|
|
|
Summary: Library for interacting with Btrfs
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libbtrfs0
|
|
|
|
This package contains the libbtrfs.so shared library needed for some
|
|
|
|
applications to interface with btrfs.
|
|
|
|
|
|
|
|
%package -n libbtrfs-devel
|
|
|
|
Summary: Include Files and Libraries for developing with Btrfs
|
|
|
|
Group: Development/Libraries/C and C++
|
2014-04-14 06:43:24 +02:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: libbtrfs0 = %{version}
|
2013-07-29 17:35:55 +02:00
|
|
|
|
|
|
|
%description -n libbtrfs-devel
|
|
|
|
This package contains the libraries and headers files for developers to
|
|
|
|
build applications to interface with btrfs.
|
|
|
|
|
2009-03-01 04:28:54 +01:00
|
|
|
%prep
|
2014-11-29 08:39:46 +01:00
|
|
|
%setup -q -n btrfs-progs-v%{version}
|
2013-11-28 16:50:38 +01:00
|
|
|
%patch163 -p1
|
|
|
|
%patch167 -p1
|
|
|
|
%patch168 -p1
|
|
|
|
%patch169 -p1
|
2012-02-21 12:15:43 +01:00
|
|
|
%patch1000 -p1
|
2014-11-29 08:39:46 +01:00
|
|
|
%patch1001 -p1
|
2011-07-28 19:55:26 +02:00
|
|
|
|
2009-03-01 04:28:54 +01:00
|
|
|
%build
|
2012-03-20 11:26:08 +01:00
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}" all btrfs-convert \
|
2014-06-18 07:50:19 +02:00
|
|
|
btrfs-zero-log btrfs-select-super btrfs-image btrfstune
|
2012-03-20 11:26:08 +01:00
|
|
|
|
2009-03-01 04:28:54 +01:00
|
|
|
%install
|
2014-04-09 18:17:26 +02:00
|
|
|
make install DESTDIR=%{buildroot} prefix=%{_prefix} bindir=%{_sbindir} mandir=%{_mandir} libdir=%{_libdir}
|
|
|
|
install -m 0755 -d %{buildroot}/%{_sbindir}
|
|
|
|
install -m 0755 -d %{buildroot}/%{_bindir}
|
2012-03-20 11:26:08 +01:00
|
|
|
# move some utilities out of /usr/sbin
|
2014-04-09 18:17:26 +02:00
|
|
|
mv %{buildroot}/%{_sbindir}/btrfs-map-logical %{buildroot}/%{_bindir}
|
2014-09-08 21:28:13 +02:00
|
|
|
# initrd rescue utilities
|
2014-04-09 18:17:26 +02:00
|
|
|
install -m 0755 btrfs-zero-log %{buildroot}/%{_sbindir}
|
|
|
|
install -m 0755 btrfs-select-super %{buildroot}/%{_sbindir}
|
|
|
|
install -m 0755 btrfs-image %{buildroot}/%{_sbindir}
|
|
|
|
install -m 0755 btrfstune %{buildroot}/%{_sbindir}
|
|
|
|
install -m 0755 btrfs-find-root %{buildroot}/%{_sbindir}
|
|
|
|
install -m 0755 -d %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/btrfs %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/btrfs-zero-log %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/btrfs-convert %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/btrfs-select-super %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/btrfs-image %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/btrfstune %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/btrfsck %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/btrfs-find-root %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/btrfs-debug-tree %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/btrfs-show-super %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/mkfs.btrfs %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/fsck.btrfs %{buildroot}/sbin
|
2014-11-29 08:39:46 +01:00
|
|
|
%if 0%{?suse_version} < 1310
|
2014-04-09 18:17:26 +02:00
|
|
|
install -d -m0755 %{buildroot}/lib/mkinitrd/scripts/
|
|
|
|
install -m 0755 %{SOURCE1} %{buildroot}/lib/mkinitrd/scripts/
|
|
|
|
install -m 0755 %{SOURCE4} %{buildroot}/lib/mkinitrd/scripts/
|
2014-11-29 08:39:46 +01:00
|
|
|
%endif
|
2014-04-09 18:17:26 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2013-07-29 17:35:55 +02:00
|
|
|
# don't install .a for now
|
2014-04-09 18:17:26 +02:00
|
|
|
rm -f %{buildroot}/%{_libdir}/*.a
|
2013-07-29 17:35:55 +02:00
|
|
|
|
2014-06-18 07:50:19 +02:00
|
|
|
%if 0%{!?for_debugging:1}
|
|
|
|
DEBUG_FILES="/sbin/btrfs-find-root
|
|
|
|
%{_sbindir}/btrfs-find-root
|
|
|
|
%_mandir/man8/btrfs-find-root.8.gz
|
|
|
|
/sbin/btrfs-select-super
|
|
|
|
%{_sbindir}/btrfs-select-super"
|
|
|
|
for file in $DEBUG_FILES; do
|
|
|
|
rm -f %{buildroot}$file
|
|
|
|
done
|
|
|
|
%endif
|
|
|
|
|
2013-07-29 17:35:55 +02:00
|
|
|
%post -n libbtrfs0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libbtrfs0 -p /sbin/ldconfig
|
2011-03-15 10:25:19 +01:00
|
|
|
|
2014-11-29 08:39:46 +01:00
|
|
|
%if 0%{?suse_version} >= 1310
|
|
|
|
%posttrans
|
|
|
|
%{?regenerate_initrd_posttrans}
|
|
|
|
%endif
|
|
|
|
|
2009-03-01 04:28:54 +01:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2012-02-21 12:15:43 +01:00
|
|
|
/sbin/fsck.btrfs
|
|
|
|
# mkinitrd utils
|
2011-03-15 10:25:19 +01:00
|
|
|
/sbin/btrfs
|
2012-02-21 12:15:43 +01:00
|
|
|
/sbin/btrfs-zero-log
|
2010-01-29 17:42:56 +01:00
|
|
|
/sbin/btrfs-convert
|
2012-02-21 12:15:43 +01:00
|
|
|
/sbin/btrfs-image
|
|
|
|
/sbin/btrfstune
|
2009-07-28 00:08:56 +02:00
|
|
|
/sbin/btrfsck
|
|
|
|
/sbin/mkfs.btrfs
|
2013-06-18 10:28:54 +02:00
|
|
|
/sbin/btrfs-debug-tree
|
2013-07-29 17:35:55 +02:00
|
|
|
/sbin/btrfs-show-super
|
2012-03-20 11:26:08 +01:00
|
|
|
%{_sbindir}/btrfs
|
|
|
|
%{_sbindir}/btrfs-zero-log
|
|
|
|
%{_sbindir}/btrfs-convert
|
|
|
|
%{_sbindir}/btrfs-image
|
|
|
|
%{_sbindir}/btrfstune
|
|
|
|
%{_sbindir}/btrfsck
|
|
|
|
%{_sbindir}/fsck.btrfs
|
|
|
|
%{_sbindir}/mkfs.btrfs
|
2013-06-18 10:28:54 +02:00
|
|
|
%{_sbindir}/btrfs-debug-tree
|
2013-07-29 17:35:55 +02:00
|
|
|
%{_sbindir}/btrfs-show-super
|
2014-11-29 08:39:46 +01:00
|
|
|
%if 0%{?suse_version} < 1310
|
2014-04-30 15:00:45 +02:00
|
|
|
%dir /lib/mkinitrd
|
|
|
|
%dir /lib/mkinitrd/scripts
|
2012-02-21 12:15:43 +01:00
|
|
|
/lib/mkinitrd/scripts/boot-btrfs.sh
|
2013-07-29 17:35:55 +02:00
|
|
|
/lib/mkinitrd/scripts/setup-btrfs.sh
|
2014-11-29 08:39:46 +01:00
|
|
|
%endif
|
2014-04-09 18:17:26 +02:00
|
|
|
%{_bindir}/btrfs-map-logical
|
|
|
|
%{_mandir}/man8/btrfs-image.8.gz
|
|
|
|
%{_mandir}/man8/btrfsck.8.gz
|
|
|
|
%{_mandir}/man8/fsck.btrfs.8.gz
|
|
|
|
%{_mandir}/man8/mkfs.btrfs.8.gz
|
|
|
|
%{_mandir}/man8/btrfs.8.gz
|
2014-09-08 21:28:13 +02:00
|
|
|
%{_mandir}/man5/btrfs.5.gz
|
2014-04-09 18:17:26 +02:00
|
|
|
%{_mandir}/man8/btrfs-convert.8.gz
|
|
|
|
%{_mandir}/man8/btrfs-debug-tree.8.gz
|
|
|
|
%{_mandir}/man8/btrfs-map-logical.8.gz
|
|
|
|
%{_mandir}/man8/btrfs-show-super.8.gz
|
|
|
|
%{_mandir}/man8/btrfs-zero-log.8.gz
|
|
|
|
%{_mandir}/man8/btrfstune.8.gz
|
2014-06-18 07:50:19 +02:00
|
|
|
%{_mandir}/man8/btrfs-balance.8.gz
|
|
|
|
%{_mandir}/man8/btrfs-check.8.gz
|
|
|
|
%{_mandir}/man8/btrfs-device.8.gz
|
|
|
|
%{_mandir}/man8/btrfs-filesystem.8.gz
|
|
|
|
%{_mandir}/man8/btrfs-inspect-internal.8.gz
|
|
|
|
%{_mandir}/man8/btrfs-property.8.gz
|
|
|
|
%{_mandir}/man8/btrfs-qgroup.8.gz
|
|
|
|
%{_mandir}/man8/btrfs-quota.8.gz
|
|
|
|
%{_mandir}/man8/btrfs-receive.8.gz
|
|
|
|
%{_mandir}/man8/btrfs-replace.8.gz
|
|
|
|
%{_mandir}/man8/btrfs-rescue.8.gz
|
|
|
|
%{_mandir}/man8/btrfs-restore.8.gz
|
|
|
|
%{_mandir}/man8/btrfs-scrub.8.gz
|
|
|
|
%{_mandir}/man8/btrfs-send.8.gz
|
|
|
|
%{_mandir}/man8/btrfs-subvolume.8.gz
|
|
|
|
|
|
|
|
%if 0%{?for_debugging:1}
|
|
|
|
/sbin/btrfs-find-root
|
|
|
|
%{_sbindir}/btrfs-find-root
|
|
|
|
%{_mandir}/man8/btrfs-find-root.8.gz
|
|
|
|
/sbin/btrfs-select-super
|
|
|
|
%{_sbindir}/btrfs-select-super
|
|
|
|
%endif
|
2013-07-29 17:35:55 +02:00
|
|
|
|
|
|
|
%files -n libbtrfs0
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libbtrfs.so.*
|
|
|
|
|
|
|
|
%files -n libbtrfs-devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%dir %{_includedir}/btrfs
|
|
|
|
%{_includedir}/btrfs/*
|
|
|
|
%{_libdir}/libbtrfs.so
|
2009-03-01 04:28:54 +01:00
|
|
|
|
2009-03-01 04:28:54 +01:00
|
|
|
%changelog
|