Use %autosetup and %make_build and %make_install macros
This commit is contained in:
parent
d77e39e753
commit
da9e4cc8ec
|
@ -24,7 +24,7 @@ data in real time and show player's position in a map.
|
|||
|
||||
|
||||
%prep
|
||||
%setup -q -n MMapper-%{version}
|
||||
%autosetup -n MMapper-%{version}
|
||||
|
||||
|
||||
%build
|
||||
|
@ -33,11 +33,11 @@ pushd %{_target_platform}
|
|||
%{cmake} ..
|
||||
popd
|
||||
|
||||
make %{?_smp_mflags} -C %{_target_platform}
|
||||
%make_build -C %{_target_platform}
|
||||
|
||||
|
||||
%install
|
||||
make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
|
||||
%make_install -C %{_target_platform}
|
||||
|
||||
# It is questionable if one is allowed to redistribute the map.
|
||||
rm -f $RPM_BUILD_ROOT/%{_datadir}/games/mmapper/arda.mm2
|
||||
|
@ -58,6 +58,7 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/mmapper.desktop
|
|||
%changelog
|
||||
* Mon Feb 12 2018 Kalev Lember <klember@redhat.com> - 2.4.5-1
|
||||
- Update to 2.4.5
|
||||
- Use %%autosetup and %%make_build and %%make_install macros
|
||||
|
||||
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
|
Loading…
Reference in New Issue