LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libfive.spec of Package libfive (Project home:ps1260)

Name:			libfive
Version:		0.0.1
Release:        4c2adf3e2de686809f8418bbbfd97525db9f9626
License:        GPL-2.0-or-later, MPL-2.0
Summary:        Parametric CAD
Group:			Productivity/Graphics/CAD
Url:			https://github.com/libfive/libfive
Source:			https://github.com/libfive/libfive/archive/libfive-master.zip
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
BuildRequires:	unzip
BuildRequires:	cmake
BuildRequires:	eigen3-devel
BuildRequires:	libpng16-compat-devel
BuildRequires:	boost-devel
BuildRequires:	libqt5-qtbase-devel
BuildRequires:	guile-devel
BuildRequires:	pkg-config

%description

libfive parametric CAD framework and studio

%package devel
Summary:        Libfive parametric CAD framework
License:        GPL-2.0-or-later, MPL-2.0
Group:          Productivity/Graphics/CAD
Requires:       %{name}

%description devel

libfive parametric CAD framework and studio developer files

%prep
%setup -q -n %{name}-master

%build
mkdir build
cd build
cmake  ..
make %{?_smp_mflags}

%install
ls
cd build/libfive
make DESTDIR=%{buildroot} install
cd ..
cd studio
make DESTDIR=%{buildroot} install
mkdir %{buildroot}/usr/lib64/
mv %{buildroot}/usr/local/lib/* %{buildroot}/usr/lib64/
mv %{buildroot}/usr/local/* %{buildroot}/usr/

%files 
%defattr(-,root,root,-)
%{_bindir}/Studio
%{_libdir}/libfive-guile.so
%{_libdir}/libfive.so
%doc README.md

%files devel
%defattr(-,root,root,-)
%{_includedir}/libfive*
%{_libdir}/pkgconfig/libfive.pc

%changelog CHANGELOG.md