File liberasurecode.spec of Package liberasurecode

#
# spec file for package liberasurecode
#
# Copyright (c) 2015 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.0.7
Release:        0
Summary:        liberasurecode is an Erasure Code API library with pluggable Erasure Code backends
License:        BSD-3-Clause
Group:          Development/Libraries/C and C++
Url:            https://bitbucket.org/tsg-/liberasurecode
Source:         %{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Unified Erasure Coding interface for common storage workloads.

%package -n %{libsoname}
Summary:        Erasure Code API library with pluggable Erasure Code backends
Group:          Development/Libraries/C and C++

%description -n %{libsoname}
Unified Erasure Coding interface for common storage workloads.

%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 for common storage workloads.

%prep
%setup -q

%build
%configure --disable-static
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}

%post -n %{libsoname} -p /sbin/ldconfig

%postun -n %{libsoname} -p /sbin/ldconfig

%files -n %{libsoname}
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_libdir}/libXorcode.so.*
%{_libdir}/liberasurecode.so.*
%{_libdir}/libnullcode.so.*

%files devel
%defattr(-,root,root)
%{_includedir}/*h
%{_libdir}/libXorcode.la
%{_libdir}/libXorcode.so
%{_libdir}/liberasurecode.la
%{_libdir}/liberasurecode.so
%{_libdir}/libnullcode.la
%{_libdir}/libnullcode.so

%changelog
openSUSE Build Service is sponsored by