Blame SPECS/Judy.spec

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