File cloog.spec of Package cloog

#
# spec file for package cloog (Version 0.15.10+ppl)
#
# Copyright (c) 2010 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.10+ppl
Release:        1
Summary:        The Chunky Loop Generator
Group:          Development/Languages/C and C++
License:        GPLv2+
Url:            http://www.cloog.org/
Source:         cloog-ppl-0.15.10.tar.bz2
Source1:        baselibs.conf
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:        GPLv2+
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:        GPLv2+
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-ppl-0.15.10

%build
./autogen.sh
%configure --with-ppl
make %{_smp_mflags}

%check
make %{_smp_mflags} 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