btrfs-progs/btrfs-progs.spec

144 lines
4.0 KiB
RPMSpec
Raw Permalink Normal View History

Name: btrfs-progs
Version: 3.16.2
Release: 1mamba
Summary: Userspace utilities for btrfs filesystem
Group: System/Kernel and Hardware
Vendor: openmamba
Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com>
URL: http://btrfs.wiki.kernel.org/index.php/Main_Page
# git clone git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git
# tar cJf ../SOURCES/btrfs-progs-0.19.git20120702.tar.xz btrfs-progs/
Source: git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git/v%{version}/btrfs-progs-%{version}.tar.bz2
#Source: http://www.kernel.org/pub/linux/kernel/people/mason/btrfs/btrfs-progs-%{version}.tar.xz
Patch0: %{name}-0.19-glibc-2.12.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libe2fs-devel
BuildRequires: libuuid-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: libacl-devel
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
The btrfs-progs package provides all the userpsace programs needed to create, check, modify and correct any inconsistencies in the btrfs filesystem.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%prep
%setup -q
#%patch0 -p1
%build
%make \
prefix=%{_prefix} \
bindir=/sbin \
mandir=%{_mandir} \
incdir=%{_includedir}/btrfs \
libdir=%{_libdir}
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall \
prefix=%{_prefix} \
bindir=/sbin \
mandir=%{_mandir} \
incdir=%{_includedir}/btrfs \
libdir=%{_libdir}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name}
/sbin/ldconfig
:
%postun -n lib%{name}
/sbin/ldconfig
:
%files
%defattr(-,root,root)
/sbin/btrfs
/sbin/btrfs-find-root
/sbin/btrfs-image
/sbin/btrfs-map-logical
/sbin/btrfs-show-super
#/sbin/btrfs-restore
/sbin/btrfs-zero-log
/sbin/btrfstune
/sbin/btrfsck
/sbin/btrfs-convert
#/sbin/btrfsctl
/sbin/btrfs-debug-tree
#/sbin/btrfs-show
#/sbin/btrfs-vol
/sbin/fsck.btrfs
/sbin/mkfs.btrfs
%{_mandir}/man5/btrfs.5*
%{_mandir}/man8/btrfs.8*
%{_mandir}/man8/btrfs-*.8*
%{_mandir}/man8/btrfsck.8*
%{_mandir}/man8/btrfstune.8*
%{_mandir}/man8/fsck.btrfs.8*
%{_mandir}/man8/mkfs.btrfs.8*
%doc COPYING
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libbtrfs.so.*
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/btrfs
%{_includedir}/btrfs/*.h
%{_libdir}/libbtrfs.a
%{_libdir}/libbtrfs.so
%changelog
* Sun Oct 05 2014 Automatic Build System <autodist@mambasoft.it> 3.16.2-1mamba
- automatic version update by autodist
* Thu Oct 02 2014 Automatic Build System <autodist@mambasoft.it> 3.16.1-1mamba
- automatic version update by autodist
* Fri Sep 05 2014 Automatic Build System <autodist@mambasoft.it> 3.16-1mamba
- automatic version update by autodist
* Sat Jun 07 2014 Automatic Build System <autodist@mambasoft.it> 3.14.2-1mamba
- automatic version update by autodist
* Tue May 06 2014 Automatic Build System <autodist@mambasoft.it> 3.14.1-1mamba
- automatic version update by autodist
* Sun Apr 13 2014 Automatic Build System <autodist@mambasoft.it> 3.14-1mamba
- automatic version update by autodist
* Mon Dec 23 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3.12-1mamba
- update to 3.12
* Mon Jul 02 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.19.git20120702-1mamba
- update to 0.19.git20120702
* Thu Sep 01 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.19-2mamba
- added build patch for glibc >= 2.12
* Tue Aug 25 2009 Davide Madrisan <davide.madrisan@gmail.com> 0.19-1mamba
- package created by autospec