Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:nandcd
mvimpact_acquire
mvimpact_acquire.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mvimpact_acquire.spec of Package mvimpact_acquire
# # mvimpact_acquire.spec # # Copyright (C) 2009-2021 Nand Ltd. # # norootforbuild # Disable reproducible builds. %define source_date_epoch_from_changelog 0 %define enable_mvvirtualdevice 1 %define enable_mvbluefox 1 %define enable_mvhyperion 1 %define major_ver 2 %define minor_ver 47 %define patch_ver 0 Name: mvimpact_acquire Version: %{major_ver}.%{minor_ver}.%{patch_ver} Release: 1 Url: http://www.matrix-vision.com/ Group: Development/Libraries/C and C++ License: Commercial Summary: MATRIX VISION mvIMPACT Acquire %if %{enable_mvvirtualdevice} Source0: mvVirtualDevice-x86_64_ABI2-%{version}.tgz %endif %if %{enable_mvbluefox} Source1: mvBlueFOX-x86_64_ABI2-%{version}.tgz %endif %if %{enable_mvhyperion} Source2: mvHYPERION-x86_64_ABI2-%{version}.tgz Patch2: mvhyperion-am_init_automake.diff Patch5: mvhyperion-HyperionIoCtlCommon-include.diff Patch7: mvhyperion-wait_queue-task_list.diff Patch9: disable-kernel-module-build-via-make.diff Patch10: fix-kernelmodule-makefiles.diff Patch11: fix-kernelmodule-build.diff Patch12: fix-kernelmodule-bug-scheduling-while-atomic.diff Patch13: fix-kernelmodule-build-2.diff Patch14: fix-apps-build.diff %endif ExclusiveArch: x86_64 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: gcc-c++ BuildRequires: procps BuildRequires: chrpath %if %{sle_version} >= 150500 # There is no group package any more. BuildRequires: wxGTK3-3_2-devel BuildRequires: libwx_gtk3u_propgrid-suse5_0_0 BuildRequires: libwx_gtk3u_webview-suse5_0_0 %else BuildRequires: wxWidgets-3_0-devel >= 3 %endif %if %{enable_mvhyperion} BuildRequires: autoconf BuildRequires: %kernel_module_package_buildreqs %kernel_module_package -n mvhyperion -p mvhyperion-kmp-preamble -x debug -x trace -x xen -x xenpae -x ec2 -x vmi -x pv %endif %description MATRIX VISION mvIMPACT Acquire Authors: -------- MATRIX VISION GmbH %package devel Group: Development/Libraries/C and C++ Summary: MATRIX VISION mvIMPACT Acquire Requires: %{name} = %{version} %description devel MATRIX VISION mvIMPACT Acquire Authors: -------- MATRIX VISION GmbH %if %{enable_mvhyperion} %package KMP Group: System/Kernel Summary: MATRIX VISION mvIMPACT Acquire %description KMP MATRIX VISION mvIMPACT Acquire Authors: -------- MATRIX VISION GmbH %endif %prep %define toplevel_dir mvIMPACT_acquire-x86_64-%{version} rm -rf $RPM_BUILD_DIR/%{toplevel_dir} %if %{enable_mvvirtualdevice} tar -xf %{_sourcedir}/mvVirtualDevice-x86_64_ABI2-%{version}.tgz %endif %if %{enable_mvbluefox} tar -xf %{_sourcedir}/mvBlueFOX-x86_64_ABI2-%{version}.tgz %endif %if %{enable_mvhyperion} tar -xf %{_sourcedir}/mvHYPERION-x86_64_ABI2-%{version}.tgz %endif %setup -T -D -n %{toplevel_dir} %if %{enable_mvhyperion} %patch2 -p1 %patch5 -p1 %if %{sle_version} >= 150000 %patch7 -p1 %endif %patch10 -p1 %patch11 -p1 %patch12 -p1 # The kernel version is the same between 15.4 and 15.5 but a patch from 5.16 seems to be used in # 15.5 and changes the number of parameters of a function making it hard to patch for both openSUSE # versions. %if %{sle_version} >= 150500 %patch13 -p1 %endif %endif %patch9 -p1 %if %{sle_version} >= 150500 %patch14 -p1 %endif %if %{enable_mvhyperion} mkdir kernelmodules-obj %endif mv mvIMPACT_CPP/versionInfo.txt . # Use system libusb rm -f lib/x86_64/libusb-1.0.so.* %build # libraries and applications make %if %{enable_mvhyperion} # kernel modules %define kernelmodules HyperionGeneric Hyperion Hyperion2 for km in %kernelmodules; do pushd kernelmodules/linux/$km autoconf popd done for flavor in %flavors_to_build; do cp -r kernelmodules kernelmodules-obj/$flavor for km in %kernelmodules; do pushd kernelmodules-obj/$flavor/linux/$km ./configure --with-kernel=%{kernel_source $flavor} make popd done done %endif %install # libraries mkdir -p $RPM_BUILD_ROOT%{_libdir} cp -a lib/x86_64/lib*.so.* $RPM_BUILD_ROOT%{_libdir} cp -a lib/x86_64/lib*.so $RPM_BUILD_ROOT%{_libdir} # The libraries are linked against libexpat.so.0 which openSUSE no longer provides in newer # versions so we have to distribute it with the package. cp -a Toolkits/expat/bin/x86_64/lib/libexpat.so.0.5.0 %{buildroot}%{_libdir} # Remove the java libraries. rm %{buildroot}%{_libdir}/libmvIMPACT_Acquire.java.so* # Clear the RPATHs. for sofile in %{buildroot}%{_libdir}/lib*.so.%{version} do chrpath --delete ${sofile} done chrpath --delete %{buildroot}%{_libdir}/libmvImageProcessing.so chrpath --delete %{buildroot}%{_libdir}/libexpat.so.0.5.0 # applications mkdir -p $RPM_BUILD_ROOT%{_bindir} cp -a apps/mvPropView/x86_64/wxPropView $RPM_BUILD_ROOT%{_bindir} cp -a apps/mvDeviceConfigure/x86_64/mvDeviceConfigure $RPM_BUILD_ROOT%{_bindir} # Clear the RUNPATHs. chrpath --delete $RPM_BUILD_ROOT%{_bindir}/wxPropView chrpath --delete $RPM_BUILD_ROOT%{_bindir}/mvDeviceConfigure # headers mkdir -p $RPM_BUILD_ROOT%{_includedir}/%{name}/common/crt cp -a DriverBase $RPM_BUILD_ROOT%{_includedir}/%{name} cp -a mvPropHandling $RPM_BUILD_ROOT%{_includedir}/%{name} cp -a mvDeviceManager $RPM_BUILD_ROOT%{_includedir}/%{name} cp -a mvIMPACT_CPP $RPM_BUILD_ROOT%{_includedir}/%{name} cp -a common/TBayerMosaicParity.h $RPM_BUILD_ROOT%{_includedir}/%{name}/common cp -a common/TImageBufferPixelFormat.h $RPM_BUILD_ROOT%{_includedir}/%{name}/common cp -a common/auto_array_ptr.h $RPM_BUILD_ROOT%{_includedir}/%{name}/common cp -a common/function_cast.h $RPM_BUILD_ROOT%{_includedir}/%{name}/common cp -a common/mvImageBuffer.h $RPM_BUILD_ROOT%{_includedir}/%{name}/common cp -a common/crt/mvstring.h $RPM_BUILD_ROOT%{_includedir}/%{name}/common/crt %if %{enable_mvhyperion} # kernel modules export INSTALL_MOD_PATH=$RPM_BUILD_ROOT export INSTALL_MOD_DIR=updates for flavor in %flavors_to_build; do for km in %kernelmodules; do make -C %{kernel_source $flavor} modules_install M=$PWD/kernelmodules-obj/$flavor/linux/$km done done %endif # udev rules mkdir -p $RPM_BUILD_ROOT/usr/lib/udev/rules.d %if %{enable_mvbluefox} cp Scripts/51-mvbf.rules $RPM_BUILD_ROOT/usr/lib/udev/rules.d %endif %if %{enable_mvhyperion} cp Scripts/50-udev-hyperion.rules $RPM_BUILD_ROOT/usr/lib/udev/rules.d %endif %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc versionInfo.txt %if %{enable_mvbluefox} %doc README.mvBlueFOX %endif %if %{enable_mvhyperion} %doc README.mvHYPERION %endif %{_libdir}/libmvImageProcessing.so %{_libdir}/libmvPropHandling.so.%{version} %{_libdir}/libmvPropHandling.so.%{major_ver} %{_libdir}/libmvDeviceManager.so.%{version} %{_libdir}/libmvDeviceManager.so.%{major_ver} # The driver libraries are likely searched by name and the query doesn't include the version after # the extension. For this reason the .so links need to be distributed with the main package rather # than the development package. Otherwise the device manager cannot find the device drivers without # installing the -devel package. %if %{enable_mvvirtualdevice} %{_libdir}/libmvVirtualDevice.so.%{version} %{_libdir}/libmvVirtualDevice.so.%{major_ver} %{_libdir}/libmvVirtualDevice.so %endif %if %{enable_mvbluefox} %{_libdir}/libmvBlueFOX.so.%{version} %{_libdir}/libmvBlueFOX.so.%{major_ver} %{_libdir}/libmvBlueFOX.so %endif %if %{enable_mvhyperion} %{_libdir}/libclserMV.so.%{version} %{_libdir}/libclserMV.so.%{major_ver} %{_libdir}/libclserMV.so %{_libdir}/libmvHYPERIONfg.so.%{version} %{_libdir}/libmvHYPERIONfg.so.%{major_ver} %{_libdir}/libmvHYPERIONfg.so %endif %{_libdir}/libexpat.so.0.5.0 %{_bindir}/mvDeviceConfigure %{_bindir}/wxPropView %dir /usr/lib/udev %dir /usr/lib/udev/rules.d %if %{enable_mvbluefox} /usr/lib/udev/rules.d/51-mvbf.rules %endif %if %{enable_mvhyperion} /usr/lib/udev/rules.d/50-udev-hyperion.rules %endif %files devel %defattr(-,root,root) %{_libdir}/libmvPropHandling.so %{_libdir}/libmvDeviceManager.so %{_includedir}/%{name} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor