I am just trying to get the spec file running to create rpm and srpm for GNU Mailutils.
The source tarball comes from https://www.mailutils.org/download.html
and manually unpacking, ./configure, make, make install DESTDIR=somewhere
works perfectly until finished and all executables are created.
I now want to put all this in a spec file:
- Code: Select all
Name: mailutils
Version: 3.21
Release: %mkrel 1
Summary: GNU Mailutils
License: GPL-2.0+
Group: Networking/Other
Url: https://www.mailutils.org/download.html
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
GNU Mailutils for accessing emails on imap or pop3 servers
%prep
%setup
%build
%configure
%make_build
%install
%make_install
The file macro is missing still, because by some reason at this step there's already and issue.
Only configuring works, while make starts and after some minutes it throws errors like
- Code: Select all
/usr/bin/ld: /home/rpmbuild/rpmbuild/BUILD/mailutils-3.21/lib/mdecode.c:311: undefined reference to `mu_stream_destroy'
/usr/bin/ld: .libs/strexit.o: in function `mu_strexit':
/home/rpmbuild/rpmbuild/BUILD/mailutils-3.21/lib/strexit.c:51: undefined reference to `mu_kwd_xlat_tok'
/usr/bin/ld: .libs/unistr_u8.o: in function `unistr_downcase':
/home/rpmbuild/rpmbuild/BUILD/mailutils-3.21/lib/unistr_u8.c:29: undefined reference to `u8_tolower'
/usr/bin/ld: .libs/unistr_u8.o: in function `unistr_is_substring':
/home/rpmbuild/rpmbuild/BUILD/mailutils-3.21/lib/unistr_u8.c:37: undefined reference to `u8_strstr'
/usr/bin/ld: .libs/unistr_u8.o: in function `unistr_is_substring_dn':
/home/rpmbuild/rpmbuild/BUILD/mailutils-3.21/lib/unistr_u8.c:47: undefined reference to `u8_strstr'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:1352: libmuaux.la] Error 1
make[3]: Leaving directory '/home/rpmbuild/rpmbuild/BUILD/mailutils-3.21/lib'
make[2]: *** [Makefile:1460: all-recursive] Error 1
make[1]: *** [Makefile:1365: all-recursive] Error 1
make: *** [Makefile:1250: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.bPJPgJ (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.bPJPgJ (%build)
and only a few executables are built.
Have I forgotten some macros / commands?
B.t.w., once this spec runs perfectly, it can be taken for cauldron as well.
Thanks for any hint!
Best regards,
Markus
