File cloog.spec of Package cloog
#
# spec file for package cloog (Version 0.15.0+ppl)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cloog
Version: 0.15.0+ppl
Release: 2
Summary: The Chunky Loop Generator
Group: Development/Languages/C and C++
License: GPL v2 or later
Url: http://www.cloog.org/
Source: cloog.tar.bz2
Source1: README
Patch: cloog.patch
Patch1: cloog-ppl.patch
BuildRequires: ppl-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
CLooG is a free software and library to generate code for scanning
Z-polyhedra. It is used by the GCC Graphite optimization framework.
%package devel
License: GPL v2 or later
Summary: Development tools for CLOOG
Group: Development/Languages/C and C++
Requires: libcloog0 = %{version}-%{release}
%description devel
Development tools and headers for the Chunky Loop Generator.
%package -n libcloog0
License: GPL v2 or later
Summary: The CLOOG shared library
Group: Development/Languages/C and C++
%description -n libcloog0
The shared library for the Chunky Loop Generator.
%prep
%setup -q -n cloog
%patch
%patch1 -p1
%build
./autogen.sh
%configure --with-ppl
make %{?jobs:-j%jobs}
%check
make %{?jobs:-j%jobs} check
%install
make DESTDIR=$RPM_BUILD_ROOT install
rm $RPM_BUILD_ROOT/%{_libdir}/libcloog.la
%post
%install_info --info-dir=%{_infodir} %{_infodir}/cloog.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/cloog.info.gz
%post -n libcloog0 -p /sbin/ldconfig
%postun -n libcloog0 -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_bindir}/cloog
%doc %{_infodir}/cloog.info*gz
%files -n libcloog0
%defattr(-,root,root,-)
%{_libdir}/libcloog.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/cloog
%{_libdir}/libcloog.so
%{_libdir}/libcloog.a
%clean
rm -rf $RPM_BUILD_ROOT
%changelog
* Thu Oct 30 2008 rguenther@suse.de
- Update for current ppl version.
* Wed Sep 03 2008 rguenther@suse.de
- Initial version from git.
- Add patch to disable duplicate ppl version symbols.