File libucl1.spec of Package libucl1
#
# spec file for package libucl1
#
# Copyright (c) 2012 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: libucl1
Version: 1.03
Release: 0
Source0: ucl-%{version}.tar.bz2
Url: http://www.oberhumer.com/opensource/ucl/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: The UCL Compression Library
License: GPL-2.0+
Group: System/Libraries
Obsoletes: ucl < %{version}
Provides: ucl = %{version}
%description
This package contains portable lossless data compression library
written in ANSI C. UCL implements a number of compression algorithms
that achieve an excellent compression ratio while allowing *very* fast
decompression. Decompression requires no additional memory. UCL is
OpenSource reimplementation of some NRV compression algorithms.
Authors:
--------
Markus F.X.J. Oberhumer <markus@oberhumer.com>
%package devel
Summary: Development Files For UCL Library
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: glibc-devel
%description devel
Headers and other development files for UCL library.
%prep
%setup -q -n ucl-%{version}
%build
%configure --disable-static --enable-shared --with-pic
%{__make} %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
%{__rm} -f %{buildroot}%{_libdir}/*.la
%check
make check
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%{_libdir}/libucl.so.*
%doc COPYING NEWS INSTALL README THANKS TODO
%files devel
%defattr(-,root,root)
%{_prefix}/include/ucl
%{_libdir}/libucl.so
%changelog