Use cmake_build and make_install macros

This commit is contained in:
Timm Bäder 2021-03-15 08:15:32 +01:00
parent 23a3d9f4fc
commit a99aa74382

View File

@ -2,7 +2,7 @@
Summary: A freely licensed alternative to the GLUT library
Name: freeglut
Version: 3.2.1
Release: 8%{?dist}
Release: 9%{?dist}
URL: http://freeglut.sourceforge.net
Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
# For the manpages
@ -56,11 +56,11 @@ license.
%build
%{cmake} -DFREEGLUT_BUILD_STATIC_LIBS=OFF .
make %{?_smp_mflags}
%{cmake_build}
%install
make install DESTDIR=$RPM_BUILD_ROOT
%{make_install}
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man3
install -p -m 644 doc/man/*.3 $RPM_BUILD_ROOT/%{_mandir}/man3
@ -82,6 +82,9 @@ install -p -m 644 doc/man/*.3 $RPM_BUILD_ROOT/%{_mandir}/man3
%{_libdir}/cmake/FreeGLUT/*
%changelog
- Mon Mar 15 2021 Timm Bäder <tbaeder@redhat.com> - 3.2.1-9
- Use cmake_build and make_install macros
* Fri Mar 12 2021 Adam Jackson <ajax@redhat.com> - 3.2.1-8
- Drop legacy BuildRequires: libXxf86vm-devel