SHA256
1
0
forked from pool/paraview
paraview/paraview-fix-file-contains-date-time.patch
Christoph G ef94ba280f Accepting request 444980 from home:badshah400:branches:science
- Replicate the %cmake macro manually, stripping out the problematic and unused options. In particular, this restores  passing rpm_opt_flags to C/C++ during compilation.
- Update paraview-fix-file-contains-date-time.patch to remove references to __DATE__ and __TIME__ also from Plugins/CDIReader/cdilib.c; suppresses an rpmlint warning.
- Update %{name}-rpmlintrc file to also suppress warnings about:
  * no-manual-page-for-binary: upstream doesn't supply manpages and we don't care.
  * hidden-file-or-dir: this hidden file is really used as a catalogue of available plugins by paraview.

OBS-URL: https://build.opensuse.org/request/show/444980
OBS-URL: https://build.opensuse.org/package/show/science/paraview?expand=0&rev=47
2016-12-09 06:05:38 +00:00

40 lines
1.6 KiB
Diff

Index: ParaView-v5.2.0/VTK/ThirdParty/netcdf/vtknetcdf/libdispatch/error.c
===================================================================
--- ParaView-v5.2.0.orig/VTK/ThirdParty/netcdf/vtknetcdf/libdispatch/error.c
+++ ParaView-v5.2.0/VTK/ThirdParty/netcdf/vtknetcdf/libdispatch/error.c
@@ -9,7 +9,7 @@
#include "ncdispatch.h"
/* Tell the user the version of netCDF. */
-static const char nc_libvers[] = PACKAGE_VERSION " of "__DATE__" "__TIME__" $";
+static const char nc_libvers[] = PACKAGE_VERSION;
const char *
nc_inq_libvers(void)
Index: ParaView-v5.2.0/Plugins/AnalyzeNIfTIReaderWriter/vtknifti1_io.cxx
===================================================================
--- ParaView-v5.2.0.orig/Plugins/AnalyzeNIfTIReaderWriter/vtknifti1_io.cxx
+++ ParaView-v5.2.0/Plugins/AnalyzeNIfTIReaderWriter/vtknifti1_io.cxx
@@ -438,7 +438,7 @@ void vtknifti1_io::nifti_disp_lib_hist(
*//*--------------------------------------------------------------------*/
void vtknifti1_io::nifti_disp_lib_version( void )
{
- printf("%s, compiled %s\n", gni_version, __DATE__);
+ printf("%s\n", gni_version);
}
Index: ParaView-v5.2.0/Plugins/CDIReader/cdilib.c
===================================================================
--- ParaView-v5.2.0.orig/Plugins/CDIReader/cdilib.c
+++ ParaView-v5.2.0/Plugins/CDIReader/cdilib.c
@@ -5274,7 +5274,7 @@ static void file_table_print(void);
#define LIBVERSION 1.8.2
#define XSTRING(x) #x
#define STRING(x) XSTRING(x)
-static const char file_libvers[] = STRING(LIBVERSION) " of " __DATE__ " " __TIME__;
+static const char file_libvers[] = STRING(LIBVERSION);
typedef struct _filePtrToIdx {
int idx;
bfile_t *ptr;