SHA256
1
0
forked from pool/judy

Accepting request 298555 from home:pluskalm:branches:devel:libraries:c_c++

- Use url for source
- Cleanup spec file with spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/298555
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/judy?expand=0&rev=7
This commit is contained in:
Ismail Dönmez 2015-04-22 12:17:45 +00:00 committed by Git OBS Bridge
parent 6ced86e728
commit ac50596d0d
4 changed files with 29 additions and 23 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:13ea977bf23fd1065e85359df40a94498ef18ea1cf197c56c97c1882c982fa63
size 762246

BIN
Judy-1.0.5.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Apr 22 11:14:26 UTC 2015 - mpluskal@suse.com
- Use url for source
- Cleanup spec file with spec-cleaner
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Oct 1 17:52:20 UTC 2012 - dmitry@roshchin.org Mon Oct 1 17:52:20 UTC 2012 - dmitry@roshchin.org

View File

@ -1,7 +1,7 @@
# #
# spec file for package judy # spec file for package judy
# #
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -11,22 +11,22 @@
# case the license is the MIT License). An "Open Source License" is a # case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
Name: judy
%define libname libJudy1 %define libname libJudy1
Name: judy
Version: 1.0.5 Version: 1.0.5
Release: 0 Release: 0
License: LGPL-2.1+
Summary: A general purpose dynamic array implemented as a C callable library Summary: A general purpose dynamic array implemented as a C callable library
Url: http://judy.sourceforge.net/ License: LGPL-2.1+
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Source0: Judy-%{version}.tar.bz2 Url: http://judy.sourceforge.net/
Source0: http://sourceforge.net/projects/judy/files/judy/Judy-%{version}/Judy-%{version}.tar.gz
# PATCH-FIX-OPENSUSE Judy-test-shared.patch -- use shared library for testing # PATCH-FIX-OPENSUSE Judy-test-shared.patch -- use shared library for testing
Patch0: Judy-test-shared.patch Patch0: Judy-test-shared.patch
BuildRequires: fdupes BuildRequires: fdupes
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -42,11 +42,11 @@ only by machine memory. Since Judy is designed as an unbounded array, the size o
a Judy array is not pre-allocated but grows and shrinks dynamically a Judy array is not pre-allocated but grows and shrinks dynamically
with the array population. with the array population.
%package -n %libname %package -n %{libname}
Summary: Dynamic libraries for Judy Summary: Dynamic libraries for Judy
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
%description -n %libname %description -n %{libname}
Judy is a C library that provides a state-of-the-art core technology that implements 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 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 array consumes memory only when it is populated, yet can grow to take advantage
@ -61,7 +61,7 @@ with the array population.
%package devel %package devel
Summary: Development files for Judy Summary: Development files for Judy
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %libname = %version Requires: %{libname} = %{version}
Recommends: %{name}-doc Recommends: %{name}-doc
%description devel %description devel
@ -79,26 +79,27 @@ This package contains documentation about Judy library and examples.
%prep %prep
%setup -q %setup -q
%patch -P 0 -p1 %patch0 -p1
%build %build
%configure --disable-static %configure \
--disable-static
# not parallel safe # not parallel safe
make -j1 make -j1
%check %check
make check make %{?_smp_mflags} check
%install %install
make install DESTDIR="%buildroot" make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print find %{buildroot} -type f -name "*.la" -delete -print
%fdupes -s %{buildroot}/%{_mandir} %fdupes -s %{buildroot}/%{_mandir}
%post -n %libname -p /sbin/ldconfig %post -n %{libname} -p /sbin/ldconfig
%postun -n %libname -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
@ -106,7 +107,7 @@ find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%{_libdir}/libJudy.so %{_libdir}/libJudy.so
%{_mandir}/man3/J* %{_mandir}/man3/J*
%files -n %libname %files -n %{libname}
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libJudy.so.1* %{_libdir}/libJudy.so.1*
@ -115,5 +116,4 @@ find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%doc AUTHORS COPYING ChangeLog doc/ext/README_deliver doc/ext/*.htm* doc/int/*.htm* %doc AUTHORS COPYING ChangeLog doc/ext/README_deliver doc/ext/*.htm* doc/int/*.htm*
%doc examples %doc examples
%changelog %changelog