LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File openMVG.spec of Package openMVG (Project home:malcolmlewis:TESTING)

#
# spec file for package openMVG
#
# Copyright (c) 2018 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           openMVG
Version:        1.4+git20180825.835f1e58
Release:        0
License:        MPL-2.0
Summary:        Multiple View Geometry library
URL:            http://imagine.enpc.fr/~moulonp/openMVG
Group:          Productivity/Graphics/Other
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  Coin-devel
BuildRequires:  blas-devel
BuildRequires:  doxygen
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  glpk-devel
BuildRequires:  ghostscript
BuildRequires:  cereal-devel
BuildRequires:  clang
BuildRequires:  eigen3-devel
BuildRequires:  fdupes
BuildRequires:  git
BuildRequires:  lapack-devel
BuildRequires:  libQt5Core-devel
BuildRequires:  libQt5OpenGL-devel
BuildRequires:  libQt5Widgets-devel
BuildRequires:  libqt5-qtsvg-devel
BuildRequires:  libpng16-devel 
BuildRequires:  libjpeg8-devel
BuildRequires:  libtiff-devel
BuildRequires:  libXxf86vm-devel
BuildRequires:  libXi-devel
BuildRequires:  libXrandr-devel
BuildRequires:  pkg-config
BuildRequires:  wget
BuildRequires:  graphviz
Recommends:     graphviz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Library for computer-vision scientists and especially targeted to the Multiple
View Geometry community. It is designed to provide an easy access to the
classical problem solvers in Multiple View Geometry and solve them accurately.

%package static-devel
Summary:        Multiple View Geometry library
Group:          Development/Libraries/C and C++
Provides:       pkgconfig(flann)

%description static-devel
Library for computer-vision scientists and especially targeted to the Multiple
View Geometry community. It is designed to provide an easy access to the
classical problem solvers in Multiple View Geometry and solve them accurately.

%prep
%setup -q

%build
%cmake -DCMAKE_BUILD_TYPE=RELEASE \
       -DOpenMVG_BUILD_DOC=OFF \
       -DOpenMVG_BUILD_EXAMPLES=OFF \
       -DOpenMVG_BUILD_SOFTWARES=ON \
       -DOpenMVG_BUILD_GUI_SOFTWARES=ON \
       -DOpenMVG_BUILD_SHARED=OFF \
       . ../src/

make %{?_smp_mflags}

%install
%cmake_install
%fdupes -s %{buildroot}

%files
%defattr(-,root,root,-)
%{_bindir}/openMVG_main_*
%{_bindir}/ui_openMVG_*

%files static-devel
%defattr(-,root,root,-)
%doc AUTHORS CONTRIBUTING.md
%license LICENSE
%dir %{_includedir}/Eigen
%{_includedir}/Eigen/*
%dir %{_includedir}/openMVG
%{_includedir}/openMVG/*
%dir %{_includedir}/openMVG_dependencies
%{_includedir}/openMVG_dependencies/*
%dir %{_includedir}/unsupported
%{_includedir}/unsupported/*
%{_datadir}/openMVG/
/usr/lib/liblib_*.a
/usr/lib/libopenMVG*.a
/usr/lib/libvlsift.a
/usr/lib/openMVG-targets*
/usr/lib/pkgconfig/flann.pc
%{_libdir}/libopenMVG*.a

%changelog