Move files to /usr

This commit is contained in:
Denis Silakov 2015-06-25 14:52:54 +03:00
parent 0ab515a7b2
commit d63a351cc3

View file

@ -1,6 +1,3 @@
%define _root_sbindir /sbin
%define _root_libdir /%{_lib}
%define major 0
%define libname %mklibname btrfs %{major}
%define devname %mklibname btrfs -d
@ -34,19 +31,19 @@ check, modify and correct any inconsistencies in the btrfs filesystem.
%files
%doc COPYING INSTALL
%{_root_sbindir}/btrfs
%{_root_sbindir}/btrfs-convert
%{_root_sbindir}/btrfs-debug-tree
%{_root_sbindir}/btrfs-find-root
%{_root_sbindir}/btrfs-image
%{_root_sbindir}/btrfs-map-logical
%{_root_sbindir}/btrfs-zero-log
%{_root_sbindir}/btrfsck
%{_root_sbindir}/btrfstune
%{_root_sbindir}/btrfs-select-super
%{_root_sbindir}/btrfs-show-super
%{_root_sbindir}/fsck.btrfs
%{_root_sbindir}/mkfs.btrfs
%{_sbindir}/btrfs
%{_sbindir}/btrfs-convert
%{_sbindir}/btrfs-debug-tree
%{_sbindir}/btrfs-find-root
%{_sbindir}/btrfs-image
%{_sbindir}/btrfs-map-logical
%{_sbindir}/btrfs-zero-log
%{_sbindir}/btrfsck
%{_sbindir}/btrfstune
%{_sbindir}/btrfs-select-super
%{_sbindir}/btrfs-show-super
%{_sbindir}/fsck.btrfs
%{_sbindir}/mkfs.btrfs
%{_mandir}/man5/btrfs.5.*
%{_mandir}/man8/btrfs.8.*
%{_mandir}/man8/btrfs-*.8*
@ -67,7 +64,7 @@ This package contains the library needed to run programs dynamically
linked with btrfs.
%files -n %{libname}
%{_root_libdir}/libbtrfs.so.%{major}*
%{_libdir}/libbtrfs.so.%{major}*
#----------------------------------------------------------------------------
@ -96,15 +93,9 @@ applications which will use btrfs.
%make CFLAGS="%{optflags} -include config.h -DBTRFS_FLAT_INCLUDES -D_XOPEN_SOURCE=700" LDFLAGS="%{ldflags}"
%install
%makeinstall_std \
bindir=%{_root_sbindir} \
libdir=%{_root_libdir} \
incdir=%{_includedir}/btrfs \
mandir=%{_mandir}
%makeinstall_std bindir=%{_sbindir}
rm -f %{buildroot}%{_root_libdir}/*.a
mkdir -p %{buildroot}%{_libdir}
mv %{buildroot}%{_root_libdir}/libbtrfs.so %{buildroot}%{_libdir}/
rm -f %{buildroot}%{_libdir}/*.a
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
cp %{SOURCE1} %{buildroot}%{_datadir}/bash-completion/completions/btrfs