dovecot-ceph-plugin icon indicating copy to clipboard operation
dovecot-ceph-plugin copied to clipboard

rhel7 rpm spec not 100% el7?

Open f1-outsourcing opened this issue 5 years ago • 1 comments

This dovecot-ceph-plugin.spec should be the rhel7 not?

I am building on centos7 and have different rpm names.

[@test2 dovecot-ceph-plugin]$ diff rpm/dovecot-ceph-plugin.spec ~/rpmbuild/SPECS/dovecot-ceph-plugin.spec
2c2
< # spec file for package dovecot22-rados-plugins
---
> # spec file for package dovecot-rados-plugins
11c11
< %{!?dovecot_devel: %define dovecot_devel dovecot22-devel}
---
> %{!?dovecot_devel: %define dovecot_devel dovecot-devel}
30c30
< BuildRequires: libjansson-devel >= 2.9
---
> BuildRequires: jansson-devel >= 2.9
33d32
< BuildRequires: pkg-config

After these corrections build still fails on the the google stuff.

decls -fpermissive -std=c++11 -fPIC -DPIC -c -o rmb/test_rmb.o rmb/test_rmb.cpp
cc1plus: warning: ./googletest/googletest/include: No such file or directory [enabled by default]
cc1plus: warning: ./googletest/googlemock/include: No such file or directory [enabled by default]
rmb/test_rmb.cpp:12:25: fatal error: gtest/gtest.h: No such file or directory
 #include "gtest/gtest.h"
                         ^
compilation terminated.
make[3]: *** [rmb/test_rmb.o] Error 1
make[3]: Leaving directory `/home/users/test/rpmbuild/BUILD/dovecot-ceph-plugin-0.0.21/src/tests'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/users/test/rpmbuild/BUILD/dovecot-ceph-plugin-0.0.21/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/users/test/rpmbuild/BUILD/dovecot-ceph-plugin-0.0.21'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.ScHWEX (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.ScHWEX (%build)

f1-outsourcing avatar Sep 16 '19 20:09 f1-outsourcing

googletest is added as a git submodule try to use git clone --recursive

jrse avatar Sep 16 '19 20:09 jrse