Compare commits
77 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
27542e44ca | ||
|
2104388da2 | ||
|
7c49875618 | ||
|
38d73ac1d6 | ||
|
7b944e4518 | ||
|
9be3318976 | ||
|
f37a9fad0f | ||
|
6ea9ef1321 | ||
|
e771848e2a | ||
|
8a81162994 | ||
|
e5b1a60526 | ||
|
58c768e72d | ||
|
24e85c0a6e | ||
|
0ad847addc | ||
|
74a653ff8d | ||
|
e11a841058 | ||
|
3bbf72fec2 | ||
|
e1b13879e4 | ||
|
3be86f0db3 | ||
|
ce3677b790 | ||
|
6b9093cf71 | ||
|
a5355fb7a7 | ||
|
010a672e7d | ||
|
46c0b394e3 | ||
|
d0ddd01d58 | ||
|
d55ec81d94 | ||
|
f2c9adbf0a | ||
|
a18ce24324 | ||
|
74e67b930a | ||
|
85369b93c1 | ||
|
4418baae20 | ||
|
16cb742c83 | ||
|
6d67e09d1b | ||
|
6f3f1637ab | ||
|
5732a8d254 | ||
|
b099778588 | ||
|
93c7367bda | ||
|
f45b37c34c | ||
|
e246090dde | ||
|
db5e9c5f37 | ||
|
129ee5d315 | ||
|
ad0725454c | ||
|
1dd2632d7f | ||
|
01ea9be21c | ||
|
49346c2e54 | ||
|
d28e461513 | ||
|
7e94325b68 | ||
|
3dcc432202 | ||
|
c9ef677d8c | ||
|
4f098f326f | ||
|
f73f07a49e | ||
|
75dfb59cff | ||
|
5ee39104d1 | ||
|
8f97d3aa20 | ||
|
858a3a42ab | ||
|
325651989c | ||
|
7462485362 | ||
|
69d1daffa7 | ||
|
54e04d7274 | ||
|
d9e35941f1 | ||
|
3bab2ea313 | ||
|
0a9637f44e | ||
|
0364b6e04c | ||
|
d4d4f7f7a5 | ||
|
3dee1f2ec2 | ||
|
a2168b1422 | ||
|
abba2a4ed1 | ||
|
abc2653868 | ||
|
e927261263 | ||
|
5a073b15ed | ||
|
4035590f13 | ||
|
2ca58d805f | ||
|
599209c178 | ||
|
918d471517 | ||
|
fa71b609e6 | ||
|
dc6d0e5e45 | ||
|
378658fcc6 |
7
.gitignore
vendored
7
.gitignore
vendored
@ -1,3 +1,10 @@
|
||||
vigra-1.7.0-src.tar.gz
|
||||
/vigra-1.7.1-src.tar.gz
|
||||
/vigra-1.8.0-src.tar.gz
|
||||
/vigra-1.9.0-src.tar.gz
|
||||
/vigra-config.sh
|
||||
/vigra-1.10.0-src.tar.gz
|
||||
/vigra-1.10.0-src-clean.tar.gz
|
||||
/vigra-1.11.0-src-clean.tar.gz
|
||||
/vigra-1.11.1-src.tar.gz
|
||||
/vigra-1.11.1-src-clean.tar.gz
|
||||
|
139
81958d302494e137f98a8b1d7869841532f90388.patch
Normal file
139
81958d302494e137f98a8b1d7869841532f90388.patch
Normal file
@ -0,0 +1,139 @@
|
||||
From 81958d302494e137f98a8b1d7869841532f90388 Mon Sep 17 00:00:00 2001
|
||||
From: JaimeIvanCervantes <jimmycc80@hotmail.com>
|
||||
Date: Fri, 16 Jun 2017 13:21:45 -0700
|
||||
Subject: [PATCH] multi_convolution: Fix for incorrect template parameter type
|
||||
when using unsigned int N for TinyVector SIZE. (Fixes #414)
|
||||
|
||||
---
|
||||
include/vigra/multi_convolution.hxx | 28 ++++++++++++++--------------
|
||||
1 file changed, 14 insertions(+), 14 deletions(-)
|
||||
|
||||
diff --git a/include/vigra/multi_convolution.hxx b/include/vigra/multi_convolution.hxx
|
||||
index 1b5efa740..ec89bcf58 100644
|
||||
--- a/include/vigra/multi_convolution.hxx
|
||||
+++ b/include/vigra/multi_convolution.hxx
|
||||
@@ -1426,7 +1426,7 @@ gaussianSmoothMultiArray(MultiArrayView<N, T1, S1> const & source,
|
||||
class T2, class S2>
|
||||
void
|
||||
gaussianGradientMultiArray(MultiArrayView<N, T1, S1> const & source,
|
||||
- MultiArrayView<N, TinyVector<T2, N>, S2> dest,
|
||||
+ MultiArrayView<N, TinyVector<T2, int(N)>, S2> dest,
|
||||
double sigma,
|
||||
ConvolutionOptions<N> opt = ConvolutionOptions<N>());
|
||||
|
||||
@@ -1435,7 +1435,7 @@ gaussianSmoothMultiArray(MultiArrayView<N, T1, S1> const & source,
|
||||
class T2, class S2>
|
||||
void
|
||||
gaussianGradientMultiArray(MultiArrayView<N, T1, S1> const & source,
|
||||
- MultiArrayView<N, TinyVector<T2, N>, S2> dest,
|
||||
+ MultiArrayView<N, TinyVector<T2, int(N)>, S2> dest,
|
||||
ConvolutionOptions<N> opt);
|
||||
|
||||
// likewise, but execute algorithm in parallel
|
||||
@@ -1443,7 +1443,7 @@ gaussianSmoothMultiArray(MultiArrayView<N, T1, S1> const & source,
|
||||
class T2, class S2>
|
||||
void
|
||||
gaussianGradientMultiArray(MultiArrayView<N, T1, S1> const & source,
|
||||
- MultiArrayView<N, TinyVector<T2, N>, S2> dest,
|
||||
+ MultiArrayView<N, TinyVector<T2, int(N)>, S2> dest,
|
||||
BlockwiseConvolutionOptions<N> opt);
|
||||
}
|
||||
\endcode
|
||||
@@ -1590,7 +1590,7 @@ template <unsigned int N, class T1, class S1,
|
||||
class T2, class S2>
|
||||
inline void
|
||||
gaussianGradientMultiArray(MultiArrayView<N, T1, S1> const & source,
|
||||
- MultiArrayView<N, TinyVector<T2, N>, S2> dest,
|
||||
+ MultiArrayView<N, TinyVector<T2, int(N)>, S2> dest,
|
||||
ConvolutionOptions<N> opt )
|
||||
{
|
||||
if(opt.to_point != typename MultiArrayShape<N>::type())
|
||||
@@ -1614,7 +1614,7 @@ template <unsigned int N, class T1, class S1,
|
||||
class T2, class S2>
|
||||
inline void
|
||||
gaussianGradientMultiArray(MultiArrayView<N, T1, S1> const & source,
|
||||
- MultiArrayView<N, TinyVector<T2, N>, S2> dest,
|
||||
+ MultiArrayView<N, TinyVector<T2, int(N)>, S2> dest,
|
||||
double sigma,
|
||||
ConvolutionOptions<N> opt = ConvolutionOptions<N>())
|
||||
{
|
||||
@@ -1653,7 +1653,7 @@ gaussianGradientMagnitudeImpl(MultiArrayView<N+1, T1, S1> const & src,
|
||||
dest.init(0.0);
|
||||
|
||||
typedef typename NumericTraits<T1>::RealPromote TmpType;
|
||||
- MultiArray<N, TinyVector<TmpType, N> > grad(dest.shape());
|
||||
+ MultiArray<N, TinyVector<TmpType, int(N)> > grad(dest.shape());
|
||||
|
||||
using namespace multi_math;
|
||||
|
||||
@@ -1771,7 +1771,7 @@ gaussianGradientMagnitude(MultiArrayView<N+1, Multiband<T1>, S1> const & src,
|
||||
class T2, class S2>
|
||||
void
|
||||
symmetricGradientMultiArray(MultiArrayView<N, T1, S1> const & source,
|
||||
- MultiArrayView<N, TinyVector<T2, N>, S2> dest,
|
||||
+ MultiArrayView<N, TinyVector<T2, int(N)>, S2> dest,
|
||||
ConvolutionOptions<N> opt = ConvolutionOptions<N>());
|
||||
|
||||
// execute algorithm in parallel
|
||||
@@ -1779,7 +1779,7 @@ gaussianGradientMagnitude(MultiArrayView<N+1, Multiband<T1>, S1> const & src,
|
||||
class T2, class S2>
|
||||
void
|
||||
symmetricGradientMultiArray(MultiArrayView<N, T1, S1> const & source,
|
||||
- MultiArrayView<N, TinyVector<T2, N>, S2> dest,
|
||||
+ MultiArrayView<N, TinyVector<T2, int(N)>, S2> dest,
|
||||
BlockwiseConvolutionOptions<N> opt);
|
||||
}
|
||||
\endcode
|
||||
@@ -1895,7 +1895,7 @@ template <unsigned int N, class T1, class S1,
|
||||
class T2, class S2>
|
||||
inline void
|
||||
symmetricGradientMultiArray(MultiArrayView<N, T1, S1> const & source,
|
||||
- MultiArrayView<N, TinyVector<T2, N>, S2> dest,
|
||||
+ MultiArrayView<N, TinyVector<T2, int(N)>, S2> dest,
|
||||
ConvolutionOptions<N> opt = ConvolutionOptions<N>())
|
||||
{
|
||||
if(opt.to_point != typename MultiArrayShape<N>::type())
|
||||
@@ -2214,14 +2214,14 @@ laplacianOfGaussianMultiArray(MultiArrayView<N, T1, S1> const & source,
|
||||
template <unsigned int N, class T1, class S1,
|
||||
class T2, class S2>
|
||||
void
|
||||
- gaussianDivergenceMultiArray(MultiArrayView<N, TinyVector<T1, N>, S1> const & vectorField,
|
||||
+ gaussianDivergenceMultiArray(MultiArrayView<N, TinyVector<T1, int(N)>, S1> const & vectorField,
|
||||
MultiArrayView<N, T2, S2> divergence,
|
||||
ConvolutionOptions<N> const & opt);
|
||||
|
||||
template <unsigned int N, class T1, class S1,
|
||||
class T2, class S2>
|
||||
void
|
||||
- gaussianDivergenceMultiArray(MultiArrayView<N, TinyVector<T1, N>, S1> const & vectorField,
|
||||
+ gaussianDivergenceMultiArray(MultiArrayView<N, TinyVector<T1, int(N)>, S1> const & vectorField,
|
||||
MultiArrayView<N, T2, S2> divergence,
|
||||
double sigma,
|
||||
ConvolutionOptions<N> opt = ConvolutionOptions<N>());
|
||||
@@ -2231,7 +2231,7 @@ laplacianOfGaussianMultiArray(MultiArrayView<N, T1, S1> const & source,
|
||||
template <unsigned int N, class T1, class S1,
|
||||
class T2, class S2>
|
||||
void
|
||||
- gaussianDivergenceMultiArray(MultiArrayView<N, TinyVector<T1, N>, S1> const & vectorField,
|
||||
+ gaussianDivergenceMultiArray(MultiArrayView<N, TinyVector<T1, int(N)>, S1> const & vectorField,
|
||||
MultiArrayView<N, T2, S2> divergence,
|
||||
BlockwiseConvolutionOptions<N> const & opt);
|
||||
}
|
||||
@@ -2324,7 +2324,7 @@ gaussianDivergenceMultiArray(Iterator vectorField, Iterator vectorFieldEnd,
|
||||
template <unsigned int N, class T1, class S1,
|
||||
class T2, class S2>
|
||||
inline void
|
||||
-gaussianDivergenceMultiArray(MultiArrayView<N, TinyVector<T1, N>, S1> const & vectorField,
|
||||
+gaussianDivergenceMultiArray(MultiArrayView<N, TinyVector<T1, int(N)>, S1> const & vectorField,
|
||||
MultiArrayView<N, T2, S2> divergence,
|
||||
ConvolutionOptions<N> const & opt)
|
||||
{
|
||||
@@ -2338,7 +2338,7 @@ gaussianDivergenceMultiArray(MultiArrayView<N, TinyVector<T1, N>, S1> const & ve
|
||||
template <unsigned int N, class T1, class S1,
|
||||
class T2, class S2>
|
||||
inline void
|
||||
-gaussianDivergenceMultiArray(MultiArrayView<N, TinyVector<T1, N>, S1> const & vectorField,
|
||||
+gaussianDivergenceMultiArray(MultiArrayView<N, TinyVector<T1, int(N)>, S1> const & vectorField,
|
||||
MultiArrayView<N, T2, S2> divergence,
|
||||
double sigma,
|
||||
ConvolutionOptions<N> opt = ConvolutionOptions<N>())
|
3
sources
3
sources
@ -1 +1,2 @@
|
||||
15c5544448e529ee60020758ab6be264 vigra-1.8.0-src.tar.gz
|
||||
SHA512 (vigra-1.11.1-src-clean.tar.gz) = 38c500dacf7a8b8bba22bd3aabaacd061589f76331f9ccf17c52096fa82ff510e531f2120326970789e0f22c4584c35fcb7bfc0eaffce80bea28e2f545a0e12f
|
||||
SHA512 (vigra-config.sh) = 03201ad578ff332cb1186bfa9d4871ada509a8322fb07bd38f00e9254b8c7766920621bb617fdebd927714539fe1ca2a56e7a1a8ce91f02bc2e92d3572d47cb9
|
||||
|
49
vigra-1.10.0-no-lenna.patch
Normal file
49
vigra-1.10.0-no-lenna.patch
Normal file
@ -0,0 +1,49 @@
|
||||
diff -up vigra-1.10.0/test/convolution/CMakeLists.txt.no-lenna vigra-1.10.0/test/convolution/CMakeLists.txt
|
||||
--- vigra-1.10.0/test/convolution/CMakeLists.txt.no-lenna 2013-11-18 11:48:16.000000000 -0500
|
||||
+++ vigra-1.10.0/test/convolution/CMakeLists.txt 2016-02-02 16:14:12.717684303 -0500
|
||||
@@ -1,3 +1 @@
|
||||
VIGRA_ADD_TEST(test_convolution test.cxx LIBRARIES vigraimpex)
|
||||
-
|
||||
-VIGRA_COPY_TEST_DATA(lenna128.xv lenna_simple_sharpening_orig.xv lenna_gaussian_sharpening_orig.xv lenna128sepgrad.xv lennahessxx.xv lennastxx.xv lenna128recgrad.xv lenna128nonlinear.xv resampling.xv lennahessyy.xv lennastyy.xv lennahessxy.xv lennastxy.xv lenna128rgb.xv lenna128rgbsepgrad.xv lenna_level-2.xv lenna_level-1.xv lenna_level1.xv lenna_level2.xv lenna_levellap0.xv lenna_levellap1.xv lenna_levellap2.xv lennargbst.xv)
|
||||
diff -up vigra-1.10.0/test/image/CMakeLists.txt.no-lenna vigra-1.10.0/test/image/CMakeLists.txt
|
||||
--- vigra-1.10.0/test/image/CMakeLists.txt.no-lenna 2013-11-18 11:48:16.000000000 -0500
|
||||
+++ vigra-1.10.0/test/image/CMakeLists.txt 2016-02-02 16:14:12.717684303 -0500
|
||||
@@ -1,3 +1,2 @@
|
||||
VIGRA_ADD_TEST(test_image test.cxx LIBRARIES vigraimpex)
|
||||
|
||||
-VIGRA_COPY_TEST_DATA(lenna.xv)
|
||||
diff -up vigra-1.10.0/test/imgproc/CMakeLists.txt.no-lenna vigra-1.10.0/test/imgproc/CMakeLists.txt
|
||||
--- vigra-1.10.0/test/imgproc/CMakeLists.txt.no-lenna 2016-02-02 16:15:28.441127606 -0500
|
||||
+++ vigra-1.10.0/test/imgproc/CMakeLists.txt 2016-02-02 16:15:35.169078143 -0500
|
||||
@@ -1,3 +1 @@
|
||||
VIGRA_ADD_TEST(test_imgproc test.cxx LIBRARIES vigraimpex)
|
||||
-
|
||||
-VIGRA_COPY_TEST_DATA(lenna128.xv lenna128rgb.xv splineimageview2.xv splineimageview3.xv splineimageview5.xv lenna42lin.xv lenna288neu.xv lenna42neu.xv lenna288rgbneu.xv lenna42rgbneu.xv lenna367FIR.xv lenna42FIR.xv lenna367IIR.xv lenna42IIR.xv lenna42linrgb.xv lennargb42FIR.xv lennargb42IIR.xv lenna_rotate.xv)
|
||||
diff -up vigra-1.10.0/test/impex/CMakeLists.txt.no-lenna vigra-1.10.0/test/impex/CMakeLists.txt
|
||||
--- vigra-1.10.0/test/impex/CMakeLists.txt.no-lenna 2016-02-02 16:15:50.345966568 -0500
|
||||
+++ vigra-1.10.0/test/impex/CMakeLists.txt 2016-02-02 16:15:59.993895639 -0500
|
||||
@@ -17,5 +17,3 @@ ENDIF(OPENEXR_FOUND)
|
||||
|
||||
VIGRA_ADD_TEST(test_impex test.cxx LIBRARIES vigraimpex)
|
||||
|
||||
-VIGRA_COPY_TEST_DATA(lenna.xv lenna_gifref.xv lennafloat.xv lennafloatrgb.xv lennargb.xv no-image.txt lenna_0.tif lenna_1.tif lenna_2.tif lenna_masked_color.tif lenna_masked_gray.tif bilevel.tiff)
|
||||
-
|
||||
diff -up vigra-1.10.0/test/simpleanalysis/CMakeLists.txt.no-lenna vigra-1.10.0/test/simpleanalysis/CMakeLists.txt
|
||||
--- vigra-1.10.0/test/simpleanalysis/CMakeLists.txt.no-lenna 2016-02-02 16:15:04.689302222 -0500
|
||||
+++ vigra-1.10.0/test/simpleanalysis/CMakeLists.txt 2016-02-02 16:15:14.169232529 -0500
|
||||
@@ -7,4 +7,4 @@ else()
|
||||
VIGRA_ADD_TEST(test_simpleanalysis test.cxx LIBRARIES vigraimpex)
|
||||
endif()
|
||||
|
||||
-VIGRA_COPY_TEST_DATA(noiseNormalizationTest.xv slantedEdgeMTF.xv lenna128.xv)
|
||||
+VIGRA_COPY_TEST_DATA(noiseNormalizationTest.xv slantedEdgeMTF.xv)
|
||||
diff -up vigra-1.10.0/test/slic2d/CMakeLists.txt.no-lenna vigra-1.10.0/test/slic2d/CMakeLists.txt
|
||||
--- vigra-1.10.0/test/slic2d/CMakeLists.txt.no-lenna 2013-11-18 11:48:16.000000000 -0500
|
||||
+++ vigra-1.10.0/test/slic2d/CMakeLists.txt 2016-02-02 16:14:12.717684303 -0500
|
||||
@@ -1,3 +1,3 @@
|
||||
|
||||
-VIGRA_COPY_TEST_DATA(lenna.xv slic.xv)
|
||||
-VIGRA_ADD_TEST(test_slic2d test.cxx LIBRARIES vigraimpex)
|
||||
\ No newline at end of file
|
||||
+VIGRA_COPY_TEST_DATA(slic.xv)
|
||||
+VIGRA_ADD_TEST(test_slic2d test.cxx LIBRARIES vigraimpex)
|
8
vigra-1.11.1.docdir.patch
Normal file
8
vigra-1.11.1.docdir.patch
Normal file
@ -0,0 +1,8 @@
|
||||
--- vigra-1.11.1/config/vigra-config.in 2017-12-16 14:34:37.544633998 -0600
|
||||
+++ vigra-1.11.1/config/vigra-config.in 2017-12-16 14:38:16.297616754 -0600
|
||||
@@ -93,4 +93,4 @@ if op.include_path: # was: --include_pat
|
||||
print('@CMAKE_INSTALL_PREFIX@/include')
|
||||
|
||||
if op.docdir:
|
||||
- print('@DOCDIR@')
|
||||
+ print('@CMAKE_INSTALL_PREFIX@/@DOCINSTALL@')
|
12
vigra-1.11.1.py37.patch
Normal file
12
vigra-1.11.1.py37.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -ur vigra-1.11.1/vigranumpy/src/core/vigranumpycore.cxx vigra-1.11.1.new/vigranumpy/src/core/vigranumpycore.cxx
|
||||
--- vigra-1.11.1/vigranumpy/src/core/vigranumpycore.cxx 2017-05-19 16:01:08.000000000 +0100
|
||||
+++ vigra-1.11.1.new/vigranumpy/src/core/vigranumpycore.cxx 2018-08-23 00:08:42.980416247 +0100
|
||||
@@ -61,7 +61,7 @@
|
||||
return checksum(data, size);
|
||||
#else
|
||||
Py_ssize_t size = 0;
|
||||
- char * data = PyUnicode_AsUTF8AndSize(s.ptr(), &size);
|
||||
+ const char * data = PyUnicode_AsUTF8AndSize(s.ptr(), &size);
|
||||
return checksum(data, size);
|
||||
#endif
|
||||
}
|
@ -1,55 +0,0 @@
|
||||
diff -ur vigra-1.7.0-src/CMakeLists.txt vigra-1.7.0-src.new/CMakeLists.txt
|
||||
--- vigra-1.7.0-src/CMakeLists.txt 2010-04-15 19:27:25.000000000 +0100
|
||||
+++ vigra-1.7.0-src.new/CMakeLists.txt 2010-04-21 00:09:48.000000000 +0100
|
||||
@@ -113,6 +113,8 @@
|
||||
INSTALL(DIRECTORY ${PROJECT_SOURCE_DIR}/include/vigra DESTINATION include)
|
||||
INSTALL(DIRECTORY ${PROJECT_BINARY_DIR}/include/vigra DESTINATION include)
|
||||
|
||||
+set(LIB_SUFFIX "" CACHE STRING "Define suffix of lib directory name (32/64)" )
|
||||
+
|
||||
##################################################
|
||||
#
|
||||
# enable CPack package generation
|
||||
@@ -145,8 +147,8 @@
|
||||
|
||||
# export targets:
|
||||
#export(TARGETS all FILE
|
||||
-INSTALL(EXPORT vigra-targets DESTINATION lib/vigra)
|
||||
-INSTALL(FILES ${PROJECT_BINARY_DIR}/lib/vigra/CMake/VigraConfig.cmake DESTINATION lib/vigra)
|
||||
+INSTALL(EXPORT vigra-targets DESTINATION lib${LIB_SUFFIX}/vigra)
|
||||
+INSTALL(FILES ${PROJECT_BINARY_DIR}/lib/vigra/CMake/VigraConfig.cmake DESTINATION lib${LIB_SUFFIX}/vigra)
|
||||
EXPORT(TARGETS vigraimpex FILE vigra-targets.cmake)
|
||||
|
||||
##################################################
|
||||
@@ -205,7 +207,7 @@
|
||||
MESSAGE( STATUS "---------------------------------------------------------" )
|
||||
|
||||
MESSAGE( STATUS " includes will be installed at: ${CMAKE_INSTALL_PREFIX}/include")
|
||||
-MESSAGE( STATUS " libraries will be installed at: ${CMAKE_INSTALL_PREFIX}/lib")
|
||||
+MESSAGE( STATUS " libraries will be installed at: ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}")
|
||||
|
||||
IF (MSVC)
|
||||
MESSAGE( STATUS " binaries and DLLs will be installed at: ${CMAKE_INSTALL_PREFIX}/bin")
|
||||
diff -ur vigra-1.7.0-src/config/FindVIGRANUMPY_DEPENDENCIES.cmake vigra-1.7.0-src.new/config/FindVIGRANUMPY_DEPENDENCIES.cmake
|
||||
--- vigra-1.7.0-src/config/FindVIGRANUMPY_DEPENDENCIES.cmake 2010-04-15 19:27:25.000000000 +0100
|
||||
+++ vigra-1.7.0-src.new/config/FindVIGRANUMPY_DEPENDENCIES.cmake 2010-04-20 23:30:16.000000000 +0100
|
||||
@@ -36,7 +36,7 @@
|
||||
######################################################################
|
||||
IF(NOT DEFINED VIGRANUMPY_INSTALL_DIR OR VIGRANUMPY_INSTALL_DIR MATCHES "^$")
|
||||
execute_process ( COMMAND ${PYTHON_EXECUTABLE} -c
|
||||
- "from distutils.sysconfig import *; print get_python_lib()"
|
||||
+ "from distutils.sysconfig import *; print get_python_lib(1)"
|
||||
OUTPUT_VARIABLE PYTHON_SITE_PACKAGES OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
FILE(TO_CMAKE_PATH ${PYTHON_SITE_PACKAGES} VIGRANUMPY_INSTALL_DIR)
|
||||
ENDIF()
|
||||
diff -ur vigra-1.7.0-src/src/impex/CMakeLists.txt vigra-1.7.0-src.new/src/impex/CMakeLists.txt
|
||||
--- vigra-1.7.0-src/src/impex/CMakeLists.txt 2010-04-15 19:27:39.000000000 +0100
|
||||
+++ vigra-1.7.0-src.new/src/impex/CMakeLists.txt 2010-04-20 23:24:44.000000000 +0100
|
||||
@@ -62,5 +62,5 @@
|
||||
INSTALL(TARGETS vigraimpex
|
||||
EXPORT vigra-targets
|
||||
RUNTIME DESTINATION bin
|
||||
- LIBRARY DESTINATION lib
|
||||
- ARCHIVE DESTINATION lib)
|
||||
+ LIBRARY DESTINATION lib${LIB_SUFFIX}
|
||||
+ ARCHIVE DESTINATION lib${LIB_SUFFIX})
|
@ -1,33 +0,0 @@
|
||||
diff -baur vigra-1.7.1.old/include/vigra/random_forest.hxx vigra-1.7.1/include/vigra/random_forest.hxx
|
||||
--- vigra-1.7.1.old/include/vigra/random_forest.hxx 2010-12-03 17:40:34.000000000 +0000
|
||||
+++ vigra-1.7.1/include/vigra/random_forest.hxx 2011-01-28 00:16:32.000000000 +0000
|
||||
@@ -43,6 +43,7 @@
|
||||
#include <set>
|
||||
#include <list>
|
||||
#include <numeric>
|
||||
+#include <stddef.h>
|
||||
#include "mathutil.hxx"
|
||||
#include "array_vector.hxx"
|
||||
#include "sized_int.hxx"
|
||||
diff -baur vigra-1.7.1.old/include/vigra/sifImport.hxx vigra-1.7.1/include/vigra/sifImport.hxx
|
||||
--- vigra-1.7.1.old/include/vigra/sifImport.hxx 2010-12-03 17:40:34.000000000 +0000
|
||||
+++ vigra-1.7.1/include/vigra/sifImport.hxx 2011-01-28 00:23:31.000000000 +0000
|
||||
@@ -57,6 +57,7 @@
|
||||
#include <fstream>
|
||||
#include <cstring>
|
||||
#include <vector>
|
||||
+#include <stddef.h>
|
||||
#include "vigra/multi_array.hxx"
|
||||
|
||||
namespace vigra {
|
||||
diff -baur vigra-1.7.1.old/include/vigra/multi_iterator.hxx vigra-1.7.1/include/vigra/multi_iterator.hxx
|
||||
--- vigra-1.7.1.old/include/vigra/multi_iterator.hxx 2010-12-03 17:40:34.000000000 +0000
|
||||
+++ vigra-1.7.1/include/vigra/multi_iterator.hxx 2011-01-28 00:23:31.000000000 +0000
|
||||
@@ -41,6 +41,7 @@
|
||||
#define VIGRA_MULTI_ITERATOR_HXX
|
||||
|
||||
#include <sys/types.h>
|
||||
+#include <stddef.h>
|
||||
#include "tinyvector.hxx"
|
||||
#include "iteratortags.hxx"
|
||||
|
@ -1,78 +0,0 @@
|
||||
Note: for some reason vigra uses a non-standard LIBDIR_SUFFIX definition
|
||||
whereas usually this is LIB_SUFFIX. This patch fixes this since fedora expects
|
||||
to use the standard.
|
||||
|
||||
diff -baur vigra-1.7.1/CMakeLists.txt vigra-1.7.1.new/CMakeLists.txt
|
||||
--- vigra-1.7.1/CMakeLists.txt 2010-12-03 17:40:34.000000000 +0000
|
||||
+++ vigra-1.7.1.new/CMakeLists.txt 2011-01-24 21:31:37.000000000 +0000
|
||||
@@ -118,6 +118,8 @@
|
||||
ENDIF()
|
||||
|
||||
|
||||
+set(LIB_SUFFIX "" CACHE STRING "Define suffix of lib directory name (32/64)" )
|
||||
+
|
||||
##################################################
|
||||
#
|
||||
# global installation commands
|
||||
@@ -177,10 +179,10 @@
|
||||
|
||||
# export targets:
|
||||
INSTALL(EXPORT vigra-targets
|
||||
- DESTINATION lib${LIBDIR_SUFFIX}/vigra)
|
||||
+ DESTINATION lib${LIB_SUFFIX}/vigra)
|
||||
INSTALL(FILES ${PROJECT_BINARY_DIR}/lib/vigra/CMake/VigraConfig.cmake
|
||||
${PROJECT_BINARY_DIR}/lib/vigra/CMake/VigraConfigVersion.cmake
|
||||
- DESTINATION lib${LIBDIR_SUFFIX}/vigra)
|
||||
+ DESTINATION lib${LIB_SUFFIX}/vigra)
|
||||
EXPORT(TARGETS vigraimpex FILE vigra-targets.cmake)
|
||||
|
||||
##################################################
|
||||
@@ -239,7 +241,7 @@
|
||||
MESSAGE( STATUS "---------------------------------------------------------" )
|
||||
|
||||
MESSAGE( STATUS " includes will be installed at: ${CMAKE_INSTALL_PREFIX}/include")
|
||||
-MESSAGE( STATUS " libraries will be installed at: ${CMAKE_INSTALL_PREFIX}/lib${LIBDIR_SUFFIX}")
|
||||
+MESSAGE( STATUS " libraries will be installed at: ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}")
|
||||
|
||||
IF (MSVC)
|
||||
MESSAGE( STATUS " binaries and DLLs will be installed at: ${CMAKE_INSTALL_PREFIX}/bin")
|
||||
diff -baur vigra-1.7.1/doc/vigra/Installation.html vigra-1.7.1.new/doc/vigra/Installation.html
|
||||
--- vigra-1.7.1/doc/vigra/Installation.html 2010-12-03 17:49:58.000000000 +0000
|
||||
+++ vigra-1.7.1.new/doc/vigra/Installation.html 2011-01-24 21:34:48.000000000 +0000
|
||||
@@ -57,8 +57,8 @@
|
||||
<dd>build VIGRA Python bindings (default: 1). Pass -DWITH_VIGRANUMPY=0 to suppress vigranumpy. </dd>
|
||||
<dt>-DWITH_HDF5=1 </dt>
|
||||
<dd>build VIGRA with HDF5 support (default: 1). Pass -DDWITH_HDF5=0 to compile without HDF5. </dd>
|
||||
-<dt>-DLIBDIR_SUFFIX=64 </dt>
|
||||
-<dd>define suffix of lib directory name (default: empty string, i.e. no suffix). Use -DLIBDIR_SUFFIX=64 when you want to install libraries in $CMAKE_INSTALL_PREFIX/lib64. </dd>
|
||||
+<dt>-DLIB_SUFFIX=64 </dt>
|
||||
+<dd>define suffix of lib directory name (default: empty string, i.e. no suffix). Use -DLIB_SUFFIX=64 when you want to install libraries in $CMAKE_INSTALL_PREFIX/lib64. </dd>
|
||||
</dl>
|
||||
<p>
|
||||
More fine-grained customization (e.g. specification of explicit paths for all dependencies, customization of compiler flags) is possible by editing the file <vigra_build_path>/CMakeCache.txt. This is best done by means of the interactive programs <b>ccmake</b> or <b>cmake-gui</b>. Consult the <a href="http://www.cmake.org/cmake/help/documentation.html">cmake documentation</a> for more detailed help.<p>
|
||||
diff -baur vigra-1.7.1/docsrc/installation.dxx vigra-1.7.1.new/docsrc/installation.dxx
|
||||
--- vigra-1.7.1/docsrc/installation.dxx 2010-12-03 17:40:34.000000000 +0000
|
||||
+++ vigra-1.7.1.new/docsrc/installation.dxx 2011-01-24 21:34:20.000000000 +0000
|
||||
@@ -50,9 +50,9 @@
|
||||
vigranumpy.
|
||||
<DT> -DWITH_HDF5=1
|
||||
<DD> build VIGRA with HDF5 support (default: 1). Pass -DDWITH_HDF5=0 to compile without HDF5.
|
||||
- <DT> -DLIBDIR_SUFFIX=64
|
||||
+ <DT> -DLIB_SUFFIX=64
|
||||
<DD> define suffix of lib directory name (default: empty string, i.e. no suffix). Use
|
||||
- -DLIBDIR_SUFFIX=64 when you want to install libraries in $CMAKE_INSTALL_PREFIX/lib64.
|
||||
+ -DLIB_SUFFIX=64 when you want to install libraries in $CMAKE_INSTALL_PREFIX/lib64.
|
||||
</DL>
|
||||
|
||||
More fine-grained customization (e.g. specification of explicit paths for all dependencies, customization of compiler flags) is possible by editing the file <vigra_build_path>/CMakeCache.txt. This is best done by means of the interactive programs <b>ccmake</b> or <b>cmake-gui</b>. Consult the <a href="http://www.cmake.org/cmake/help/documentation.html">cmake documentation</a> for more detailed help.
|
||||
diff -baur vigra-1.7.1/src/impex/CMakeLists.txt vigra-1.7.1.new/src/impex/CMakeLists.txt
|
||||
--- vigra-1.7.1/src/impex/CMakeLists.txt 2010-12-03 17:40:34.000000000 +0000
|
||||
+++ vigra-1.7.1.new/src/impex/CMakeLists.txt 2011-01-24 21:37:17.000000000 +0000
|
||||
@@ -64,5 +64,5 @@
|
||||
INSTALL(TARGETS vigraimpex
|
||||
EXPORT vigra-targets
|
||||
RUNTIME DESTINATION bin
|
||||
- LIBRARY DESTINATION lib${LIBDIR_SUFFIX}
|
||||
- ARCHIVE DESTINATION lib${LIBDIR_SUFFIX})
|
||||
+ LIBRARY DESTINATION lib${LIB_SUFFIX}
|
||||
+ ARCHIVE DESTINATION lib${LIB_SUFFIX})
|
@ -1,12 +0,0 @@
|
||||
diff -ru vigra-1.8.0/include/vigra/numpy_array.hxx vigra-1.8.0.new/include/vigra/numpy_array.hxx
|
||||
--- vigra-1.8.0/include/vigra/numpy_array.hxx 2011-09-20 19:38:36.000000000 +0100
|
||||
+++ vigra-1.8.0.new/include/vigra/numpy_array.hxx 2012-02-27 21:03:54.000000000 +0000
|
||||
@@ -1074,7 +1074,7 @@
|
||||
|
||||
this->m_stride /= sizeof(value_type);
|
||||
this->m_ptr = reinterpret_cast<pointer>(pyArray()->data);
|
||||
- vigra_precondition(checkInnerStride(Stride()),
|
||||
+ vigra_precondition(this->checkInnerStride(Stride()),
|
||||
"NumpyArray<..., UnstridedArrayTag>::setupArrayView(): First dimension of given array is not unstrided (should never happen).");
|
||||
|
||||
}
|
@ -1,78 +0,0 @@
|
||||
Note: for some reason vigra uses a non-standard LIBDIR_SUFFIX definition
|
||||
whereas usually this is LIB_SUFFIX. This patch fixes this since fedora expects
|
||||
to use the standard.
|
||||
|
||||
diff -baur vigra-1.8.0/CMakeLists.txt vigra-1.8.0.new/CMakeLists.txt
|
||||
--- vigra-1.8.0/CMakeLists.txt 2011-09-20 19:38:36.000000000 +0100
|
||||
+++ vigra-1.8.0.new/CMakeLists.txt 2011-09-24 21:20:55.000000000 +0100
|
||||
@@ -128,6 +128,8 @@
|
||||
ENDIF()
|
||||
|
||||
|
||||
+set(LIB_SUFFIX "" CACHE STRING "Define suffix of lib directory name (32/64)" )
|
||||
+
|
||||
##################################################
|
||||
#
|
||||
# global installation commands
|
||||
@@ -213,10 +215,10 @@
|
||||
|
||||
# export targets:
|
||||
INSTALL(EXPORT vigra-targets
|
||||
- DESTINATION lib${LIBDIR_SUFFIX}/vigra)
|
||||
+ DESTINATION lib${LIB_SUFFIX}/vigra)
|
||||
INSTALL(FILES ${PROJECT_BINARY_DIR}/lib/vigra/CMake/VigraConfig.cmake
|
||||
${PROJECT_BINARY_DIR}/lib/vigra/CMake/VigraConfigVersion.cmake
|
||||
- DESTINATION lib${LIBDIR_SUFFIX}/vigra)
|
||||
+ DESTINATION lib${LIB_SUFFIX}/vigra)
|
||||
EXPORT(TARGETS vigraimpex FILE vigra-targets.cmake)
|
||||
|
||||
##################################################
|
||||
@@ -289,7 +291,7 @@
|
||||
MESSAGE( STATUS "---------------------------------------------------------" )
|
||||
|
||||
MESSAGE( STATUS " includes will be installed at: ${CMAKE_INSTALL_PREFIX}/include")
|
||||
-MESSAGE( STATUS " libraries will be installed at: ${CMAKE_INSTALL_PREFIX}/lib${LIBDIR_SUFFIX}")
|
||||
+MESSAGE( STATUS " libraries will be installed at: ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}")
|
||||
|
||||
IF (MSVC)
|
||||
MESSAGE( STATUS " binaries and DLLs will be installed at: ${CMAKE_INSTALL_PREFIX}/bin")
|
||||
diff -baur vigra-1.8.0/doc/vigra/Installation.html vigra-1.8.0.new/doc/vigra/Installation.html
|
||||
--- vigra-1.8.0/doc/vigra/Installation.html 2011-09-20 19:43:37.000000000 +0100
|
||||
+++ vigra-1.8.0.new/doc/vigra/Installation.html 2011-09-24 21:21:39.000000000 +0100
|
||||
@@ -58,8 +58,8 @@
|
||||
<dd>build VIGRA Python bindings (default: 1). Pass -DWITH_VIGRANUMPY=0 to suppress vigranumpy. </dd>
|
||||
<dt>-DWITH_HDF5=1 </dt>
|
||||
<dd>build VIGRA with HDF5 support (default: 1). Pass -DDWITH_HDF5=0 to compile without HDF5. </dd>
|
||||
-<dt>-DLIBDIR_SUFFIX=64 </dt>
|
||||
-<dd>define suffix of lib directory name (default: empty string, i.e. no suffix). Use -DLIBDIR_SUFFIX=64 when you want to install libraries in $CMAKE_INSTALL_PREFIX/lib64. </dd>
|
||||
+<dt>-DLIB_SUFFIX=64 </dt>
|
||||
+<dd>define suffix of lib directory name (default: empty string, i.e. no suffix). Use -DLIB_SUFFIX=64 when you want to install libraries in $CMAKE_INSTALL_PREFIX/lib64. </dd>
|
||||
</dl>
|
||||
<p>More fine-grained customization (e.g. specification of explicit paths for all dependencies, customization of compiler flags) is possible by editing the file <vigra_build_path>/CMakeCache.txt. This is best done by means of the interactive programs <b>ccmake</b> or <b>cmake-gui</b>. Consult the <a href="http://www.cmake.org/cmake/help/documentation.html">cmake documentation</a> for more detailed help.</p>
|
||||
<p>For using VIGRA in another CMake-built project, you can use the CMake command FIND_PACKAGE(Vigra), which will set the CMake variables ${Vigra_INCLUDE_DIRS} with the correct include path, and import the binary targets (currently vigraimpex) to link against (e.g., TARGET_LINK_LIBRARIES(targetname vigraimpex)). For this mechanism to work, CMake reads a config file VigraConfig.cmake, which is installed along with the library in CMAKE_INSTALL_PREFIX/lib/vigra. Alternatively, you can point CMake (cache entry Vigra_DIR) to VIGRA's build directory, where a corresponding VigraConfig.cmake resides for using the build version directly without installation. </p>
|
||||
diff -baur vigra-1.8.0/docsrc/installation.dxx vigra-1.8.0.new/docsrc/installation.dxx
|
||||
--- vigra-1.8.0/docsrc/installation.dxx 2011-09-20 19:38:36.000000000 +0100
|
||||
+++ vigra-1.8.0.new/docsrc/installation.dxx 2011-09-24 21:19:52.000000000 +0100
|
||||
@@ -53,9 +53,9 @@
|
||||
vigranumpy.
|
||||
<DT> -DWITH_HDF5=1
|
||||
<DD> build VIGRA with HDF5 support (default: 1). Pass -DDWITH_HDF5=0 to compile without HDF5.
|
||||
- <DT> -DLIBDIR_SUFFIX=64
|
||||
+ <DT> -DLIB_SUFFIX=64
|
||||
<DD> define suffix of lib directory name (default: empty string, i.e. no suffix). Use
|
||||
- -DLIBDIR_SUFFIX=64 when you want to install libraries in $CMAKE_INSTALL_PREFIX/lib64.
|
||||
+ -DLIB_SUFFIX=64 when you want to install libraries in $CMAKE_INSTALL_PREFIX/lib64.
|
||||
</DL>
|
||||
|
||||
More fine-grained customization (e.g. specification of explicit paths for all dependencies, customization of compiler flags) is possible by editing the file <vigra_build_path>/CMakeCache.txt. This is best done by means of the interactive programs <b>ccmake</b> or <b>cmake-gui</b>. Consult the <a href="http://www.cmake.org/cmake/help/documentation.html">cmake documentation</a> for more detailed help.
|
||||
diff -baur vigra-1.8.0/src/impex/CMakeLists.txt vigra-1.8.0.new/src/impex/CMakeLists.txt
|
||||
--- vigra-1.8.0/src/impex/CMakeLists.txt 2011-09-20 19:38:36.000000000 +0100
|
||||
+++ vigra-1.8.0.new/src/impex/CMakeLists.txt 2011-09-24 21:19:52.000000000 +0100
|
||||
@@ -80,5 +80,5 @@
|
||||
INSTALL(TARGETS vigraimpex
|
||||
EXPORT vigra-targets
|
||||
RUNTIME DESTINATION bin
|
||||
- LIBRARY DESTINATION lib${LIBDIR_SUFFIX}
|
||||
- ARCHIVE DESTINATION lib${LIBDIR_SUFFIX})
|
||||
+ LIBRARY DESTINATION lib${LIB_SUFFIX}
|
||||
+ ARCHIVE DESTINATION lib${LIB_SUFFIX})
|
329
vigra.spec
329
vigra.spec
@ -1,18 +1,44 @@
|
||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||
Summary: Generic Programming for Computer Vision
|
||||
Name: vigra
|
||||
Version: 1.8.0
|
||||
Release: 6%{?dist}
|
||||
Version: 1.11.1
|
||||
Release: 16%{?dist}
|
||||
License: MIT
|
||||
Group: Development/Libraries
|
||||
Source: http://hci.iwr.uni-heidelberg.de/%{name}/%{name}-%{version}-src.tar.gz
|
||||
Patch1: vigra-1.8.0.lib_suffix.patch
|
||||
Patch2: vigra-1.8.0.gcc47.patch
|
||||
URL: http://hci.iwr.uni-heidelberg.de/vigra/
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: zlib-devel libjpeg-devel libpng-devel libtiff-devel fftw-devel >= 3
|
||||
BuildRequires: cmake hdf5-devel boost-devel boost-python doxygen python-sphinx numpy-f2py
|
||||
# The "Lenna" files are non-free, we need to remove them from the source tarball.
|
||||
# wget https://github.com/ukoethe/vigra/releases/download/Version-1-11-1/vigra-1.11.1-src.tar.gz
|
||||
# tar xf vigra-1.11.1-src.tar.gz
|
||||
# find vigra-1.11.1/ -name "lenna*" -delete
|
||||
# tar zcf vigra-1.11.1-src-clean.tar.gz vigra-1.11.1/
|
||||
Source0: %{name}-%{version}-src-clean.tar.gz
|
||||
Source1: vigra-config.sh
|
||||
# Backported from upstream master, fixes a build failure:
|
||||
# https://github.com/ukoethe/vigra/issues/414
|
||||
Patch0: https://github.com/ukoethe/vigra/commit/81958d302494e137f98a8b1d7869841532f90388.patch
|
||||
# Avoid attempt to install non-free 'lenna' files
|
||||
Patch1: vigra-1.10.0-no-lenna.patch
|
||||
Patch2: vigra-1.11.1.docdir.patch
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1597394
|
||||
Patch3: vigra-1.11.1.py37.patch
|
||||
URL: http://ukoethe.github.io/vigra/
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: libjpeg-devel
|
||||
BuildRequires: libpng-devel
|
||||
BuildRequires: libtiff-devel
|
||||
BuildRequires: fftw-devel >= 3
|
||||
BuildRequires: cmake
|
||||
BuildRequires: boost-devel
|
||||
BuildRequires: doxygen
|
||||
%if ! 0%{?rhel}
|
||||
Requires: python3
|
||||
BuildRequires: hdf5-devel
|
||||
BuildRequires: python3-sphinx
|
||||
BuildRequires: OpenEXR-devel
|
||||
BuildRequires: python3-numpy-f2py
|
||||
BuildRequires: boost-python3
|
||||
BuildRequires: boost-python3-devel
|
||||
%else
|
||||
Requires: python
|
||||
%endif
|
||||
|
||||
%description
|
||||
VIGRA stands for "Vision with Generic Algorithms". It's a novel computer vision
|
||||
@ -21,66 +47,299 @@ structures. By using template techniques similar to those in the C++ Standard
|
||||
Template Library, you can easily adapt any VIGRA component to the needs of your
|
||||
application without thereby giving up execution speed.
|
||||
|
||||
#'
|
||||
|
||||
%package devel
|
||||
Summary: Development tools for programs which will use the vigra library
|
||||
Group: Development/Libraries
|
||||
Requires: vigra = %{version}-%{release}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: libjpeg-devel libtiff-devel libpng-devel zlib-devel fftw-devel >= 3
|
||||
Requires: hdf5-devel boost-devel boost-python numpy-f2py
|
||||
Requires: boost-devel
|
||||
%if ! 0%{?rhel}
|
||||
Requires: hdf5-devel
|
||||
Requires: OpenEXR-devel
|
||||
Requires: python3-numpy-f2py boost-python3 boost-python3-devel
|
||||
%endif
|
||||
|
||||
%description devel
|
||||
The vigra-devel package includes the header files necessary for developing
|
||||
programs that use the vigra library.
|
||||
|
||||
%package python
|
||||
Summary: Python interface for the vigra computer vision library
|
||||
Requires: vigra = %{version}-%{release}
|
||||
Requires: numpy numpy-f2py
|
||||
%if ! 0%{?rhel}
|
||||
%package -n python3-vigra
|
||||
%{?python_provide:%python_provide python3-vigra}
|
||||
Summary: Python 3 interface for the vigra computer vision library
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: python3-numpy python3-numpy-f2py
|
||||
|
||||
%description python
|
||||
The vigra-python package provides python bindings for vigra
|
||||
%description -n python3-vigra
|
||||
The python3-vigra package provides python 3 bindings for vigra
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%cmake .
|
||||
# Will need to set LEMON_DIR to /usr/share/coin-or-lemon/cmake to compile WITH_LEMON
|
||||
# once the coin-or-lemon package's installed cmake is fixed for x86_64 arch.
|
||||
%if ! 0%{?rhel}
|
||||
sed -i '1s=^#!/usr/bin/\(python\|env python\)[0-9.]*=#!%{__python3}=' \
|
||||
config/vigra-config.in
|
||||
sed -i 's=SET(BOOST_PYTHON_NAMES=& boost_python%{python3_version_nodots}=' \
|
||||
config/FindVIGRANUMPY_DEPENDENCIES.cmake
|
||||
|
||||
mkdir buildpy3
|
||||
pushd buildpy3
|
||||
%cmake .. -DWITH_OPENEXR=1 -DWITH_HDF5=1 -DWITH_VALGRIND=0 -DWITH_LEMON=0 \
|
||||
-DWITH_VIGRANUMPY=1 -DPYTHON_VERSION=%{python3_version}
|
||||
make VERBOSE=1 %{?_smp_mflags}
|
||||
popd
|
||||
%else
|
||||
sed -i '1s=^#!/usr/bin/\(python\|env python\)[0-9.]*=#!%{__python}=' \
|
||||
config/vigra-config.in
|
||||
|
||||
%cmake . -DWITH_OPENEXR=0 -DWITH_HDF5=0 -DWITH_VIGRANUMPY=0 -DWITH_VALGRIND=0 -DWITH_LEMON=0
|
||||
make VERBOSE=1 %{?_smp_mflags}
|
||||
%endif
|
||||
|
||||
# cleanup
|
||||
rm -f doc/vigranumpy/.buildinfo
|
||||
rm -f doc/vigra/lenna*
|
||||
rm -f doc/vigranumpy/vigra/lenna*
|
||||
find ./doc/ -type f | xargs chmod -x
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%if ! 0%{?rhel}
|
||||
make -C buildpy3 install DESTDIR=%{buildroot}
|
||||
mv %{buildroot}/%{_libdir}/vigranumpy/VigranumpyConfig.cmake \
|
||||
%{buildroot}/%{_libdir}/vigranumpy/Vigranumpy3Config.cmake
|
||||
|
||||
%else
|
||||
make install DESTDIR=%{buildroot}
|
||||
%endif
|
||||
|
||||
rm -rf %{buildroot}/usr/doc
|
||||
(
|
||||
cd $RPM_BUILD_ROOT%{_bindir}
|
||||
mv vigra-config vigra-config-%{__isa_bits}
|
||||
)
|
||||
install -p -m755 -D %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/vigra-config
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
#fixme: this fails,
|
||||
#%check
|
||||
#make VERBOSE=1 check
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%defattr(-, root, root,-)
|
||||
%doc LICENSE.txt README.txt
|
||||
%doc LICENSE.txt
|
||||
%{_libdir}/libvigraimpex.so.*
|
||||
|
||||
%files devel
|
||||
%defattr(-, root, root,-)
|
||||
%{_includedir}/vigra
|
||||
%{_bindir}/vigra-config
|
||||
%{_bindir}/vigra-config*
|
||||
%{_libdir}/libvigraimpex.so
|
||||
%{_libdir}/vigra
|
||||
%doc doc/vigra doc/vigranumpy
|
||||
|
||||
%files python
|
||||
%defattr(-, root, root,-)
|
||||
%{python_sitearch}/vigra
|
||||
%if ! 0%{?rhel}
|
||||
%files -n python3-vigra
|
||||
%{python3_sitearch}/vigra
|
||||
%{_libdir}/vigranumpy
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.1-16
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Thu Apr 11 2019 Richard Shaw <hobbes1069@gmail.com> - 1.11.1-15
|
||||
- Rebuild for OpenEXR 2.3.0.
|
||||
|
||||
* Sat Mar 16 2019 Orion Poplawski <orion@nwra.com> - 1.11.1-14
|
||||
- Rebuild for hdf5 1.10.5
|
||||
|
||||
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.1-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Wed Jan 30 2019 Jonathan Wakely <jwakely@redhat.com> - 1.11.1-12
|
||||
- Rebuilt for Boost 1.69
|
||||
|
||||
* Tue Jan 15 2019 Miro Hrončok <mhroncok@redhat.com> - 1.11.1-11
|
||||
- Subpackage python2-vigra has been removed
|
||||
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
||||
|
||||
* Wed Aug 22 2018 Bruno Postle <bruno@postle.net> - 1.11.1-10
|
||||
- Patched for python 3.7
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.1-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 1.11.1-8
|
||||
- Rebuilt for Python 3.7
|
||||
|
||||
* Tue May 01 2018 Jonathan Wakely <jwakely@redhat.com> - 1.11.1-7
|
||||
- Require boost-python2-devel to fix build with boost-1.66.0-7.fc29
|
||||
|
||||
* Wed Mar 07 2018 Adam Williamson <awilliam@redhat.com> - 1.11.1-6
|
||||
- Rebuild to fix GCC 8 mis-compilation
|
||||
See https://da.gd/YJVwk ("GCC 8 ABI change on x86_64")
|
||||
- Clean tarball of non-free image files (bump to 1.11.1 omitted this)
|
||||
- Backport patch from upstream to fix build
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.1-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Fri Dec 15 2017 Troy Curtis, Jr <troycurtisjr@gmail.com> - 1.11.1-4
|
||||
- Add python3 subpackage
|
||||
- Disable compiling with LEMON
|
||||
- Move python shebang fix into spec file.
|
||||
|
||||
* Wed Dec 13 2017 Bruno Postle <bruno@postle.net> - 1.11.1-3
|
||||
- fix -devel dependency on boost-python2
|
||||
|
||||
* Mon Dec 11 2017 Bruno Postle <bruno@postle.net> - 1.11.1-2
|
||||
- Remove 'lenna' images
|
||||
|
||||
* Sun Dec 10 2017 Bruno Postle <bruno@postle.net> - 1.11.1-1
|
||||
- Upstream stable release
|
||||
|
||||
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.11.0-11
|
||||
- Add Provides for the old name without %%_isa
|
||||
|
||||
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.11.0-10
|
||||
- Python 2 binary package renamed to python2-vigra
|
||||
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Wed Jul 19 2017 Jonathan Wakely <jwakely@redhat.com> - 1.11.0-7
|
||||
- Rebuilt for s390x binutils bug
|
||||
|
||||
* Tue Jul 04 2017 Jonathan Wakely <jwakely@redhat.com> - 1.11.0-6
|
||||
- Rebuilt for Boost 1.64
|
||||
|
||||
* Fri Feb 17 2017 Jonathan Wakely <jwakely@redhat.com> - 1.11.0-5
|
||||
- Fix build failure with GCC 7
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Tue Dec 06 2016 Orion Poplawski <orion@cora.nwra.com> - 1.11.0-4
|
||||
- Rebuild for hdf5 1.8.18
|
||||
|
||||
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11.0-3
|
||||
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
||||
|
||||
* Wed Jun 29 2016 Orion Poplawski <orion@cora.nwra.com> - 1.11.0-2
|
||||
- Rebuild for hdf5 1.8.17
|
||||
|
||||
* Wed Apr 13 2016 Bruno Postle <bruno@postle.net> - 1.11.0-1
|
||||
- Upstream stable release
|
||||
|
||||
* Tue Feb 2 2016 Tom Callaway <spot@fedoraproject.org> - 1.10.0-18
|
||||
- remove lenna files (non-free)
|
||||
|
||||
* Thu Jan 21 2016 Orion Poplawski <orion@cora.nwra.com> - 1.10.0-17
|
||||
- Rebuild for hdf5 1.8.16
|
||||
|
||||
* Sat Jan 16 2016 Jonathan Wakely <jwakely@redhat.com> - 1.10.0-16
|
||||
- Rebuilt for Boost 1.60
|
||||
|
||||
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 1.10.0-15
|
||||
- Rebuilt for Boost 1.59
|
||||
|
||||
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
|
||||
|
||||
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 1.10.0-13
|
||||
- rebuild for Boost 1.58
|
||||
|
||||
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Sun May 17 2015 Orion Poplawski <orion@cora.nwra.com> - 1.10.0-11
|
||||
- Rebuild for hdf5 1.8.15
|
||||
|
||||
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.10.0-10
|
||||
- Rebuilt for GCC 5 C++11 ABI change
|
||||
|
||||
* Wed Feb 04 2015 Petr Machata <pmachata@redhat.com> - 1.10.0-9
|
||||
- Bump for rebuild.
|
||||
|
||||
* Mon Feb 02 2015 Bruno Postle <bruno@postle.net> - 1.10.0-8
|
||||
- Fix for transparent alpha bug in 16bit and EXR output
|
||||
|
||||
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 1.10.0-7
|
||||
- Rebuild for boost 1.57.0
|
||||
|
||||
* Wed Jan 07 2015 Orion Poplawski <orion@cora.nwra.com> - 1.10.0-6
|
||||
- Rebuild for hdf5 1.8.14
|
||||
|
||||
* Wed Nov 26 2014 Rex Dieter <rdieter@fedoraproject.org> 1.10.0-5
|
||||
- rebuild (openexr), tighten subpkg deps (via %%{?_isa})
|
||||
|
||||
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 1.10.0-2
|
||||
- Rebuild for boost 1.55.0
|
||||
|
||||
* Fri Dec 13 2013 Bruno Postle <bruno@postle.net> - 1.10.0-1
|
||||
- upstream release
|
||||
|
||||
* Wed Nov 27 2013 Rex Dieter <rdieter@fedoraproject.org> - 1.9.0-14
|
||||
- rebuild (openexr)
|
||||
|
||||
* Sat Sep 21 2013 David Tardon <dtardon@redhat.com> - 1.9.0-13
|
||||
- rebuild for atlas 3.10
|
||||
|
||||
* Thu Sep 12 2013 Caolán McNamara <caolanm@redhat.com> - 1.9.0-12
|
||||
- bump n-v-r
|
||||
|
||||
* Thu Aug 29 2013 Caolán McNamara <caolanm@redhat.com> - 1.9.0-11
|
||||
- Resolves: rhbz#884207 multi-lib vigra-config
|
||||
|
||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Sat Jul 27 2013 pmachata@redhat.com - 1.9.0-9
|
||||
- Rebuild for boost 1.54.0
|
||||
|
||||
* Wed Jul 24 2013 Caolán McNamara <caolanm@redhat.com> - 1.9.0-8
|
||||
- Resolves: rhbz#987048 explicit python path in shebang
|
||||
|
||||
* Tue Jun 04 2013 Caolán McNamara <caolanm@redhat.com> - 1.9.0-7
|
||||
- Resolves: rhbz#970561 no hdf5-devel in RHEL-7
|
||||
|
||||
* Thu May 16 2013 Orion Poplawski <orion@cora.nwra.com> - 1.9.0-6
|
||||
- Rebuild for hdf5 1.8.11
|
||||
|
||||
* Sun Mar 10 2013 Rex Dieter <rdieter@fedoraproject.org> - 1.9.0-5
|
||||
- rebuild (OpenEXR)
|
||||
|
||||
* Thu Feb 14 2013 Caolán McNamara <caolanm@redhat.com> - 1.9.0-4
|
||||
- no hdf5-devel in RHEL-7
|
||||
|
||||
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.9.0-3
|
||||
- Rebuild for Boost-1.53.0
|
||||
|
||||
* Mon Jan 21 2013 Adam Tkac <atkac redhat com> - 1.9.0-2
|
||||
- rebuild due to "jpeg8-ABI" feature drop
|
||||
|
||||
* Tue Nov 06 2012 Bruno Postle <bruno@postle.net> 1.9.0-1
|
||||
- upstream release, support impex OpenEXR
|
||||
|
||||
* Tue Nov 06 2012 Caolán McNamara <caolanm@redhat.com> - 1.8.0-7
|
||||
- document that there is a test suite, but it fails
|
||||
|
||||
* Wed Oct 31 2012 Tom Callaway <spot@fedoraproject.org> - 1.8.0-6
|
||||
- rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user