From ac50596d0d77b17f28ea0b5f3021c5b38c45b41ee7d0a8fb0075d3bf04b36703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 22 Apr 2015 12:17:45 +0000 Subject: [PATCH] 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 --- Judy-1.0.5.tar.bz2 | 3 --- Judy-1.0.5.tar.gz | 3 +++ judy.changes | 6 ++++++ judy.spec | 40 ++++++++++++++++++++-------------------- 4 files changed, 29 insertions(+), 23 deletions(-) delete mode 100644 Judy-1.0.5.tar.bz2 create mode 100644 Judy-1.0.5.tar.gz diff --git a/Judy-1.0.5.tar.bz2 b/Judy-1.0.5.tar.bz2 deleted file mode 100644 index e0100a9..0000000 --- a/Judy-1.0.5.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:13ea977bf23fd1065e85359df40a94498ef18ea1cf197c56c97c1882c982fa63 -size 762246 diff --git a/Judy-1.0.5.tar.gz b/Judy-1.0.5.tar.gz new file mode 100644 index 0000000..469ab81 --- /dev/null +++ b/Judy-1.0.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d2704089f85fdb6f2cd7e77be21170ced4b4375c03ef1ad4cf1075bd414a63eb +size 1147847 diff --git a/judy.changes b/judy.changes index 835bbbe..e4cc926 100644 --- a/judy.changes +++ b/judy.changes @@ -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 diff --git a/judy.spec b/judy.spec index f8e509c..28d8985 100644 --- a/judy.spec +++ b/judy.spec @@ -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