Accepting request 298576 from devel:libraries:c_c++

1

OBS-URL: https://build.opensuse.org/request/show/298576
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/judy?expand=0&rev=5
This commit is contained in:
Dominique Leuenberger 2015-04-23 06:04:48 +00:00 committed by Git OBS Bridge
commit 222cd3a78c
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

View File

@ -1,7 +1,7 @@
#
# 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
# 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
# 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 libJudy1
Name: judy
Version: 1.0.5
Release: 0
License: LGPL-2.1+
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++
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
Patch0: Judy-test-shared.patch
BuildRequires: fdupes
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
with the array population.
%package -n %libname
%package -n %{libname}
Summary: Dynamic libraries for Judy
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
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
@ -61,7 +61,7 @@ with the array population.
%package devel
Summary: Development files for Judy
Group: Development/Libraries/C and C++
Requires: %libname = %version
Requires: %{libname} = %{version}
Recommends: %{name}-doc
%description devel
@ -71,7 +71,7 @@ This package holds the development files for Judy.
Summary: Development files for Judy
Group: Documentation/Other
%if 0%{?suse_version} >= 1130 || 0%{?fedora_version}
BuildArch: noarch
BuildArch: noarch
%endif
%description doc
@ -79,26 +79,27 @@ This package contains documentation about Judy library and examples.
%prep
%setup -q
%patch -P 0 -p1
%patch0 -p1
%build
%configure --disable-static
%configure \
--disable-static
# not parallel safe
make -j1
%check
make check
make %{?_smp_mflags} check
%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}
%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
%defattr(-,root,root)
@ -106,7 +107,7 @@ find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%{_libdir}/libJudy.so
%{_mandir}/man3/J*
%files -n %libname
%files -n %{libname}
%defattr(-,root,root)
%{_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 examples
%changelog