Hi, you need to add BuildRequires: cmake cmake-rpm-macros has no dependency on cmake. Kind Regards, David On 01/30/2018 11:15 AM, cedlemo wrote: > Hi, > > > I am trying to build a package that uses cmake and I followed these > documentations: > > - https://fedoraproject.org/wiki/How_to_create_an_RPM_package > - https://fedoraproject.org/wiki/Packaging:Cmake > > > Here is the spec file: > > `````````````````````````````````````````````````````````````````````````````````````````````````````` > > > Name: clasp > Version: 3.3.3 > Release: 1%{?dist} > Summary: A conflict-driven nogood learning answer set solver > > Group: Applications/Engineering > License: MIT > URL: http://www.cs.uni-potsdam.de/clasp/ > Source0: > https://github.com/potassco/clasp/releases/download/v%{version}/%{name}-%{version}-source.tar.gz > > > BuildRequires: cmake-rpm-macros > > %description > clasp is an answer set solver for (extended) normal and disjunctive logic > programs. It is part of the Potassco project for Answer Set Programming > (ASP). > The primary algorithm of clasp relies on conflict-driven nogood learning, a > technique that proved very successful for satisfiability checking (SAT). > clasp > has been genuinely developed for answer set solving but can also be > applied as > a (Max-)SAT or PB solver or as a C++ library in another program. It > provides > different reasoning modes and other advanced features. > > %prep > %autosetup -n %{name}-%{version} [GitHub] > > %build > %cmake . > %make_build > > %install > %make_install > > %check > ctest -V %{?_smp_mflags} > > ````````````````````````````````````````````````````````````````````````````````````````````````````` > > > > In the directory, I get the tarball with: > > spectool -g clasp.spec > > > Then I launch the build with > > fedpkg --release f27 mockbuild > > > But it fails with : > > /var/tmp/rpm-tmp.8htWxw: line 38: /usr/bin/cmake: No such file or directory > error: Bad exit status from /var/tmp/rpm-tmp.8htWxw (%build) > > > I can not see how to fix it. Any ideas ? > > > Thanks > > > Cédric Le Moigne. > _______________________________________________ > packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx > To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx _______________________________________________ packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx