659d7e5
%define         git_revision   gitb9d79
3f9a781
Name:           cloog
3f9a781
Version:        0.15
6065528
Release:        0.10.%{git_revision}%{?dist}
3f9a781
Summary:        The Chunky Loop Generator
3f9a781
3f9a781
Group:          System Environment/Libraries
3f9a781
License:        GPLv2+
3f9a781
URL:            http://www.cloog.org
3f9a781
# The source of this package was pulled from upstream vcs.
3f9a781
# Please use the following commands to regenerate the tarball:
3f9a781
# git clone git://repo.or.cz/cloog-ppl.git cloog.git
3f9a781
# cd cloog.git
3f9a781
# ./autogen.sh
3f9a781
# configure --with-ppl
3f9a781
# make distcheck
3f9a781
Source0:        %{name}-%{version}-%{git_revision}.tar.gz
3f9a781
Source1:        README.cloog.txt
3f9a781
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
fa5e1d6
BuildRequires:  ppl-devel >= 0.10, gmp-devel >= 4.1.3, texinfo >= 4.12
3f9a781
Requires(post): info
3f9a781
Requires(preun): info
3f9a781
3f9a781
%description
3f9a781
CLooG is a software which generates loops for scanning Z-polyhedra. That is,
3f9a781
CLooG finds the code or pseudo-code where each integral point of one or more
3f9a781
parametrized polyhedron or parametrized polyhedra union is reached. CLooG is
3f9a781
designed to avoid control overhead and to produce a very efficient code.
3f9a781
3f9a781
%package ppl
3f9a781
Summary: Parma Polyhedra Library backend (ppl) based version of the Cloog binaries
3f9a781
Group: Development/Libraries
3f9a781
%description ppl
3f9a781
The dynamic shared libraries of the Chunky Loop Generator
3f9a781
3f9a781
%package ppl-devel
3f9a781
Summary:        Development tools for the ppl based version of Chunky Loop Generator
3f9a781
Group:          Development/Libraries
3f9a781
Requires:       %{name}-ppl = %{version}-%{release}
3f9a781
Requires:       ppl-devel >= 0.10, gmp-devel >= 4.1.3
3f9a781
%description ppl-devel
3f9a781
The header files and dynamic shared libraries of the Chunky Loop Generator.
3f9a781
3f9a781
%prep
3f9a781
%setup -q
3f9a781
3f9a781
%build
49ab3e7
%configure --with-ppl
da25827
# Remove the cloog.info in the tarball
da25827
# to force the re-generation of a new one
da25827
test -f doc/cloog.info && rm doc/cloog.info
3f9a781
# Remove the -fomit-frame-pointer compile flag
3f9a781
make %{?_smp_mflags} AM_CFLAGS=
3f9a781
3f9a781
3f9a781
%install
3f9a781
rm -rf $RPM_BUILD_ROOT
3f9a781
make DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p" install
3f9a781
rm -rf $RPM_BUILD_ROOT%{_infodir}/dir
3f9a781
3f9a781
%clean
3f9a781
rm -rf $RPM_BUILD_ROOT
3f9a781
3f9a781
%files ppl
3f9a781
%defattr(-,root,root,-)
3f9a781
%{_infodir}/cloog.info*gz
3f9a781
%{_bindir}/cloog
3f9a781
%{_libdir}/libcloog.so.*
3f9a781
3f9a781
%files ppl-devel
3f9a781
%defattr(-,root,root,-)
3f9a781
%{_includedir}/cloog
3f9a781
%{_libdir}/libcloog.so
3f9a781
%exclude %{_libdir}/libcloog.a
3f9a781
%exclude %{_libdir}/libcloog.la
3f9a781
3f9a781
%post ppl
3f9a781
/sbin/ldconfig
3f9a781
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
3f9a781
da25827
%preun ppl
3f9a781
if [ $1 = 0 ] ; then
3f9a781
  /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
3f9a781
fi
3f9a781
da25827
%postun ppl -p /sbin/ldconfig
da25827
3f9a781
%changelog
6065528
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-0.10.gitb9d79
6065528
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
6065528
659d7e5
* Tue Jul 07 2009 Dodji Seketeli <dodji@redhat.com> - 0.15-0.9.gitb9d79
659d7e5
- Update to new upstream git snapshot.
659d7e5
- Update some comments in the spec file.
659d7e5
49ab3e7
* Thu Apr 09 2009 Dodji Seketeli <dodji@redhat.com> - 0.15-0.8.git1334c
49ab3e7
- Update to new upstream git snapshot
49ab3e7
- Drop the cloog.info patch as now upstreamed
49ab3e7
- No need to add an argument to the --with-ppl
49ab3e7
  configure switch anymore as new upstream fixed this
49ab3e7
fa5e1d6
* Wed Apr 08 2009 Dodji Seketeli <dodji@redhat.org> - 0.15-0.7.gitad322
fa5e1d6
- Add BuildRequire texinfo needed to regenerate the cloog.info doc
fa5e1d6
da25827
* Wed Apr 08 2009 Dodji Seketeli <dodji@redhat.org> - 0.15-0.6.gitad322
da25827
- Remove the cloog.info that is in the tarball
da25827
  That forces the regeneration of a new cloog.info with
da25827
  suitable INFO_DIR_SECTION, so that install-info doesn't cry
da25827
  at install time.
da25827
- Slightly changed the patch to make install-info actually
da25827
  install the cloog information in the info directory file.
da25827
- Run install-info --delete in %preun, not in %postun,
da25827
  otherwise the info file is long gone with we try to
da25827
  run install-info --delete on it.
da25827
da25827
* Mon Apr 06 2009 Dodji Seketeli <dodji@redhat.org> - 0.15-0.5.gitad322
281c838
- Added patch to fix #492794
281c838
- Need to add an argument to the --with-ppl switch now.
281c838
fc81cd8
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-0.4.gitad322
fc81cd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
fc81cd8
3f9a781
* Tue Feb 10 2009 Dodji Seketeli <dodji@redhat.org> 0.15-0.3.gitad322
3f9a781
- Updated to upstream git hash foo
3f9a781
- Generate cloog-ppl and cloog-ppl-devel packages instead of cloog and
3f9a781
  cloog-devel.
3f9a781
3f9a781
* Mon Dec 01 2008 Dodji Seketeli <dodji@redhat.com> 0.15-0.2.git57a0bc
3f9a781
- Updated to upstream git hash 57a0bcd97c08f44a983385ca0389eb624e66e3c7
3f9a781
- Remove the -fomit-frame-pointer compile flag
3f9a781
3f9a781
* Wed Sep 24 2008 Dodji Seketeli <dodji@redhat.com> 0.15-0.1.git95753
3f9a781
- Initial version from git hash 95753d83797fa9a389c0c07f7cf545e90d7867d7
3f9a781