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