ich versuche gerade, eine Spec-Datei für GNU Mailutils zu erstellen.
Die Quelle kommt von https://www.mailutils.org/download.html
und händisch lässt sie sich entpacken, und auch ein ./configure, make, make install DESTDIR=irgendwohin
läuft bis zum Schluss erfolgreich durch. Alle ausführbaren Dateien werden erstellt.
Das wollte ich nun zu einer Spec-Datei machen:
- Code: Alles auswählen
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
%file fehlt noch, weil hier bereits ein Fehler auftritt:
Nur configure scheint durchzulaufen, und bei make hagelt es dann Fehler wie z.B.
- Code: Alles auswählen
/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)
und es werden auch nur einige wenige Executables gebaut.
Habe ich da irgendwelche Macros / Befehle vergessen?
Danke für's Drüberschauen!
Viele Grüsse,
Markus
P.S. Wenn das mal sauber läuft, kann das auch in Cauldron rein.
