Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates-src > by-pkgid > 87b0a7074d8bce2878fb7c0dc7940315 > files > 2

smesh-6.7.5-1.mga6.src.rpm

%bcond_with test

%define major 3
%define libname %mklibname smesh %{major}
%define develname %mklibname smesh -d

Name:           smesh
Version:        6.7.5
Release:        %mkrel 1
Summary:        OpenCascade based MESH framework
Group:          Graphics/3D

# This library is LGPLv2 with exceptions but links against the non-free library OCE.
License:        LGPLv2
URL:            https://github.com/tpaviot/smesh
Source0:        https://github.com/tpaviot/smesh/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires:  cmake
BuildRequires:  doxygen
BuildRequires:  boost-devel
BuildRequires:  gcc-gfortran
BuildRequires:  f2c
BuildRequires:  dos2unix
BuildRequires:  opencascade-devel
BuildRequires:  graphviz
# New BRs
BuildRequires:  pkgconfig(tbb)
BuildRequires:  pkgconfig(sm)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(glu)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  freeimage-devel

%description
A complete OpenCascade based MESH framework.

%package -n %{libname}
Summary:        OpenCascade based MESH framework

%description -n %{libname}
A complete OpenCascade based MESH framework.

%package -n %{develname}
Summary:        Development files for %{name}
Requires:       %{libname} = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}

%description -n %{develname}
Development files and headers for %{name}.

%prep
%setup -q
%autopatch -p1

%{_bindir}/dos2unix -k LICENCE.lgpl.txt

%build
%cmake \
       -DOCE_DIR=%{_datadir}/cmake/Modules \
       -DMONOLITHIC_BUILD=OFF \
       -DSMESH_TESTING=ON

%make_build

# Build documentation
%make_build doc

# Remove install script since we don't need it.
%__rm -f doc/html/installdox

%install
%make_install -C build

%if %{with test}
%check
make test -C build
%endif

%files -n %{libname}
%license LICENCE.lgpl.txt
%{_libdir}/*.so.%{major}{,.*}

%files -n %{develname}
%doc %{_docdir}/smesh/
%{_includedir}/*
%{_libdir}/*.so


%changelog
* Mon Apr 16 2018 daviddavid <daviddavid> 6.7.5-1.mga6
  (not released yet)
+ Revision: 1219358
- new version: 6.7.5 (needed for OCE 0.18.3) ((mga#22858)
- drop main pkg shipping only license file
- new lib major 3
- disable tests for now
- rebuild for new opencascade 6.9.1.0.18.3 (mga#22858)

* Sun Oct 16 2016 tv <tv> 5.1.2.2-7.mga6
+ Revision: 1061024
- switch to %%autosetup (mga#15579)

* Tue Feb 09 2016 umeabot <umeabot> 5.1.2.2-6.mga6
+ Revision: 952018
- Mageia 6 Mass Rebuild

* Tue Jan 13 2015 shlomif <shlomif> 5.1.2.2-5.mga5
+ Revision: 810335
- Importing smesh (thanks to Richard Houser)