For anybody having problems to build RPMS for Redhat/CentOS here is a working .rpmmacros file:

%dist_suffix el7
%sope_buildcount 1
%sope_makeflags -b
%sope_major_version 4
%sope_minor_version 9
%sope_release 20160706_1664
%sope_source SOPE-%{sogo_version}.tar.gz
%sope_version %{sope_major_version}.%{sope_minor_version}
%sogo_version 2.3.13
%sbjson_version 2.3.1
%sbjson_major_version 2

Regards,
Andreas

On 20.07.2016 14:38, Andreas Welbers wrote:
Hi,

could anybody or Inverse provide a working .rpmmacros for build RPMs with CentOS?

The SPEC-file for SOGo has missing build dependencies I worked around.

I created a .rpmmacros with these inital settings:

%sope_major_version 4
%sope_minor_version 9
%sope_source SOPE-%{sogo_version}.tar.gz
%sope_version 4.9
%sogo_version 2.3.13

With these settings it works somewhat better but it breaks at:

creating: /root/rpmbuild/BUILD/SOPE/config.make
optional library found: xml2
optional library found: ldap
optional library found: ssl
optional library found: pq
failed to link optional library: mysqlclient
configuring NGStreams library .... done (log in config-NGStreams.log).
+ make CC=gcc '%{sope_makeflags}'
This is gnustep-make 2.6.6. Type 'make print-gnustep-make-help' for help.
make: *** Keine Regel, um >>%{sope_makeflags}<< zu erstellen.  Schluss.
Fehler: Fehler-Status beim Beenden von /var/tmp/rpm-tmp.ceRzk8 (%build)

Thanks,
Andreas
--
users@sogo.nu
https://inverse.ca/sogo/lists

Reply via email to