|
@@ -1,18 +1,16 @@
|
|
-%define memcached_version 1.4.13
|
|
|
|
-%define repcached_version 2.3.1
|
|
|
|
|
|
+%define memcached_version 1.4.17
|
|
|
|
|
|
Summary: a high-performance, distributed memory object caching system
|
|
Summary: a high-performance, distributed memory object caching system
|
|
Summary(ja): ハイパフォーマンスな分散メモリオブジェクトキャッシングシステム
|
|
Summary(ja): ハイパフォーマンスな分散メモリオブジェクトキャッシングシステム
|
|
Name: memcached
|
|
Name: memcached
|
|
Version: %{memcached_version}
|
|
Version: %{memcached_version}
|
|
-Release: 2%{?_dist_release}
|
|
|
|
|
|
+Release: 1%{?_dist_release}
|
|
Source0: http://www.danga.com/memcached/dist/%{name}-%{memcached_version}.tar.gz
|
|
Source0: http://www.danga.com/memcached/dist/%{name}-%{memcached_version}.tar.gz
|
|
-Source1: repcached-%{repcached_version}-%{memcached_version}.tar.gz
|
|
|
|
|
|
|
|
# Patches
|
|
# Patches
|
|
|
|
|
|
# repcached patch
|
|
# repcached patch
|
|
-Patch1: repcached-%{repcached_version}-%{memcached_version}.patch
|
|
|
|
|
|
+Patch0: repcached-%{memcached_version}.patch
|
|
|
|
|
|
License: modified BSD style License
|
|
License: modified BSD style License
|
|
Url: http://www.danga.com/memcached/
|
|
Url: http://www.danga.com/memcached/
|
|
@@ -20,6 +18,10 @@ Group: Applications/Databases
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: libevent-devel
|
|
BuildRequires: libevent-devel
|
|
|
|
|
|
|
|
+Vendor: Project Vine
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
+Packager: tomop
|
|
|
|
+
|
|
%description
|
|
%description
|
|
memcached is a high-performance, distributed memory object caching system,
|
|
memcached is a high-performance, distributed memory object caching system,
|
|
generic in nature, but intended for use in speeding up dynamic web
|
|
generic in nature, but intended for use in speeding up dynamic web
|
|
@@ -36,27 +38,24 @@ Install memcached-devel if you are developing C/C++ applications that require ac
|
|
memcached binary include files.
|
|
memcached binary include files.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
-%setup -q -T -a 0 -c -n memcached-%{memcached_version}
|
|
|
|
-
|
|
|
|
-pushd memcached-%{memcached_version}
|
|
|
|
-
|
|
|
|
-popd
|
|
|
|
-
|
|
|
|
-%setup -q -D -T -a 1 -n memcached-%{memcached_version}
|
|
|
|
|
|
+%setup -q
|
|
|
|
|
|
-pushd repcached-%{repcached_version}-%{memcached_version}
|
|
|
|
|
|
+perl -pi -e 's|/var/run/memcached\.pid|/var/run/memcached/memcached.pid|' scripts/memcached.sysv
|
|
|
|
|
|
|
|
+%setup -q -D -T -a 0 -n memcached-%{memcached_version}
|
|
|
|
+pushd memcached-%{memcached_version}
|
|
|
|
+%patch0 -p1 -b .replicate
|
|
popd
|
|
popd
|
|
|
|
|
|
%build
|
|
%build
|
|
-pushd memcached-%{memcached_version}
|
|
|
|
-#sh ./autogen.sh
|
|
|
|
%configure
|
|
%configure
|
|
%__make %{?_smp_mflags}
|
|
%__make %{?_smp_mflags}
|
|
-popd
|
|
|
|
|
|
|
|
-pushd repcached-%{repcached_version}-%{memcached_version}
|
|
|
|
-sh ./autogen.sh
|
|
|
|
|
|
+pushd memcached-%{memcached_version}
|
|
|
|
+aclocal
|
|
|
|
+autoheader
|
|
|
|
+automake --foreign --add-missing || automake --gnu --add-missing
|
|
|
|
+autoconf
|
|
%configure --enable-replication
|
|
%configure --enable-replication
|
|
%__make %{?_smp_mflags}
|
|
%__make %{?_smp_mflags}
|
|
popd
|
|
popd
|
|
@@ -67,7 +66,6 @@ mkdir -p %{buildroot}%{_initdir}
|
|
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
|
|
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
|
|
mkdir -p %{buildroot}%{_localstatedir}/run/memcached
|
|
mkdir -p %{buildroot}%{_localstatedir}/run/memcached
|
|
|
|
|
|
-pushd memcached-%{memcached_version}
|
|
|
|
%makeinstall
|
|
%makeinstall
|
|
|
|
|
|
rm -f %{buildroot}%{_bindir}/memcached-debug
|
|
rm -f %{buildroot}%{_bindir}/memcached-debug
|
|
@@ -75,14 +73,12 @@ rm -f %{buildroot}%{_bindir}/memcached-debug
|
|
install -m755 scripts/memcached.sysv %{buildroot}%{_initdir}/memcached
|
|
install -m755 scripts/memcached.sysv %{buildroot}%{_initdir}/memcached
|
|
install -m755 scripts/memcached-tool %{buildroot}%{_bindir}/
|
|
install -m755 scripts/memcached-tool %{buildroot}%{_bindir}/
|
|
|
|
|
|
-popd
|
|
|
|
-
|
|
|
|
-pushd repcached-%{repcached_version}-%{memcached_version}
|
|
|
|
-cp -af AUTHORS COPYING ChangeLog ChangeLog.repcached NEWS README doc ../
|
|
|
|
|
|
+pushd memcached-%{memcached_version}
|
|
|
|
+cp -f *.repcached ../
|
|
popd
|
|
popd
|
|
|
|
|
|
mv -f %{buildroot}%{_bindir}/memcached %{buildroot}%{_bindir}/memcached.memcached
|
|
mv -f %{buildroot}%{_bindir}/memcached %{buildroot}%{_bindir}/memcached.memcached
|
|
-install -m755 repcached-%{repcached_version}-%{memcached_version}/memcached %{buildroot}%{_bindir}/memcached.repcached
|
|
|
|
|
|
+install -m755 memcached-%{memcached_version}/memcached %{buildroot}%{_bindir}/memcached.repcached
|
|
|
|
|
|
cat <<EOF > %{buildroot}%{_sysconfdir}/sysconfig/memcached
|
|
cat <<EOF > %{buildroot}%{_sysconfdir}/sysconfig/memcached
|
|
PORT=11211
|
|
PORT=11211
|
|
@@ -90,7 +86,7 @@ USER=nobody
|
|
MAXCONN=1024
|
|
MAXCONN=1024
|
|
CACHESIZE=64
|
|
CACHESIZE=64
|
|
OPTIONS=""
|
|
OPTIONS=""
|
|
-#OPTIONS="-x peer.to.replicate"
|
|
|
|
|
|
+#OPTIONS="-x peer_to_replicate"
|
|
EOF
|
|
EOF
|
|
|
|
|
|
%clean
|
|
%clean
|
|
@@ -114,7 +110,7 @@ fi
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
-%doc AUTHORS COPYING ChangeLog ChangeLog.repcached NEWS README
|
|
|
|
|
|
+%doc AUTHORS* COPYING ChangeLog ChangeLog* NEWS README*
|
|
%doc doc/CONTRIBUTORS doc/*.txt
|
|
%doc doc/CONTRIBUTORS doc/*.txt
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/memcached
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/memcached
|
|
%{_initdir}/memcached
|
|
%{_initdir}/memcached
|
|
@@ -129,6 +125,9 @@ fi
|
|
%{_includedir}/memcached/*
|
|
%{_includedir}/memcached/*
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Jan 10 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.17-1
|
|
|
|
+- new upstream release.
|
|
|
|
+
|
|
* Fri May 11 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.13-2
|
|
* Fri May 11 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.13-2
|
|
- fixed missing symlink.
|
|
- fixed missing symlink.
|
|
|
|
|