f7236f5
Name:           normaliz
3473857
Version:        2.7
6c20703
Release:        4%{?dist}.2
f7236f5
Summary:        A tool for mathematical computations
f7236f5
f7236f5
Group:          Applications/Engineering
f7236f5
License:        GPLv3
f7236f5
URL:            http://www.mathematik.uni-osnabrueck.de/normaliz/
3473857
# Warning: This zip-ball contains .jar binaries, source only zip-ball not
f7236f5
# available
3473857
Source0:        http://www.mathematik.uni-osnabrueck.de/normaliz/Normaliz%{version}/Normaliz%{version}.zip
f7236f5
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
f7236f5
6bafbc5
BuildRequires:  boost-devel
f7236f5
BuildRequires:  gmp-devel
f7236f5
f7236f5
%description
f7236f5
Normaliz is a (command line) tool for computations in affine
f7236f5
monoids, vector configurations, lattice polytopes,  and rational
f7236f5
cones.
f7236f5
f7236f5
Documentation and examples can be found in %{_docdir}/%{name}-%{version}, 
f7236f5
in particular you may find Normaliz%{version}Documentation.pdf useful.  
f7236f5
f7236f5
%prep
3473857
%setup -q -n Normaliz%{version}
f7236f5
f7236f5
%build
f7236f5
pushd source
f7236f5
# We want to use our build flags
f7236f5
sed -i 's/^\(CXXFLAGS\s*=\)/#\1/' Makefile
f7236f5
# Static linking should be avoided
3473857
sed -i 's/^\(N[A-Z0-9]*FLAGS\s*=.*\s\)-static/\1/' Makefile Makefile.configuration
f7236f5
f7236f5
CXXFLAGS="%{optflags}" \
f7236f5
make %{?_smp_mflags}
f7236f5
popd
f7236f5
f7236f5
mkdir -p docs/example
f7236f5
f7236f5
# Correct the end of line encodings for use on Linux
f7236f5
pushd example
f7236f5
for file in *.out *.in 
f7236f5
do
f7236f5
    sed 's/\r//' "$file" > "../docs/example/$file"
f7236f5
    touch -r "$file" "../docs/example/$file"
f7236f5
done
f7236f5
popd
f7236f5
f7236f5
mv doc/Normaliz%{version}Documentation.pdf docs
f7236f5
mv "doc/Computing the integral closure of an affine semigroup.pdf" \
f7236f5
    docs/Computing_the_integral_closure_of_an_affine_semigroup.pdf
f7236f5
f7236f5
f7236f5
%install
f7236f5
rm -rf %{buildroot}
f7236f5
3473857
install -D -m 755 source/normaliz %{buildroot}%{_bindir}/normaliz
f7236f5
f7236f5
%clean
f7236f5
rm -rf %{buildroot}
f7236f5
f7236f5
%files
f7236f5
%defattr(-,root,root,-)
f7236f5
%doc COPYING
f7236f5
%doc docs/*
3473857
%{_bindir}/normaliz
f7236f5
f7236f5
%changelog
6c20703
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7-4.2
6c20703
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6c20703
3925ad4
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7-3.2
3925ad4
- Rebuilt for c++ ABI breakage
3925ad4
bb90688
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7-2.2
bb90688
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
bb90688
45f1f7d
* Wed Oct 26 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.7-1.2
45f1f7d
- rebuild with new gmp without compat lib
45f1f7d
e62637a
* Wed Oct 12 2011 Peter Schiffer <pschiffe@redhat.com> - 2.7-1.1
e62637a
- rebuild with new gmp
e62637a
3473857
* Fri May 27 2011 Rex Dieter <rdieter@fedoraproject.org> 2.7-1
3473857
- 2.7
3473857
c683197
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-4
c683197
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c683197
f7236f5
* Thu Feb 25 2010 Mark Chappell <tremble@fedoraproject.org> - 2.2-3
f7236f5
- Preserve timestamps on examples
f7236f5
- Ensure that the first command in install is to wipe the buildroot
f7236f5
- Tweak to description
f7236f5
f7236f5
* Thu Feb 25 2010 Mark Chappell <tremble@fedoraproject.org> - 2.2-2
f7236f5
- Move examples into a subdirectory
f7236f5
- Correct inconsistant use of macros
f7236f5
- Provide a reference to the documentation in the description
f7236f5
f7236f5
* Wed Feb 24 2010 Mark Chappell <tremble@fedoraproject.org> - 2.2-1
f7236f5
- Initial build