From 5d3256defa385956a1a7384ec4b1e683894e0421 Mon Sep 17 00:00:00 2001 From: Björn Esser Date: Sep 19 2013 19:24:39 +0000 Subject: Intial import (#1004760) --- diff --git a/.gitignore b/.gitignore index e69de29..4a406bf 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,4 @@ +*~ +*.rpm +*.tar* +results_*/ diff --git a/ColPack.spec b/ColPack.spec new file mode 100644 index 0000000..1aa23a6 --- /dev/null +++ b/ColPack.spec @@ -0,0 +1,135 @@ +%global lc_name colpack + +Name: ColPack +Version: 1.0.9 +Release: 1%{?dist} +Summary: Algorithms for specialized vertex coloring problems +%{?el5:Group: Applications/Engineering} + +License: LGPLv3+ +URL: http://cscapes.cs.purdue.edu +Source0: %{url}/download/%{name}/%{name}-%{version}.tar.gz + +%{?el5:BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)} +BuildRequires: chrpath + +Provides: %{lc_name} = %{version}-%{release} +Provides: %{lc_name}%{?_isa} = %{version}-%{release} + +%description +ColPack is a package comprising of implementation of algorithms for +specialized vertex coloring problems that arise in sparse derivative +computation. It is written in an object-oriented fashion heavily using +the Standard Template Library (STL). It is designed to be simple, +modular, extendable and efficient. + +%{?!el5:This build has openMP-support enabled.} + + +%package cli +Summary: CLI-tool for %{name} +%{?el5:Group: Applications/Engineering} + +Requires: %{name}%{?_isa} = %{version}-%{release} + +Provides: %{lc_name}-cli = %{version}-%{release} +Provides: %{lc_name}-cli%{?_isa} = %{version}-%{release} + +%description cli +This package contains a cli-tool for %{name} + + +%package devel +Summary: Development files for %{name} +%{?el5:Group: Development/Libraries} + +Requires: %{name}%{?_isa} = %{version}-%{release} + +Provides: %{lc_name}-devel = %{version}-%{release} +Provides: %{lc_name}-devel%{?_isa} = %{version}-%{release} + +%description devel +This package contains the development headers and library +for %{name}. + + +%package doc +Summary: Documentation files for %{name} +%{?el5:Group: Documentation} + +%{?!el5:BuildArch: noarch} +Provides: %{lc_name}-doc = %{version}-%{release} + +%description doc +This package contains the documentation files and some brief examples +for %{name}. + + +%prep +%setup -q + +# Remove the pre-compiled binaries && backup-files. +rm -rf progs +find . -depth -type f -name '*~' -print0 | xargs -0 rm -f + +# Fix the permissions of the sources. +find . -depth -type f -name '*' -print0 | xargs -0 chmod 0644 +chmod 0755 configure + +# This package is LGPL, only. So let's get rid of the cluttering GPL-file. +mv -f COPYING.LESSER COPYING + + +%build +%configure \ +%{?!el5:--enable-openmp} \ + --disable-static +make %{?_smp_mflags} + + +%install +%{?el5:rm -rf %{buildroot}} +make install DESTDIR=%{buildroot} + +# We don't want those libtool dumplings and static libs. +find %{buildroot} -depth -name '*.*a' -print0 | xargs -0 rm -rf + +# Move the cli-tool to %%{_bindir} +mkdir -p %{buildroot}%{_bindir} +mv -f `find %{buildroot} -depth -type f -name '%{name}'` %{buildroot}%{_bindir} + +# Kill rpath from binaries. +chrpath --delete %{buildroot}%{_bindir}/%{name} + + +%check +make check + + +%clean +%{?el5:rm -rf %{buildroot}} + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%doc ChangeLog COPYING +%{_libdir}/lib%{name}.so.* + +%files cli +%{_bindir}/%{name} + +%files devel +%{_includedir}/%{name} +%{_libdir}/lib%{name}.so + +%files doc +%doc AUTHORS ChangeLog COPYING README SampleDrivers + + +%changelog +* Thu Sep 05 2013 Björn Esser - 1.0.9-1 +- Initial rpm release (#1004760) diff --git a/sources b/sources index e69de29..a02fd19 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +54ae2daacd00a0a278d2e4fa94bba81b ColPack-1.0.9.tar.gz