diff --git a/brewtarget.spec b/brewtarget.spec index 683520c..2ab59db 100644 --- a/brewtarget.spec +++ b/brewtarget.spec @@ -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 Version: 2.1.0 @@ -26,12 +27,13 @@ It also can export and import recipes in BeerXML. %build %cmake -DDO_RELEASE_BUILD:BOOL=ON -make %{?_smp_mflags} - +%cmake_build %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 + +%check desktop-file-validate %buildroot%{_datadir}/applications/%{name}.desktop %files