apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r122579 - /apr/apr-util/branches/0.9.x /apr/apr-util/branches/0.9.x/CHANGES /apr/apr-util/branches/0.9.x/build/rpm /apr/apr-util/branches/0.9.x/build/rpm/apr-util.spec.in /apr/apr-util/branches/0.9.x/buildconf
Date Thu, 16 Dec 2004 20:17:20 GMT
Author: minfrin
Date: Thu Dec 16 12:17:18 2004
New Revision: 122579

URL: http://svn.apache.org/viewcvs?view=rev&rev=122579
Log:
Add an RPM spec file to APR-util.

Added:
   apr/apr-util/branches/0.9.x/build/rpm/
   apr/apr-util/branches/0.9.x/build/rpm/apr-util.spec.in   (contents, props changed)
Modified:
   apr/apr-util/branches/0.9.x/   (props changed)
   apr/apr-util/branches/0.9.x/CHANGES
   apr/apr-util/branches/0.9.x/buildconf

Modified: apr/apr-util/branches/0.9.x/CHANGES
Url: http://svn.apache.org/viewcvs/apr/apr-util/branches/0.9.x/CHANGES?view=diff&rev=122579&p1=apr/apr-util/branches/0.9.x/CHANGES&r1=122578&p2=apr/apr-util/branches/0.9.x/CHANGES&r2=122579
==============================================================================
--- apr/apr-util/branches/0.9.x/CHANGES	(original)
+++ apr/apr-util/branches/0.9.x/CHANGES	Thu Dec 16 12:17:18 2004
@@ -1,5 +1,7 @@
 Changes with APR-util 0.9.6
 
+  *) Add an RPM spec file. [Graham Leggett]
+
   *) Add a build script to create a solaris package. [Graham Leggett]
 
 Changes with APR-util 0.9.5

Added: apr/apr-util/branches/0.9.x/build/rpm/apr-util.spec.in
Url: http://svn.apache.org/viewcvs/apr/apr-util/branches/0.9.x/build/rpm/apr-util.spec.in?view=auto&rev=122579
==============================================================================
--- (empty file)
+++ apr/apr-util/branches/0.9.x/build/rpm/apr-util.spec.in	Thu Dec 16 12:17:18 2004
@@ -0,0 +1,93 @@
+
+%define apuver 0
+
+Summary: Apache Portable Runtime Utility library
+Name: apr-util
+Version: APU_VERSION
+Release: APU_RELEASE
+License: Apache Software License
+Group: System Environment/Libraries
+URL: http://apr.apache.org/
+Source0: %{name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
+BuildPrereq: autoconf, libtool, doxygen, apr-devel >= 0:{version}-{release}
+BuildPrereq: openldap-devel, db4-devel, expat-devel
+Conflicts: subversion < 0.20.1-2
+
+%description
+The mission of the Apache Portable Runtime (APR) is to provide a
+free library of C data structures and routines.  This library
+contains additional utility interfaces for APR; including support
+for XML, LDAP, database interfaces, URI parsing and more.
+
+%package devel
+Group: Development/Libraries
+Summary: APR utility library development kit
+Requires: apr-util = %{version}-%{release}, apr-devel
+Requires: openldap-devel, db4-devel, expat-devel
+Conflicts: subversion-devel < 0.20.1-2
+
+%description devel
+This package provides the support files which can be used to 
+build applications using the APR utility library.  The mission 
+of the Apache Portable Runtime (APR) is to provide a free 
+library of C data structures and routines.
+
+%prep
+%setup -q
+
+%build
+%configure --with-apr=%{_prefix} \
+        --includedir=%{_includedir}/apr-%{apuver} \
+        --with-ldap --without-gdbm
+make %{?_smp_mflags} && make dox
+
+%check
+# Run non-interactive tests
+pushd test
+#make %{?_smp_mflags} testall CFLAGS=-fno-strict-aliasing
+#./testall -v || exit 1
+popd
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+# Documentation
+mv docs/dox/html html
+
+# Unpackaged files
+rm -f $RPM_BUILD_ROOT%{_libdir}/aprutil.exp
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc CHANGES LICENSE NOTICE
+%{_libdir}/libaprutil-%{apuver}.so.*
+
+%files devel
+%defattr(-,root,root,-)
+#%{_bindir}/apu-%{apuver}-config
+%{_bindir}/apu-config
+%{_libdir}/libaprutil-%{apuver}.*a
+%{_libdir}/libaprutil-%{apuver}.so
+#%{_libdir}/pkgconfig/apr-util-%{apuver}.pc
+%{_includedir}/apr-%{apuver}/*.h
+%doc --parents html
+
+%changelog
+* Tue Dec 14 2004 Graham Leggett <minfrin@sharp.fm> 0.9.6-1
+- backport to support v0.9.6 of APR
+
+* Tue Jun 22 2004 Graham Leggett <minfrin@sharp.fm> 1.0.0-1
+- update to support v1.0.0 of APR
+
+* Tue Jun 22 2004 Graham Leggett <minfrin@sharp.fm> 1.0.0-1
+- derived from Fedora Core apr.spec
+

Modified: apr/apr-util/branches/0.9.x/buildconf
Url: http://svn.apache.org/viewcvs/apr/apr-util/branches/0.9.x/buildconf?view=diff&rev=122579&p1=apr/apr-util/branches/0.9.x/buildconf&r1=122578&p2=apr/apr-util/branches/0.9.x/buildconf&r2=122579
==============================================================================
--- apr/apr-util/branches/0.9.x/buildconf	(original)
+++ apr/apr-util/branches/0.9.x/buildconf	Thu Dec 16 12:17:18 2004
@@ -68,3 +68,18 @@
 
 # Remove autoconf cache
 rm -rf autom4te*.cache
+
+# Create RPM Spec file
+if [ -f `which cut` ]; then
+  echo rebuilding rpm spec file
+  REVISION=`build/get-version.sh all include/apu_version.h APU`
+  VERSION=`echo $REVISION | cut -d- -s -f1`
+  RELEASE=`echo $REVISION | cut -d- -s -f2`
+  if [ "x$VERSION" = "x" ]; then
+      VERSION=$REVISION
+      RELEASE=1
+  fi
+  sed -e "s/APU_VERSION/$VERSION/" -e "s/APU_RELEASE/$RELEASE/" \
+    ./build/rpm/apr-util.spec.in > apr-util.spec
+fi
+

Mime
View raw message