# CentOS7 SPEC File Broken

**URL:** <https://community.zeek.org/t/centos7-spec-file-broken/6249>\
**Category:** Development\
**Tags:** development\
**Created:** [October 14, 2020, 10:19am UTC](https://community.zeek.org/t/centos7-spec-file-broken/6249 "2020-10-14T10:19:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DW\_via\_zeek-dev](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@DW\_via\_zeek-dev](https://community.zeek.org/u/DW_via_zeek-dev)\
**Post date:** [October 14, 2020, 10:19am UTC](https://community.zeek.org/t/centos7-spec-file-broken/6249/1 "2020-10-14T10:19:56Z")

</div>

Hi,

The recent zeek.spec files for CentOS7 are broken:

```auto
%if 0%{?centos_version} == 700
BuildRequires: llvm-toolset-7-cmake devtoolset-7-gcc-c++ devtoolset-7-elfutils devtoolset-7-binutils devtoolset-7-make devtoolset-7-toolchain
%endif

```

`centos_version` does not exist:

```auto
grep -r centos_ver /etc/rpm/macros.dist
%centos_ver 7

```

Will never match:

```auto
rpm --eval "some text printed on 0%{?centos_ver}"
some text printed on 07

```

Workaround:

```auto
rpmbuild --define 'centos_version 0700' -v -bb rpmbuild/SPECS/zeek.spec

```

Thank you.

---

<div class="post-metadata">

**Author:** ![Robert\_Gabriel1](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@Robert\_Gabriel1](https://community.zeek.org/u/Robert_Gabriel1)\
**Post date:** [October 14, 2020, 11:20am UTC](https://community.zeek.org/t/centos7-spec-file-broken/6249/2 "2020-10-14T11:20:33Z")

</div>

Hi,

I see.

I knew I was missing something.

Apologies for being daft.

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:47pm UTC](https://community.zeek.org/t/centos7-spec-file-broken/6249/3 "2022-05-06T15:47:28Z")

</div>

Closed on May 6, 2022, 3:47pm UTC


