File nilfs-utils.spec of Package nilfs-utils
#
# spec file for package nilfs-utils (Version 2.0.14)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: nilfs-utils
BuildRequires: libuuid-devel
License: GPL v2 or later
Group: System/Filesystems
AutoReqProv: on
Summary: Utilities for NILFS
Version: 2.0.14
Release: 1
Source: %{name}-%{version}.tar.bz2
Patch: nilfs-utils-install-fixes.diff
Url: http://www.nilfs.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains utility programs for NILFS v2.
%prep
%setup -q
%patch -p1
%build
autoreconf -fi
%configure
make %{?jobs:-j %jobs}
%install
make install DESTDIR=$RPM_BUILD_ROOT root_sbindir=/sbin root_libdir=/%{_lib}
# remove unneeded files
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
# remove devel files (not packaged for the time being)
rm -rf $RPM_BUILD_ROOT%{_includedir}
rm -f $RPM_BUILD_ROOT%{_libdir}/*.so
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%config(noreplace) /etc/nilfs_cleanerd.conf
/sbin/*
%{_bindir}/*
%{_libdir}/libnilfs.so.*
%{_mandir}/man?/*
# %{_includedir}/nilfs.h
# %{_includedir}/nilfs_fs.h
# %{_libdir}/libnilfs.so
%changelog