Summary: Utilities belonging to the btrfs filesystem
+Summary(pl.UTF-8): Narzędzia należące do systemu plików btrfs
Name: btrfs-progs
-Version: 3.12
+Version: 4.5.2
Release: 1
License: GPL v2
Group: Applications/System
-Source0: https://www.kernel.org/pub/linux/kernel/people/mason/btrfs-progs/%{name}-v%{version}.tar.xz
-# Source0-md5: cd96bb73acd864e577cddba5fe310650
+Source0: https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/%{name}-v%{version}.tar.xz
+# Source0-md5: 10d57fdfc791825e906aa7bd783d2da3
+Patch0: %{name}-man.patch
URL: http://btrfs.wiki.kernel.org/
BuildRequires: acl-devel
+BuildRequires: asciidoc
+BuildRequires: autoconf >= 2.60
BuildRequires: e2fsprogs-devel
BuildRequires: libblkid-devel
+BuildRequires: libcom_err-devel
BuildRequires: libuuid-devel
-BuildRequires: lzo-devel
+BuildRequires: lzo-devel >= 2
+BuildRequires: pkgconfig
BuildRequires: tar >= 1:1.22
+BuildRequires: xmlto
BuildRequires: xz
BuildRequires: zlib-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
implementing advanced features while focusing on fault tolerance,
repair and easy administration.
+%description -l pl.UTF-8
+Btrfs to nowy system plików dla Linuksa oparty na zasadzie kopiowania
+przy zapisie (copy-on-write), którego celem jest zaimplementowanie
+zaawansowanych możliwości ze szczególnym naciskiem na odporność na
+awarie, naprawę i łatwe administrowanie.
+
%package devel
-Summary: btrfs filesystem-specific libraries and headers
+Summary: Header files for btrfs filesystem-specific library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dla systemu plików btrfs
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
-btrfs-progs-devel contains the libraries and header files needed to
-develop btrfs filesystem-specific programs.
-
-You should install btrfs-progs-devel if you want to develop btrfs
+This package contains the header files needed to develop btrfs
filesystem-specific programs.
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe potrzebne przy tworzeniu programów
+przeznaczonych dla systemu plików btrfs.
+
+%package static
+Summary: Static btrfs filesystem library
+Summary(pl.UTF-8): Statyczna biblioteka dla systemu plików btrfs
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static btrfs filesystem library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka dla systemu plików btrfs.
+
%prep
%setup -q -n %{name}-v%{version}
+%patch0 -p1
%build
+%{__aclocal}
+%{__autoconf}
+%configure
%{__make} \
- V=1 \
- CC="%{__cc}" \
- CFLAGS="%{rpmcppflags} %{rpmcflags} -fno-strict-aliasing"
+ V=1
%install
rm -rf $RPM_BUILD_ROOT
ln -sf btrfsck $RPM_BUILD_ROOT%{_sbindir}/fsck.btrfs
-rm $RPM_BUILD_ROOT%{_libdir}/*.a
-
%clean
rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_sbindir}/btrfs-map-logical
%attr(755,root,root) %{_sbindir}/btrfs-zero-log
%attr(755,root,root) %{_sbindir}/btrfs-find-root
+%attr(755,root,root) %{_sbindir}/btrfs-select-super
%attr(755,root,root) %{_sbindir}/btrfs-show-super
%attr(755,root,root) %{_libdir}/libbtrfs.so.*.*
-%ghost %{_libdir}/libbtrfs.so.0
-%{_mandir}/man8/btrfs-image.8*
-%{_mandir}/man8/btrfsck.8*
-%{_mandir}/man8/mkfs.btrfs.8*
+%attr(755,root,root) %ghost %{_libdir}/libbtrfs.so.0
+%{_mandir}/man5/btrfs.5*
%{_mandir}/man8/btrfs.8*
-%{_mandir}/man8/btrfs-convert.8*
-%{_mandir}/man8/btrfs-debug-tree.8*
-%{_mandir}/man8/btrfs-find-root.8*
-%{_mandir}/man8/btrfs-map-logical.8*
-%{_mandir}/man8/btrfs-show-super.8*
-%{_mandir}/man8/btrfs-zero-log.8*
+%{_mandir}/man8/btrfs-*.8*
+%{_mandir}/man8/btrfsck.8*
%{_mandir}/man8/btrfstune.8*
+%{_mandir}/man8/fsck.btrfs.8*
+%{_mandir}/man8/mkfs.btrfs.8*
%files devel
%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libbtrfs.so
%{_includedir}/btrfs
-%{_libdir}/libbtrfs.so
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libbtrfs.a