From: Date: Fri, 28 Sep 2007 15:49:07 +0000 (-0700) Subject: Adding in spec file, this has not been tested... committing from my Mac :) X-Git-Tag: 0.3~19 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=958434b51e6859a7f34c208a7df4b91486559d72;p=awesomized%2Flibmemcached Adding in spec file, this has not been tested... committing from my Mac :) --- diff --git a/ChangeLog b/ChangeLog index 75343a82..6982c9b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +0.3 + * Jeff Fisher provided a spec file + 0.2 Thu Sep 27 03:46:57 PDT 2007 * First public version diff --git a/Makefile.am b/Makefile.am index 96abe02c..6bc18c4e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,5 @@ INCLUDES = include -SUBDIRS = docs include lib src tests +SUBDIRS = docs include lib src tests support test: all cd tests; make test; cd .. @@ -14,3 +14,8 @@ valgrind-extended: cd tests; make valgrind-extended; cd .. +rpm: all dist + cp $(DISTVNAME).tar$(SUFFIX) /usr/src/redhat/SOURCES + rpm -ba support/libmemcached.spec + cp /usr/src/redhat/RPMS/i386/$(DISTVNAME)*.i386.rpm . + cp /usr/src/redhat/SRPMS/$(DISTVNAME)*.src.rpm . diff --git a/configure.in b/configure.in index 00216d05..b083c433 100644 --- a/configure.in +++ b/configure.in @@ -11,4 +11,4 @@ AC_SUBST(LIBTOOL)dnl AC_C_CONST AC_TYPE_SIZE_T AC_CHECK_HEADERS(limits.h syslimits.h) -AC_OUTPUT(Makefile src/Makefile tests/Makefile docs/Makefile lib/Makefile include/Makefile) +AC_OUTPUT(Makefile src/Makefile tests/Makefile docs/Makefile lib/Makefile include/Makefile include/Makefile) diff --git a/support/Makefile.am b/support/Makefile.am new file mode 100644 index 00000000..cc4aec68 --- /dev/null +++ b/support/Makefile.am @@ -0,0 +1 @@ +EXTRA_DIST = libmemcached.spec diff --git a/support/libmemcached.spec b/support/libmemcached.spec new file mode 100644 index 00000000..dded6e8a --- /dev/null +++ b/support/libmemcached.spec @@ -0,0 +1,56 @@ +Summary: memcached C library and command line tools +Name: libmemcached +Version: 0.2 +Release: 1 +License: BSD +Group: System Environment/Libraries +URL: http://tangent.org/552/libmemcached.html + +Packager: Jeff Fisher + +Source: http://download.tangent.org/libmemcached-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot + +%description +libmemcached is a C client library to the memcached server +(http://danga.com/memcached). It has been designed to be light on memory +usage, and provide full access to server side methods. + +It also implements several command line tools: + +memcat - Copy the value of a key to standard output +memflush - Flush the contents of your servers. +memrm - Remove a key(s) from the serrver. +memstat - Dump the stats of your servers to standard output + +%prep +%setup -q + +%configure + +%build +%{__make} %{_smp_mflags} + +%install +%{__rm} -rf %{buildroot} +%{__make} install DESTDIR="%{buildroot}" AM_INSTALL_PROGRAM_FLAGS="" + +%clean +%{__rm} -rf %{buildroot} + +%files +%{_bindir}/memcat +%{_bindir}/memcp +%{_bindir}/memflush +%{_bindir}/memrm +%{_bindir}/memstat +%{_includedir}/libmemcached/memcached.h +%{_libdir}/libmemcached.a +%{_libdir}/libmemcached.la +%{_libdir}/libmemcached.so +%{_libdir}/libmemcached.so.0 +%{_libdir}/libmemcached.so.0.0.0 + +%changelog +* Fri Sep 28 2007 Jeff Fisher - 0.2-1 +- Initial package