File cloog-isl.spec of Package cloog-isl
#
# spec file for package cloog-isl
#
# Copyright (c) 2014 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-isl
Version: 0.18.1
Release: 0
Summary: The Chunky Loop Generator
License: LGPL-2.1
Group: Development/Languages/C and C++
Url: http://www.cloog.org/
Source: cloog-%{version}.tar.gz
Source1: baselibs.conf
BuildRequires: gmp-devel
BuildRequires: isl-devel
Conflicts: cloog
Provides: cloog
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
Summary: Development tools for CLOOG
Group: Development/Languages/C and C++
Requires: isl-devel
Requires: libcloog-isl4 = %{version}-%{release}
Conflicts: cloog-devel
%description devel
Development tools and headers for the Chunky Loop Generator.
%package -n libcloog-isl4
Summary: The CLOOG shared library using ISL
Group: Development/Languages/C and C++
%description -n libcloog-isl4
The shared library for the Chunky Loop Generator using the ISL backend.
%prep
%setup -q -n cloog-%{version}
%build
%configure --disable-static --with-isl=system
make %{_smp_mflags}
%check
make %{_smp_mflags} check
%install
make DESTDIR=%{buildroot} install
rm -f %{buildroot}%{_libdir}/*.la
rm -rf %{buildroot}%{_libdir}/pkgconfig
rm -f %{buildroot}%{_libdir}/cloog-isl/cloog-isl-config.cmake
rm -f %{buildroot}%{_libdir}/isl/isl-config.cmake
%post -n libcloog-isl4 -p /sbin/ldconfig
%postun -n libcloog-isl4 -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_bindir}/cloog
%files -n libcloog-isl4
%defattr(-,root,root,-)
%{_libdir}/libcloog-isl.so.4*
%files devel
%defattr(-,root,root,-)
%{_includedir}/cloog
%{_libdir}/libcloog-isl.so
%changelog