commit 5c500b2d6c94e25bd20c2c7bb7d895c135a236b3788c34af3f998ea53cf6b0fa Author: Jan Engelhardt Date: Sat Sep 29 21:00:48 2012 +0000 Accepting request 136439 from home:Dmitry_R:branches:science OBS-URL: https://build.opensuse.org/request/show/136439 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/judy?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Judy-1.0.5.tar.bz2 b/Judy-1.0.5.tar.bz2 new file mode 100644 index 0000000..e0100a9 --- /dev/null +++ b/Judy-1.0.5.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:13ea977bf23fd1065e85359df40a94498ef18ea1cf197c56c97c1882c982fa63 +size 762246 diff --git a/Judy-test-shared.patch b/Judy-test-shared.patch new file mode 100644 index 0000000..3262352 --- /dev/null +++ b/Judy-test-shared.patch @@ -0,0 +1,13 @@ +--- judy-1.0.5.orig/test/Checkit 2007-05-14 21:02:16.000000000 +0400 ++++ judy-1.0.5/test/Checkit 2012-09-29 23:32:30.728249410 +0400 +@@ -4,8 +4,9 @@ + echo + echo "=== +++++++++ This test runs in 15 seconds on a PIII 750Mhz +++++++" + +-LIBJUDY=`find ../ -name libJudy.a` ++LIBJUDY=`find ../ -name libJudy.so` + JUDY_H=`find ../ -name Judy.h` ++export LD_LIBRARY_PATH=`dirname $LIBJUDY` + + echo "$CC -O SLcompare.c -DHASHMETHOD -o SL_Hash" + $CC -O SLcompare.c -DHASHMETHOD -o SL_Hash diff --git a/Judy.changes b/Judy.changes new file mode 100644 index 0000000..ebd0ec2 --- /dev/null +++ b/Judy.changes @@ -0,0 +1,12 @@ +------------------------------------------------------------------- +Sat Sep 29 19:40:04 UTC 2012 - dmitry@roshchin.org + +- spec file cleanup +- Use shared library for testing + * judy-test-shared.patch + +------------------------------------------------------------------- +Sat Aug 6 23:44:20 UTC 2011 - lars@linux-schulserver.de + +- initial version 1.0.5 + diff --git a/Judy.spec b/Judy.spec new file mode 100644 index 0000000..38effa4 --- /dev/null +++ b/Judy.spec @@ -0,0 +1,129 @@ +# +# 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