fixes for rpmlint
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/adolc?expand=0&rev=24
This commit is contained in:
parent
467a9c4189
commit
169d659a3e
@ -29,6 +29,7 @@ Group: Development/Languages/C and C++
|
||||
Source: %{name}-%{packver}.tar.bz2
|
||||
Source1: ColPack-1.0.4.tar.bz2
|
||||
Source2: baselibs.conf
|
||||
Patch1: correct-no-return-in-non-void.patch
|
||||
BuildRequires: autoconf automake libtool
|
||||
BuildRequires: gcc-c++ libstdc++-devel
|
||||
# BuildRequires: texlive texlive-latex
|
||||
@ -106,6 +107,9 @@ This package provides the user´s manual for adolc
|
||||
pushd ThirdParty
|
||||
mv %{_builddir}/ColPack/* ColPack/
|
||||
rm -rf %{_builddir}/ColPack
|
||||
pushd ColPack
|
||||
%patch1 -p1
|
||||
popd
|
||||
popd
|
||||
|
||||
%build
|
||||
@ -127,7 +131,7 @@ make %{_smp_mflags}
|
||||
%install
|
||||
%makeinstall
|
||||
install -d %{buildroot}%{_datadir}/doc/packages/%{name}
|
||||
install -m 644 README AUTHORS BUGS LICENSE INSTALL TODO %{buildroot}%{_datadir}/doc/packages/%{name}
|
||||
install -m 644 README AUTHORS BUGS LICENSE TODO %{buildroot}%{_datadir}/doc/packages/%{name}
|
||||
install -m 644 ADOL-C/doc/adolc-manual.pdf %{buildroot}%{_datadir}/doc/packages/%{name}
|
||||
install -m 644 ADOL-C/doc/short_ref.pdf %{buildroot}%{_datadir}/doc/packages/%{name}
|
||||
find "%buildroot" -type f -name "*.la" -delete;
|
||||
|
44
correct-no-return-in-non-void.patch
Normal file
44
correct-no-return-in-non-void.patch
Normal file
@ -0,0 +1,44 @@
|
||||
diff --git a/BipartiteGraphPartialColoring/BipartiteGraphPartialColoring.cpp b/BipartiteGraphPartialColoring/BipartiteGraphPartialColoring.cpp
|
||||
index 81e3c81..8a8f762 100755
|
||||
--- a/BipartiteGraphPartialColoring/BipartiteGraphPartialColoring.cpp
|
||||
+++ b/BipartiteGraphPartialColoring/BipartiteGraphPartialColoring.cpp
|
||||
@@ -564,6 +564,7 @@ namespace ColPack
|
||||
|
||||
}
|
||||
|
||||
+ return ( _TRUE );
|
||||
}
|
||||
|
||||
//Public Function 2456
|
||||
diff --git a/BipartiteGraphPartialColoring/BipartiteGraphPartialOrdering.cpp b/BipartiteGraphPartialColoring/BipartiteGraphPartialOrdering.cpp
|
||||
index f6adb58..b90f5b6 100644
|
||||
--- a/BipartiteGraphPartialColoring/BipartiteGraphPartialOrdering.cpp
|
||||
+++ b/BipartiteGraphPartialColoring/BipartiteGraphPartialOrdering.cpp
|
||||
@@ -537,6 +537,7 @@ namespace ColPack
|
||||
}
|
||||
}
|
||||
cout<<"OUT ROW_SMALLEST_LAST_OMP()"<<endl<<flush;
|
||||
+ return(_TRUE);
|
||||
}
|
||||
|
||||
//Public Function 2359
|
||||
@@ -926,6 +927,7 @@ namespace ColPack
|
||||
}
|
||||
}
|
||||
cout<<"OUT COLUMN_SMALLEST_LAST_OMP()"<<endl<<flush;
|
||||
+ return(_TRUE);
|
||||
}
|
||||
|
||||
|
||||
diff --git a/Utilities/extra.cpp b/Utilities/extra.cpp
|
||||
index 3228b08..078b6a5 100755
|
||||
--- a/Utilities/extra.cpp
|
||||
+++ b/Utilities/extra.cpp
|
||||
@@ -262,6 +262,7 @@ int displayGraph(ColPack::GraphColoring &g) {
|
||||
//command="xdot -f fdp ";
|
||||
command = command + fileName;
|
||||
system(command.c_str());
|
||||
+ return(_TRUE);
|
||||
}
|
||||
|
||||
int buildDotWithoutColor(ColPack::GraphColoring &g, vector<string> &ListOfColors, string fileName) {
|
Loading…
x
Reference in New Issue
Block a user