Removed non-free files, fixes bz#1114264

This commit is contained in:
nonamedotc 2014-07-13 17:41:04 -05:00
parent eda174e9d8
commit 8eb6e05ddd
2 changed files with 35 additions and 1 deletions

25
SuperLU-removemc64.patch Normal file
View File

@ -0,0 +1,25 @@
Description: Provide stubs for the two functions whose implementation is nonfree
Author: Sébastien Villemot <sebastien@debian.org>
Forwarded: not-needed
Last-Update: 2013-11-27
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- /dev/null
+++ b/SRC/mc64ad.c
@@ -0,0 +1,16 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+void mc64id_(int *a)
+{
+ fprintf(stderr, "SuperLU: MC64 functionality not available (it uses non-free code). Aborting.\n");
+ abort();
+}
+
+void mc64ad_(int *a, int *b, int *c, int d[], int e[], double f[],
+ int *g, int h[], int *i, int j[], int *k, double l[],
+ int m[], int n[])
+{
+ fprintf(stderr, "SuperLU: MC64 functionality not available (it uses non-free code). Aborting.\n");
+ abort();
+}

View File

@ -1,6 +1,6 @@
Name: SuperLU
Version: 4.3
Release: 9%{?dist}
Release: 10%{?dist}
Summary: Subroutines to solve sparse linear systems
%{?el5:Group: System/Libraries}
@ -15,6 +15,9 @@ Patch1: %{name}-build-shared-lib3.patch
Patch2: %{name}-fix-format-security.patch
# Fixes testsuite
Patch3: SuperLU-fix-testsuite.patch
# remove non-free mc64 functionality
# patch obtained from the debian package
Patch4: SuperLU-removemc64.patch
%{?el5:BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)}
BuildRequires: atlas-devel
@ -42,6 +45,9 @@ and libraries for use with CUnit package.
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4
rm -fr SRC/mc64ad.f.bak
find . -type f | sed -e "/TESTING/d" | xargs chmod a-x
# Remove the shippped executables from EXAMPLE
find EXAMPLE -type f | while read file
@ -100,6 +106,9 @@ popd
%{_libdir}/libsuperlu.so
%changelog
* Sun Jul 13 2014 Mukundan Ragavan <nonamedotc@gmail.com> - 4.3-10
- Removed non-free files, fixes bz#1114264
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild