mdds/mdds.spec

112 lines
2.3 KiB
RPMSpec
Raw Normal View History

2010-07-08 04:16:14 +00:00
%global do_mem_tests 0
%global do_perf_tests 0
Name: mdds
2011-03-29 11:18:43 +00:00
Version: 0.5.2
Release: 1%{?dist}
2010-07-08 04:16:14 +00:00
Summary: A collection of multi-dimensional data structures and indexing algorithms
Group: Development/Libraries
License: MIT
URL: http://code.google.com/p/multidimalgorithm/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: http://multidimalgorithm.googlecode.com/files/%{name}_%{version}.tar.bz2
BuildRequires: boost-devel
%if %{do_mem_tests}
BuildRequires: valgrind
%endif
BuildArch: noarch
%description
A collection of multi-dimensional data structures and indexing algorithms.
It implements the following data structures:
* segment tree
2010-12-21 06:50:35 +00:00
* flat segment tree
2010-07-08 04:16:14 +00:00
* rectangle set
2010-12-21 06:50:35 +00:00
* point quad tree
* mixed type matrix
2010-07-08 04:16:14 +00:00
%package devel
Group: Development/Libraries
Summary: Headers for %{name}
Requires: boost-devel
%description devel
Headers for %{name}.
%prep
%setup -q -n %{name}_%{version}
# this is only used in tests
2010-11-16 10:56:50 +00:00
sed -i -e '/^CPPFLAGS/s/-Wall.*-std/%{optflags} -std/' Makefile.in
2010-07-08 04:16:14 +00:00
%build
2010-11-16 10:56:50 +00:00
%configure
2010-07-08 04:16:14 +00:00
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_includedir}
mkdir %{buildroot}/%{_includedir}/mdds
2010-11-16 10:56:50 +00:00
cp -pr include/mdds/* %{buildroot}/%{_includedir}/mdds
2010-07-08 04:16:14 +00:00
%check
make %{?_smp_mflags}
for t in fst pqt recset st; do
make test.$t
done
%if %{do_perf_tests}
for t in recset st; do
make test.$t.perf
done
make test.stl
%endif
%if %{do_mem_tests}
for t in fst pqt recset st; do
make test.$t.mem
done
%endif
2010-11-16 10:56:50 +00:00
2010-07-08 04:16:14 +00:00
%clean
rm -rf %{buildroot}
2010-11-16 10:56:50 +00:00
2010-07-08 04:16:14 +00:00
%files devel
%defattr(-,root,root,-)
%{_includedir}/mdds
%doc AUTHORS NEWS README
%changelog
2011-03-29 11:18:43 +00:00
* Tue Mar 29 2011 David Tardon <dtardon@redhat.com> - 0.5.2-1
* new version
* Thu Mar 24 2011 David Tardon <dtardon@redhat.com> - 0.5.1-3
- Resolves: rhbz#680766 fix a crash and two other bugs
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2011-01-08 15:06:40 +00:00
* Sat Jan 08 2011 David Tardon <dtardon@redhat.com> - 0.5.1-1
- new version
2010-12-21 06:50:35 +00:00
* Tue Dec 21 2010 David Tardon <dtardon@redhat.com> - 0.4.0-1
- new version
2010-11-16 10:56:50 +00:00
* Tue Nov 16 2010 David Tardon <dtardon@redhat.com> - 0.3.1-1
- new version
2010-07-08 04:16:14 +00:00
* Wed Jul 07 2010 Caolán McNamara <caolanm@redhat.com> - 0.3.0-2
- rpmlint warnings
* Wed Jun 30 2010 David Tardon <dtardon@redhat.com> - 0.3.0-1
- initial import