LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File judy.spec of Package judy (Project home:h31)

Name:           libJudy1
%define real_name judy
Version:        1.0.5
Release:        1
BuildRequires:	lzma fdupes
License:        GPL v2 or later
Source:         Judy-%{version}.tar.lzma
Group:          Development/Libraries
Summary:        Judy is a general purpose dynamic array implemented as a C callable library
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.
Judy combines scalability with ease of use. The Judy API is accessed with simple insert, retrieve, and delete calls that do not require extensive programming. Tuning and configuring are not required (in fact not even possible). In addition, sort, search, count, and sequential access capabilities are built into Judy's design.
Judy can be used whenever a developer needs dynamically sized arrays, associative arrays or a simple-to-use interface that requires no rework for expansion or contraction.
Judy can replace many common data structures, such as arrays, sparse arrays, hash tables, B-trees, binary trees, linear lists, skiplists, other sort and search algorithms, and counting functions. 

%prep
%setup -q -n %{real_name}-%{version}

%build
%configure
make

%install
make DESTDIR=%buildroot install
%fdupes -s $RPM_BUILD_ROOT

%clean
rm -rf %buildroot

%files
%defattr(-,root,root)
%{_libdir}/libJudy.so.1.0.3

%post -n %{name} -p /sbin/ldconfig  
%postun -n %{name} -p /sbin/ldconfig 

%package -n %{name}-devel
Group:          Development/Libraries
Requires:	%{name} = %{version}
Summary:        Judy is a general purpose dynamic array implemented as a C callable library
%description -n %{name}-devel
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.
Judy combines scalability with ease of use. The Judy API is accessed with simple insert, retrieve, and delete calls that do not require extensive programming. Tuning and configuring are not required (in fact not even possible). In addition, sort, search, count, and sequential access capabilities are built into Judy's design.
Judy can be used whenever a developer needs dynamically sized arrays, associative arrays or a simple-to-use interface that requires no rework for expansion or contraction.
Judy can replace many common data structures, such as arrays, sparse arrays, hash tables, B-trees, binary trees, linear lists, skiplists, other sort and search algorithms, and counting functions. 
%post -n %{name}-devel -p /sbin/ldconfig  
%postun -n %{name}-devel -p /sbin/ldconfig  

%files -n %{name}-devel
%defattr(-,root,root)
/usr/include/Judy.h
%{_libdir}/libJudy.so
%{_libdir}/libJudy.so.1
%{_libdir}/libJudy.a
%{_libdir}/libJudy.la

%package -n %{name}-doc
Group:          Documentation/Man
Requires:	%{name} = %{version}
Summary:        Judy is a general purpose dynamic array implemented as a C callable library
%description -n %{name}-doc
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.
Judy combines scalability with ease of use. The Judy API is accessed with simple insert, retrieve, and delete calls that do not require extensive programming. Tuning and configuring are not required (in fact not even possible). In addition, sort, search, count, and sequential access capabilities are built into Judy's design.
Judy can be used whenever a developer needs dynamically sized arrays, associative arrays or a simple-to-use interface that requires no rework for expansion or contraction.
Judy can replace many common data structures, such as arrays, sparse arrays, hash tables, B-trees, binary trees, linear lists, skiplists, other sort and search algorithms, and counting functions. 

%files -n %{name}-doc
%defattr(-,root,root)
%{_mandir}/man3/*

%changelog
* Thu Jan 8 2009 - h31mail@yandex.com
- updated to 1.1.7