[Kolab-devel] yet another way to build kolab
Richard Bos
radoeka at xs4all.nl
Sat Jun 12 22:13:37 CEST 2004
Op dinsdag 8 juni 2004 23:18, schreef Richard Bos:
> > I changed the stuff a little: I pushed the autotools stuff one directory
> > inwards, so it resides in server/kolab-webadmin/kolab-webadmin instead
> > of server/kolab-webadmin. The reason is that the outer dir is used for
> > stuff required to build RPMs (spec-file and Makefile that creates a
> > tarbal and invokes rpm to build a package). I also changed the
> > versioning a bit to the release datestamp we currently use is not part
> > of the tarball version -- only the rpm release number uses that.
>
> In this case I would personnally change the rpm specfile into
> kolab-webadmin.spec.in and have the Version field configured as:
>
> Version: @VERSION@
>
> You might use this for the rpm name as well:
> Package: @PACKAGE@
>
> Of course the spec file should become part of the autotools machinery, by
> doing so the version of the tarball and the spec file are _always_ in sync.
> As the spec file now becomes intregrated into to the tarball one can
> obtain the rpm by: rpmbuild -ta tarball.tar.gz
>
> With the suggestion above, I think that the rpm in the top kolab-webadmin
> directory can just be removed. All you need now is:
> ./bootstrap, ./configure --prefix=/kolab, make, make distcheck and rpmbuild
> -ba kolab-webadmin...tar.gz(bz2).
>
> Another note about the version; Would it be better to define it as 0.1.90.
> So, it can cleary be seen that this is a beta for 0.2.0. The advantage
> is the package tools are now able to determine that 0.2.0 is newer than
> 0.1.90 or 0.2.0beta3 or 0.2.0rc4 or etc.
Steffen,
please find attached a patch that 'integrates' kolab-webamin's spec file in
the autotools machinery chain. For that I moved the spec file 1 directory
down (next to configure.ac and Makefile.am) and added the suffix .in
Just run the commands: ./bootstrap, ./configure --prefix=/kolab, make, make
distcheck and rpmbuild -ba kolab-webadmin...tar.gz(bz2) and you'll be
provided with a kolab-webadmin rpm with the right version number.
Perhaps it is usefull....
--
Richard Bos
Without a home the journey is endless
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kolab-webadmin-040612.diff
Type: text/x-diff
Size: 1174 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/devel/attachments/20040612/c2b7d78c/attachment.bin>
-------------- next part --------------
##
## kolab-webadmin.spec -- OpenPKG RPM Specification
## Copyright (c) 2004 Klaraelvdalens Datakonsult AB <http://www.klaralvdalens-datakonsult.se>
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
# package version
%define V_kwa_maj 1.0
%define V_kwa_min 8
# package information
Name: @PACKAGE@
Summary: Kolab Groupware Server Web Administration Interface
URL: http://kolab.kde.org/
Vendor: Klaraelvdalens Datakonsult AB
Packager: Klaraelvdalens Datakonsult AB
Distribution: OpenPKG
Class: JUNK
Group: Mail
License: GPL
Version: @VERSION@
Release: 20040611
# list of sources
Source0: kolab-webadmin-%{version}.tar.gz
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20040216
PreReq: OpenPKG, openpkg >= 20040216, kolab
PreReq: apache >= 1.3.29-20031124, apache::with_gdbm_ndbm = yes, apache::with_mod_auth_ldap = yes, apache::with_mod_dav = yes, apache::with_mod_php = yes, apache::with_mod_php_gdbm = yes, apache::with_mod_php_gettext = yes, apache::with_mod_php_imap = yes, apache::with_mod_php_openldap = yes, apache::with_mod_php_xml = yes, apache::with_mod_php_pear = yes, apache::with_mod_ssl = yes
PreReq: php-smarty >= 2.6.2
AutoReq: no
AutoReqProv: no
%description
Web based administration interface for The Kolab Groupware Server
%prep
%setup -q
%build
./configure -prefix=%{l_prefix}
%install
rm -rf $RPM_BUILD_ROOT
# install package
%{l_make} %{l_mflags} install \
DESTDIR=$RPM_BUILD_ROOT
# generate file list
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
%dir '%defattr(-,%{l_nusr},%{l_ngrp})' %{l_prefix}/var/kolab/php/admin/templates_c
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
More information about the devel
mailing list