adaptations for CMake out-of-tree builds
See: https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds
This commit is contained in:
parent
82ba06828b
commit
5f6062a146
@ -1,4 +1,5 @@
|
|||||||
# I don't see an obvious way to get a tarball by tag from gitorious, so:
|
# force out-of-tree build for spec compatibility with older releases
|
||||||
|
%undefine __cmake_in_source_build
|
||||||
|
|
||||||
Name: brewtarget
|
Name: brewtarget
|
||||||
Version: 2.1.0
|
Version: 2.1.0
|
||||||
@ -26,12 +27,13 @@ It also can export and import recipes in BeerXML.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake -DDO_RELEASE_BUILD:BOOL=ON
|
%cmake -DDO_RELEASE_BUILD:BOOL=ON
|
||||||
make %{?_smp_mflags}
|
%cmake_build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make VERBOSE=1 INSTALL="install -p" CP="cp -p" DESTDIR=%{buildroot} install
|
%cmake_install
|
||||||
/usr/bin/install -m 0644 -Dp doc/brewtarget.1 %buildroot%{_mandir}/man1/brewtarget.1
|
/usr/bin/install -m 0644 -Dp doc/brewtarget.1 %buildroot%{_mandir}/man1/brewtarget.1
|
||||||
|
|
||||||
|
%check
|
||||||
desktop-file-validate %buildroot%{_datadir}/applications/%{name}.desktop
|
desktop-file-validate %buildroot%{_datadir}/applications/%{name}.desktop
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
Loading…
Reference in New Issue
Block a user