File liberasurecode.spec of Package liberasurecode
#
# spec file for package liberasurecode
#
# Copyright (c) 2017 SUSE LINUX 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/
#
%define libsoname liberasurecode1
Name: liberasurecode
Version: 1.5.0
Release: 0
Summary: Erasure Code API library with pluggable Erasure Code backends
License: BSD-3-Clause
Group: Development/Libraries/C and C++
Url: https://github.com/openstack/liberasurecode
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkg-config
Source0: %{name}-%{version}.tar.gz
%description
liberasurecode is an Erasure Code API library written in C with
pluggable Erasure Code backends.
%package -n %{libsoname}
Summary: Erasure Code API library with pluggable Erasure Code backends
Group: System/Libraries
%description -n %{libsoname}
liberasurecode is an Erasure Code API library written in C with
pluggable Erasure Code backends.
%package devel
Summary: liberasurecode development files
Group: Development/Libraries/C and C++
Requires: %{libsoname} = %{version}
%description devel
Development files for the Unified Erasure Coding interface.
%prep
%setup -q
%build
./autogen.sh
%configure --disable-static --disable-mmi
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%check
make test
%post -n %{libsoname} -p /sbin/ldconfig
%postun -n %{libsoname} -p /sbin/ldconfig
%files -n %{libsoname}
%doc ChangeLog README COPYING
%{_libdir}/libXorcode.so.*
%{_libdir}/liberasurecode.so.*
%{_libdir}/libnullcode.so.*
%{_libdir}/liberasurecode_rs_vand.so.*
%files devel
%{_includedir}/liberasurecode
%{_includedir}/config_liberasurecode.h
%{_includedir}/erasurecode*.h
%{_libdir}/libXorcode.la
%{_libdir}/libXorcode.so
%{_libdir}/liberasurecode.la
%{_libdir}/liberasurecode.so
%{_libdir}/libnullcode.la
%{_libdir}/libnullcode.so
%{_libdir}/liberasurecode_rs_vand.la
%{_libdir}/liberasurecode_rs_vand.so
%{_libdir}/pkgconfig/erasurecode-1.pc
%changelog