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