| 1 | Name: Judy |
|---|
| 2 | Version: 1.0.5 |
|---|
| 3 | Release: 1%{?_dist_release} |
|---|
| 4 | Summary: General purpose dynamic array |
|---|
| 5 | |
|---|
| 6 | Group: System Environment/Libraries |
|---|
| 7 | # The source code itself says: |
|---|
| 8 | # "GNU Lesser General Public License as published by the |
|---|
| 9 | # Free Software Foundation; either version 2 of the License, |
|---|
| 10 | # or (at your option) any later version." |
|---|
| 11 | # This will probably change to LGPLv2 in a future upstream release, |
|---|
| 12 | # but until then, LGPLv2+ is the proper license. Confirmed |
|---|
| 13 | # with upstream on 2008/11/28. |
|---|
| 14 | License: LGPLv2+ |
|---|
| 15 | URL: http://sourceforge.net/projects/judy/ |
|---|
| 16 | Source0: http://downloads.sourceforge.net/judy/Judy-%{version}.tar.gz |
|---|
| 17 | Source1: README.Fedora |
|---|
| 18 | # Make tests use shared instead of static libJudy. |
|---|
| 19 | Patch0: Judy-1.0.4-test-shared.patch |
|---|
| 20 | # The J1* man pages were incorrectly being symlinked to Judy, rather |
|---|
| 21 | # than Judy1. This patch corrects that. Submitted upstream 2008/11/27. |
|---|
| 22 | Patch1: Judy-1.0.4-fix-Judy1-mans.patch |
|---|
| 23 | |
|---|
| 24 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 25 | |
|---|
| 26 | #BuildRequires: |
|---|
| 27 | #Requires: |
|---|
| 28 | |
|---|
| 29 | %description |
|---|
| 30 | Judy is a C library that provides a state-of-the-art core technology |
|---|
| 31 | that implements a sparse dynamic array. Judy arrays are declared |
|---|
| 32 | simply with a null pointer. A Judy array consumes memory only when it |
|---|
| 33 | is populated, yet can grow to take advantage of all available memory |
|---|
| 34 | if desired. Judy's key benefits are scalability, high performance, and |
|---|
| 35 | memory efficiency. A Judy array is extensible and can scale up to a |
|---|
| 36 | very large number of elements, bounded only by machine memory. Since |
|---|
| 37 | Judy is designed as an unbounded array, the size of a Judy array is |
|---|
| 38 | not pre-allocated but grows and shrinks dynamically with the array |
|---|
| 39 | population. |
|---|
| 40 | |
|---|
| 41 | |
|---|
| 42 | %package devel |
|---|
| 43 | Summary: Development libraries and headers for Judy |
|---|
| 44 | Group: Development/Libraries |
|---|
| 45 | Requires: %{name} = %{version}-%{release} |
|---|
| 46 | |
|---|
| 47 | %description devel |
|---|
| 48 | This package contains the development libraries and header files |
|---|
| 49 | for developing applications that use the Judy library. |
|---|
| 50 | |
|---|
| 51 | |
|---|
| 52 | %prep |
|---|
| 53 | %setup -q -n judy-%{version} |
|---|
| 54 | %patch0 -p1 -b .test-shared |
|---|
| 55 | %patch1 -p1 -b .fix-Judy1-mans |
|---|
| 56 | cp -p %{SOURCE1} . |
|---|
| 57 | |
|---|
| 58 | |
|---|
| 59 | %build |
|---|
| 60 | %configure --disable-static |
|---|
| 61 | make |
|---|
| 62 | #%{?_smp_mflags} |
|---|
| 63 | # fails to compile properly with parallel make: |
|---|
| 64 | # http://sourceforge.net/tracker/index.php?func=detail&aid=2129019&group_id=55753&atid=478138 |
|---|
| 65 | |
|---|
| 66 | |
|---|
| 67 | %install |
|---|
| 68 | rm -rf $RPM_BUILD_ROOT |
|---|
| 69 | make install DESTDIR=$RPM_BUILD_ROOT |
|---|
| 70 | # get rid of static libs and libtool archives |
|---|
| 71 | rm -f $RPM_BUILD_ROOT/%{_libdir}/*.{a,la} |
|---|
| 72 | # clean out zero length and generated files from doc tree |
|---|
| 73 | rm -rf doc/man |
|---|
| 74 | rm -f doc/Makefile* doc/ext/README_deliver |
|---|
| 75 | [ -s doc/ext/COPYRIGHT ] || rm -f doc/ext/COPYRIGHT |
|---|
| 76 | [ -s doc/ext/LICENSE ] || rm -f doc/ext/LICENSE |
|---|
| 77 | |
|---|
| 78 | |
|---|
| 79 | %check |
|---|
| 80 | cd test |
|---|
| 81 | ./Checkit |
|---|
| 82 | |
|---|
| 83 | |
|---|
| 84 | %clean |
|---|
| 85 | rm -rf $RPM_BUILD_ROOT |
|---|
| 86 | |
|---|
| 87 | %post -p /sbin/ldconfig |
|---|
| 88 | |
|---|
| 89 | %postun -p /sbin/ldconfig |
|---|
| 90 | |
|---|
| 91 | |
|---|
| 92 | %files |
|---|
| 93 | %defattr(-,root,root,-) |
|---|
| 94 | %doc AUTHORS ChangeLog COPYING README README.Fedora |
|---|
| 95 | %{_libdir}/*.so.* |
|---|
| 96 | |
|---|
| 97 | %files devel |
|---|
| 98 | %defattr(-,root,root,-) |
|---|
| 99 | %doc doc |
|---|
| 100 | %{_libdir}/*.so |
|---|
| 101 | %{_includedir}/* |
|---|
| 102 | %{_mandir}/man3/* |
|---|
| 103 | |
|---|
| 104 | |
|---|
| 105 | %changelog |
|---|
| 106 | * Sat Feb 11 2012 NAKAMURA Kenta <kenta@vinelinux.org> - 1.0.5-1 |
|---|
| 107 | - updated to 1.0.5 |
|---|
| 108 | |
|---|
| 109 | * Sun Jun 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.4-7 |
|---|
| 110 | - Initial build for Vine Linux |
|---|
| 111 | |
|---|
| 112 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-6 |
|---|
| 113 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
|---|
| 114 | |
|---|
| 115 | * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-5 |
|---|
| 116 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
|---|
| 117 | |
|---|
| 118 | * Sat Dec 13 2008 Charles R. Anderson <cra@wpi.edu> 1.0.4-4 |
|---|
| 119 | - for Judy1 man page fix, patch Makefile.{am,in} instead of |
|---|
| 120 | relying on autotools to regenerate the latter. |
|---|
| 121 | - Add README.Fedora with upstream's license explanation. |
|---|
| 122 | |
|---|
| 123 | * Thu Nov 30 2008 Charles R. Anderson <cra@wpi.edu> 1.0.4-3 |
|---|
| 124 | - fix Judy1 man page symlinks |
|---|
| 125 | - use valid tag License: LGPLv2+ confirmed with upstream |
|---|
| 126 | - use version macro in Source0 |
|---|
| 127 | - remove Makefiles from installed doc tree |
|---|
| 128 | |
|---|
| 129 | * Thu Nov 27 2008 Charles R. Anderson <cra@wpi.edu> 1.0.4-2 |
|---|
| 130 | - patch tests to run with shared library |
|---|
| 131 | - run tests in check section |
|---|
| 132 | |
|---|
| 133 | * Sun Oct 05 2008 Charles R. Anderson <cra@wpi.edu> 1.0.4-1 |
|---|
| 134 | - Initial package for Fedora |
|---|