In article <a2h7r1$2r43$[EMAIL PROTECTED]> you wrote:
> While creating a customised version of the php rpm I made a expat rpm which
> seems to completely comply with the openpkg policy so I am posting it here.
> cheers
Thanks for your contribution. I've included it now into OpenPKG-CURRENT.
I had to make a few stylistic and a few technical changes to your
expat.spec. The diff is appended. In short:
o used the general OpenPKG .spec file coding style
o used --prefix=%{l_prefix}
o used: "Prefix: %{l_prefix}"
o used: "BuildRoot: %{l_buildroot}"
o used "%setup -q"
Just a hint to make your life with future .spec's easier I append you
also our general .spec template. Please use this, because it already
complies with our .spec coding style.
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
--- expat.spec.old Mon Jan 21 17:29:11 2002
+++ expat.spec Mon Jan 21 17:29:11 2002
@@ -1,49 +1,69 @@
-%define version 1.95.2
-%define release 1
+##
+## expat.spec -- OpenPKG RPM Specification
+## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
+## Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/>
+## Copyright (c) 2000-2002 Ralf S. Engelschall <[EMAIL PROTECTED]>
+##
+## 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 information
+Name: expat
+Summary: XML Parsing Library
+URL: http://expat.sourceforge.net/
+Vendor: James Clark
+Packager: The OpenPKG Project
+Distribution: OpenPKG [REL]
+Group: Converter
+License: MIT/X11-style
+Version: 1.95.2
+Release: 20020121
-#####################################################################
-#
-# Created for the OpenPKG packaging project
-# by
-# Michael Bielicki <[EMAIL PROTECTED]>
-#
-#####################################################################
+# list of sources
+Source0: http://download.sourceforge.net/expat/expat-%{version}.tar.gz
-
-
-Summary: Expat is an XML 1.0 parser written in C.
-Name: expat
-Version: %{version}
-Release: %{release}
-Copyright: MIT/X
-Group: Utilities
-URL: http://expat.sourceforge.net/
-Source: http://download.sourceforge.net/expat/expat-%{version}.tar.gz
-# Build information
+# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20011227, zlib
PreReq: OpenPKG, openpkg >= 20011227, zlib
AutoReq: no
-AutoReqProv: noBuildRoot: /var/tmp/%{name}-buildroot
+AutoReqProv: no
%description
-Expat is an XML 1.0 parser written in C by James Clark. It aims to be
-fully conforming. It is currently not a validating XML parser.
+ Expat is an XML 1.0 parser written in C. It aims to be fully
+ conforming. It is currently not a validating XML parser.
%prep
-%setup
+ %setup -q
%build
-./configure
-%{l_make} %{l_mflags} prefix=$RPM_BUILD_ROOT%{l_prefix} lib xmlwf
+ CC="%{l_cc}" \
+ CFLAGS="%{l_cflags -O}" \
+ ./configure \
+ --prefix=%{l_prefix} \
+ --disable-shared
+ %{l_make} %{l_mflags}
%install
rm -rf $RPM_BUILD_ROOT
- %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}
- %{l_make} %{l_mflags} \
- prefix=$RPM_BUILD_ROOT%{l_prefix} \
- install
+ %{l_make} %{l_mflags} prefix=$RPM_BUILD_ROOT%{l_prefix} install
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
@@ -51,8 +71,3 @@
%clean
rm -rf $RPM_BUILD_ROOT
-#
-#
-#
-#
-#
##
## skeleton.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
## Copyright (c) 2000-2001 The OpenPKG Project <http://www.openpkg.org/>
## Copyright (c) 2000-2001 Ralf S. Engelschall <[EMAIL PROTECTED]>
##
## 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 information
Name: skeleton
Summary: A Nice Skeleton Program
URL: http://www.example.com/skeleton/
Vendor: Mr. Skeleton
Packager: The OpenPKG Project
Distribution: OpenPKG [EXP]
Group: Skeletons
License: SPL
Version: 0.8.15
Release: 20011201
# list of sources
Source0: ftp://ftp.example.com/pub/skeleton/skeleton-%{version}.tar.gz
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20011126.0
PreReq: OpenPKG, openpkg >= 20011126.0
AutoReq: no
AutoReqProv: no
%description
Skeleton is the world greatest program...
%prep
%setup -q
%build
# ... FIXME: configure, make all, ...
%install
rm -rf $RPM_BUILD_ROOT
# ... FIXME: make install ...
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT