See /usr/local/kolabopenpkg/etc/openpkg/rpmmacros to know what the macros (e.g. %l_musr) mean.
To get the spec file, install the OpenPKG source package:
/kolab/bin/openpkg rpm -i kolab-webadmin-0.4.0-20050318.src.rpmCopy the
/kolab/RPM/SRC/kolab-webadmin/kolab-webadmin.spec
to /usr/src/redhat/SPECS
;Copy the other files (e.g. .tar.gz archives) to
/usr/src/redhat/SOURCES
One special thing is that the required packages in OpenPKG don't only include the package name and required version number, but often also options that were included when configuring and building the package.
For example, cyrus-sasl::with_ldap would require that the cyrus-sasl::with_ldap is advertised in the Provides: tag in the spec file.
A common approach is not to advertise all compiling options, but to know the packages and test them thoroughly.
Remove the line:
Class: JUNK
To understand some of the macros, in the form %{something}, have a look at /usr/lib/rpm/macros and /usr/local/kolab/etc/openpkg/rpmmacros.
Insert these lines near the top:
%define l_prefix /kolabReplace all occurances of "apache" with "httpd" in your spec file.
%define l_make %{__make}
%define l_mflags -m
# m actually is ignored, compatibility
It seems, the spaces before the %setup -q are not correct. Remove them!
Lines like
%{l_shtool} install
: just remove all the %{l_shtool}; install should work fine;remove also the
%{l_value -s -a}
(though I am not sure what those characters stand for)
No comments:
Post a Comment