Mondernize spec file.

This commit is contained in:
Richard Shaw 2018-02-11 07:51:52 -06:00
parent fb0bccd3d6
commit 50ca946a73
1 changed files with 3 additions and 11 deletions

View File

@ -6,7 +6,7 @@ Summary: Library for storing voxel data
License: BSD
URL: https://sites.google.com/site/field3d/
Source0: https://github.com/imageworks/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source0: https://github.com/imageworks/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: Field3D-unit_test.patch
@ -34,8 +34,7 @@ Development headers and documentation for %{name}.
# Need devel-docs subpackage.
%prep
%setup -q
%patch0 -p1
%autosetup -p1
%build
@ -43,8 +42,7 @@ rm -rf build && mkdir build && pushd build
%cmake -DINSTALL_DOCS=OFF \
../
make %{?_smp_mflags}
popd
%make_build
%install
@ -58,12 +56,6 @@ install -D -m 0644 man/f3dinfo.1 %{buildroot}%{_mandir}/man1/f3dinfo.1
%check
pushd build
./unitTest
popd
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files