summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-10-30 15:06:57 -0700
committerAnas Nashif <anas.nashif@intel.com>2012-10-30 15:06:57 -0700
commitbd29f57677e8da90454c0f849aa1fa40c4e99a94 (patch)
tree05a664c18687cc17856f1ce1e4289eb70e77cd47
parenteeae52cace9255e93995b708545373a28b57de9e (diff)
downloadcloog-bd29f57677e8da90454c0f849aa1fa40c4e99a94.tar.gz
cloog-bd29f57677e8da90454c0f849aa1fa40c4e99a94.tar.bz2
cloog-bd29f57677e8da90454c0f849aa1fa40c4e99a94.zip
add packaging
-rw-r--r--packaging/baselibs.conf4
-rw-r--r--packaging/cloog.spec65
2 files changed, 69 insertions, 0 deletions
diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644
index 0000000..99d9a65
--- /dev/null
+++ b/packaging/baselibs.conf
@@ -0,0 +1,4 @@
+libcloog
+ targetarch ia64 block!
+cloog-devel
+ requires "libcloog-<targettype> = <version>"
diff --git a/packaging/cloog.spec b/packaging/cloog.spec
new file mode 100644
index 0000000..a83b27a
--- /dev/null
+++ b/packaging/cloog.spec
@@ -0,0 +1,65 @@
+Name: cloog
+Version: 0.15.10+ppl
+Release: 0
+Summary: The Chunky Loop Generator
+License: GPL-2.0+
+Group: Development/Languages/C and C++
+Url: http://www.cloog.org/
+Source: cloog-ppl-0.15.10.tar.bz2
+Source1: baselibs.conf
+BuildRequires: libtool
+BuildRequires: ppl-devel
+
+%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: libcloog = %{version}-%{release}
+
+%description devel
+Development tools and headers for the Chunky Loop Generator.
+
+%package -n libcloog
+Summary: The CLOOG shared library
+Group: Development/Languages/C and C++
+
+%description -n libcloog
+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_install
+
+%post -n libcloog -p /sbin/ldconfig
+
+%postun -n libcloog -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%{_bindir}/cloog
+%doc %{_infodir}/cloog.info*gz
+
+%files -n libcloog
+%defattr(-,root,root,-)
+%{_libdir}/libcloog.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/cloog
+%{_libdir}/libcloog.so
+%{_libdir}/libcloog.a
+
+%changelog