From 2d34322988d2ac490f9f6cc22e7d27526b5fa4c6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adam=20Go=C5=82=C4=99biowski?= Date: Fri, 14 Sep 2007 08:03:34 +0000 Subject: [PATCH] - new Changed files: apr_memcache-libtool.patch -> 1.1 apr_memcache.spec -> 1.1 --- apr_memcache-libtool.patch | 10 +++++ apr_memcache.spec | 90 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 apr_memcache-libtool.patch create mode 100644 apr_memcache.spec diff --git a/apr_memcache-libtool.patch b/apr_memcache-libtool.patch new file mode 100644 index 0000000..dbe387a --- /dev/null +++ b/apr_memcache-libtool.patch @@ -0,0 +1,10 @@ +--- apr_memcache-0.7.0.orig/configure.ac 2007-09-08 00:23:59.745526284 +0200 ++++ apr_memcache-0.7.0/configure.ac 2007-09-08 00:24:10.042183838 +0200 +@@ -9,6 +9,7 @@ + AM_CONFIG_HEADER([include/apr_memcache_config.h:config.in]) + + AC_PROG_CC ++AC_PROG_LIBTOOL + AC_PROG_LD + AC_PROG_INSTALL + diff --git a/apr_memcache.spec b/apr_memcache.spec new file mode 100644 index 0000000..605ef3b --- /dev/null +++ b/apr_memcache.spec @@ -0,0 +1,90 @@ +Summary: A client for memcached +Name: apr_memcache +Version: 0.7.0 +Release: 0.1 +License: Apache License +Group: Libraries +Source0: http://www.outoforder.cc/downloads/apr_memcache/%{name}-%{version}.tar.bz2 +# Source0-md5: 1d62fea9253d17d304cfe9b26813ef4c +Patch0: %{name}-libtool.patch +URL: http://www.outoforder.cc/projects/libs/apr_memcache/ +BuildRequires: apr-devel >= 1.2.2 +BuildRequires: apr-util-devel >= 1.2.2 +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +apr_memcache is a client for memcached written in C, using APR and +APR-Util. It provides pooled client connections and is thread safe, +making it perfect for use inside Apache Modules. + +%package devel +Summary: Development files for apr_memcache +Summary(pl.UTF-8): Pliki nagłowkowe apr_memcache +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +Header files for apr_memcache. + +%description devel -l pl.UTF-8 +Pliki nagłowkowe apr_memcache. + +%package static +Summary: Static apr_memcache library +Summary(pl.UTF-8): Statyczna biblioteka apr_memcache +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} + +%description static +Static apr_memcache library. + +%description static -l pl.UTF-8 +Statyczna biblioteka apr_memcache. + +%prep +%setup -q +%patch0 -p1 + +%build +%{__libtoolize} +%{__aclocal} -I m4 +%{__autoheader} +%{__automake} +%{__autoconf} + +%configure \ + --with-apr=%{_bindir}/apr-1-config \ + --with-apr-util=%{_bindir}/apu-1-config + +%{__make} \ + CFLAGS="%{rpmcflags} `apu-1-config --includes` `apr-1-config --includes`" + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc LICENSE NOTICE test +%attr(755,root,root) %{_libdir}/lib*.so.* + +%files devel +%defattr(644,root,root,755) +%{_includedir}/apr_memcache-0/ +%attr(755,root,root) %{_libdir}/lib*.so +%{_libdir}/lib*.la + +%files static +%defattr(644,root,root,755) +%{_libdir}/lib*.a -- 2.44.0