File libaal.spec of Package libaal
#
# spec file for package libaal
#
# Copyright (c) 2014 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/
#
Name: libaal
Summary: A library providing application abstraction mechanisms used by reiser4progs
License: GPL-2.0
Group: System/Filesystems
Version: 1.0.6
Release: 0
Url: http://sf.net/projects/reiser4/
Source: http://downloads.sf.net/reiser4/libaal-%version.tar.gz
Patch1: libaal-1.0.5-rpmoptflags.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
%description
libaal includes device abstraction, libc independence code, and more.
%package -n libaal-1_0-6
Summary: A library providing application abstraction mechanisms used by reiser4progs
License: GPL-2.0
Group: System/Libraries
%description -n libaal-1_0-6
libaal includes device abstraction, libc independence code, and more.
%package -n libaal-minimal0
Summary: A library providing application abstraction mechanisms used by reiser4progs
License: GPL-2.0
Group: System/Libraries
%description -n libaal-minimal0
libaal includes device abstraction, libc independence code, and more.
%package devel
Summary: A library providing application abstraction mechanisms used by reiser4progs
License: GPL-2.0+
Group: Development/Libraries/C and C++
Requires: libaal-1_0-6 = %version
Requires: libaal-minimal0 = %version
%description devel
libaal includes device abstraction, libc independence code, and more.
%package devel-static
Summary: Static libraries for libaal development
License: GPL-2.0
Group: Development/Libraries/C and C++
Requires: %name-devel = %version
%description devel-static
libaal includes device abstraction, libc independence code, and more.
This subpackage contains the static versions of the libraries, for
use with programs that require them.
%prep
%setup -q
%patch -P 1 -p0
%build
autoreconf -fi
%configure --enable-static --with-pic
make %{?_smp_mflags}
%install
make %{?_smp_mflags} install DESTDIR="%buildroot"
rm -f "%buildroot/%_libdir"/*.la
%post -n libaal-1_0-6 -p /sbin/ldconfig
%postun -n libaal-1_0-6 -p /sbin/ldconfig
%post -n libaal-minimal0 -p /sbin/ldconfig
%postun -n libaal-minimal0 -p /sbin/ldconfig
%files -n libaal-1_0-6
%defattr(-,root,root)
%doc COPYING
%_libdir/libaal-1.0.so.6*
%files -n libaal-minimal0
%defattr(-,root,root)
%_libdir/libaal-minimal.so.0*
%files devel
%defattr(-,root,root)
%doc AUTHORS BUGS CREDITS ChangeLog README THANKS TODO
%_libdir/libaal*.so
%_includedir/aal
%_datadir/aclocal
%files devel-static
%defattr(-,root,root)
%_libdir/libaal*.a
%changelog