a3583b
Name:		Judy
a3583b
Version:	1.0.5
a3583b
Release:	18%{?dist}
a3583b
Summary:	General purpose dynamic array
a3583b
License:	LGPLv2+
a3583b
URL:		http://sourceforge.net/projects/judy/
a3583b
Source0:	http://downloads.sf.net/judy/Judy-%{version}.tar.gz
a3583b
# Make tests use shared instead of static libJudy
a3583b
Patch0:		Judy-1.0.4-test-shared.patch
a3583b
# The J1* man pages were incorrectly being symlinked to Judy, rather than Judy1
a3583b
# This patch corrects that; submitted upstream 2008/11/27
a3583b
Patch1:		Judy-1.0.4-fix-Judy1-mans.patch
a3583b
# Fix some code with undefined behavior, commented on and removed by gcc
a3583b
Patch2:		Judy-1.0.5-undefined-behavior.patch
a3583b
BuildRequires:	coreutils
a3583b
BuildRequires:	gawk
a3583b
BuildRequires:	gcc >= 4.1
a3583b
BuildRequires:	make
a3583b
BuildRequires:	sed
a3583b
a3583b
%description
a3583b
Judy is a C library that provides a state-of-the-art core technology
a3583b
that implements a sparse dynamic array. Judy arrays are declared
a3583b
simply with a null pointer. A Judy array consumes memory only when it
a3583b
is populated, yet can grow to take advantage of all available memory
a3583b
if desired. Judy's key benefits are scalability, high performance, and
a3583b
memory efficiency. A Judy array is extensible and can scale up to a
a3583b
very large number of elements, bounded only by machine memory. Since
a3583b
Judy is designed as an unbounded array, the size of a Judy array is
a3583b
not pre-allocated but grows and shrinks dynamically with the array
a3583b
population.
a3583b
a3583b
%package devel
a3583b
Summary:	Development libraries and headers for Judy
a3583b
Requires:	%{name} = %{version}-%{release}
a3583b
a3583b
%description devel
a3583b
This package contains the development libraries and header files
a3583b
for developing applications that use the Judy library.
a3583b
a3583b
%prep
a3583b
%setup -q -n judy-%{version}
a3583b
%patch0 -p1 -b .test-shared
a3583b
%patch1 -p1 -b .fix-Judy1-mans
a3583b
%patch2 -p1 -b .behavior
a3583b
a3583b
%build
a3583b
export CFLAGS="%{optflags} -fno-strict-aliasing -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-copy-prop -fno-tree-vrp"
a3583b
%configure --disable-static
a3583b
make
a3583b
#%{?_smp_mflags}
a3583b
# fails to compile properly with parallel make:
a3583b
# http://sourceforge.net/tracker/index.php?func=detail&aid=2129019&group_id=55753&atid=478138
a3583b
a3583b
%install
a3583b
make install DESTDIR=%{buildroot} INSTALL="install -p"
a3583b
# get rid of static libs and libtool archives
a3583b
rm -f %{buildroot}%{_libdir}/*.{a,la}
a3583b
# clean out zero length and generated files from doc tree
a3583b
rm -rf doc/man
a3583b
rm -f doc/Makefile* doc/ext/README_deliver
a3583b
[ -s doc/ext/COPYRIGHT ] || rm -f doc/ext/COPYRIGHT
a3583b
[ -s doc/ext/LICENSE ] || rm -f doc/ext/LICENSE
a3583b
a3583b
%check
a3583b
cd test
a3583b
./Checkit
a3583b
cd -
a3583b
a3583b
%if (0%{?rhel} && 0%{?rhel} <= 7) || (0%{?fedora} && 0%{?fedora} <= 27)
a3583b
# ldconfig scriptlets replaced by RPM File Triggers from Fedora 28
a3583b
%post -p /sbin/ldconfig
a3583b
%postun -p /sbin/ldconfig
a3583b
%endif
a3583b
a3583b
%files
a3583b
%if 0%{?_licensedir:1}
a3583b
%license COPYING
a3583b
%else
a3583b
%doc COPYING
a3583b
%endif
a3583b
%doc AUTHORS ChangeLog README examples/
a3583b
%{_libdir}/libJudy.so.*
a3583b
a3583b
%files devel
a3583b
%doc doc
a3583b
%{_includedir}/Judy.h
a3583b
%{_libdir}/libJudy.so
a3583b
%{_mandir}/man3/J*.3*
a3583b
a3583b
%changelog
a3583b
* Thu Oct 11 2018 Michal Schorm <mschorm@redhat.com> - 1.0.5-18
a3583b
- Remove README.Fedora; no longer needed since 1.0.5 version
a3583b
- Resolves: #1638717
a3583b
a3583b
* Thu Feb 08 2018 Paul Howarth <paul@city-fan.org> - 1.0.5-17
a3583b
- ldconfig scriptlets replaced by RPM File Triggers from Fedora 28
a3583b
- Drop legacy BuildRoot: and Group: tags
a3583b
- Drop redundant explicit buildroot cleaning
a3583b
- Specify all explicitly-used build requirements
a3583b
- Use %%license where possible
a3583b
- Drop %%defattr, redundant since rpm 4.4
a3583b
a3583b
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-16
a3583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a3583b
a3583b
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-15
a3583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
a3583b
a3583b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-14
a3583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a3583b
a3583b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-13
a3583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a3583b
a3583b
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-12
a3583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a3583b
a3583b
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-11
a3583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a3583b
a3583b
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-10
a3583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
a3583b
a3583b
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-9
a3583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a3583b
a3583b
* Tue Feb 18 2014 Paul Howarth <paul@city-fan.org> - 1.0.5-8
a3583b
- Fix some code with undefined behavior
a3583b
- Build with -fno-strict-aliasing
a3583b
- Disable various compiler tree optimizations that trigger reproducible
a3583b
  crashes in gtkwave without generating compiler warnings (#1064090)
a3583b
a3583b
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-7
a3583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a3583b
a3583b
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-6
a3583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a3583b
a3583b
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-5
a3583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a3583b
a3583b
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-4
a3583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a3583b
a3583b
* Fri Jan  6 2012 Paul Howarth <paul@city-fan.org> - 1.0.5-3
a3583b
- Rebuilt for gcc 4.7
a3583b
a3583b
* Mon Feb  7 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-2
a3583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a3583b
a3583b
* Sun Jul 18 2010 Paul Howarth <paul@city-fan.org> - 1.0.5-1
a3583b
- Update to 1.0.5
a3583b
  - Added proper clean targets to enable multiple builds
a3583b
  - Added examples directory
a3583b
  - Correctly detects 32/64-bit build environment
a3583b
  - Allow explicit configure for 32/64-bit environment
a3583b
- Cosmetic spec file clean-ups
a3583b
a3583b
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-6
a3583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a3583b
a3583b
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-5
a3583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a3583b
a3583b
* Sat Dec 13 2008 Charles R. Anderson <cra@wpi.edu> - 1.0.4-4
a3583b
- For Judy1 man page fix, patch Makefile.{am,in} instead of
a3583b
  relying on autotools to regenerate the latter
a3583b
- Add README.Fedora with upstream's license explanation
a3583b
a3583b
* Sun Nov 30 2008 Charles R. Anderson <cra@wpi.edu> - 1.0.4-3
a3583b
- Fix Judy1 man page symlinks
a3583b
- Use valid tag License: LGPLv2+ confirmed with upstream
a3583b
- Use version macro in Source0
a3583b
- Remove Makefiles from installed doc tree
a3583b
a3583b
* Thu Nov 27 2008 Charles R. Anderson <cra@wpi.edu> - 1.0.4-2
a3583b
- Patch tests to run with shared library
a3583b
- Run tests in check section
a3583b
a3583b
* Sun Oct 05 2008 Charles R. Anderson <cra@wpi.edu> - 1.0.4-1
a3583b
- Initial package for Fedora