judy/Judy.spec

130 lines
4.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package judy
#
# 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: Judy
%define libname lib%{name}
Version: 1.0.5
%define somajor 1
Release: 0
License: LGPL-2.1+
Summary: A general purpose dynamic array implemented as a C callable library
Url: http://judy.sourceforge.net/
Group: Development/Libraries/C and C++
Source0: %{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE Judy-test-shared.patch -- use shared library for testing
Patch0: Judy-test-shared.patch
BuildRequires: fdupes
Requires: %{libname}%{somajor} = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Judy is a C library that provides a state-of-the-art core technology that implements
a sparse dynamic array. Judy arrays are declared simply with a null pointer. A Judy
array consumes memory only when it is populated, yet can grow to take advantage
of all available memory if desired.
Judy's key benefits are scalability, high performance, and memory efficiency. A Judy
array is extensible and can scale up to a very large number of elements, bounded
only by machine memory. Since Judy is designed as an unbounded array, the size of
a Judy array is not pre-allocated but grows and shrinks dynamically
with the array population.
%package -n %{libname}%{somajor}
Summary: Dynamic libraries for Judy
Group: Development/Libraries/C and C++
%description -n %{libname}%{somajor}
Judy is a C library that provides a state-of-the-art core technology that implements
a sparse dynamic array. Judy arrays are declared simply with a null pointer. A Judy
array consumes memory only when it is populated, yet can grow to take advantage
of all available memory if desired.
Judy's key benefits are scalability, high performance, and memory efficiency. A Judy
array is extensible and can scale up to a very large number of elements, bounded
only by machine memory. Since Judy is designed as an unbounded array, the size of
a Judy array is not pre-allocated but grows and shrinks dynamically
with the array population.
%package devel
Summary: Development files for Judy
Group: Development/Libraries/C and C++
Requires: %{libname}%{somajor} = %{version}
Recommends: %{name}-doc
%description devel
This package holds the development files for Judy.
%package doc
Summary: Development files for Judy
Group: Documentation/Other
%description doc
This package contains documentation about Judy library and examples.
%prep
%setup -q -n judy-%{version}
%patch0 -p1
%build
%configure --disable-static
make
%check
make check
%install
%makeinstall
install -dD -m 0755 %{buildroot}%{_docdir}/%{name}
install -m 0644 \
AUTHORS COPYING ChangeLog \
doc/ext/README_deliver \
doc/ext/*.htm* doc/int/*.htm* \
%{buildroot}%{_docdir}/%{name}
cp -r examples %{buildroot}%{_docdir}/%{name}/
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%fdupes -s %{buildroot}/%{_mandir}
%clean
rm -rf %{buildroot}
%post -n %{libname}%{somajor} -p /sbin/ldconfig
%postun -n %{libname}%{somajor} -p /sbin/ldconfig
%files devel
%defattr(-,root,root)
%{_includedir}/%{name}.h
%{_libdir}/%{libname}.so
%{_mandir}/man3/J*
%files -n %{libname}%{somajor}
%defattr(-,root,root)
%{_libdir}/%{libname}.so.*
%files doc
%defattr(-,root,root)
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/*
%{_docdir}/%{name}/examples/*
%changelog