Adding in spec file, this has not been tested... committing from my Mac :)
author <brian@gir.tangent.org> <>
Fri, 28 Sep 2007 15:49:07 +0000 (08:49 -0700)
committer <brian@gir.tangent.org> <>
Fri, 28 Sep 2007 15:49:07 +0000 (08:49 -0700)
ChangeLog
Makefile.am
configure.in
support/Makefile.am [new file with mode: 0644]
support/libmemcached.spec [new file with mode: 0644]

index 75343a828d54fcee39449563c8b031d4241a8d8e..6982c9b3aeaa499f36c57e0e25318b7c4e13a3f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+0.3
+  * Jeff Fisher <guppy@techmonkeys.org> provided a spec file
+
 0.2 Thu Sep 27 03:46:57 PDT 2007
   * First public version
 
index 96abe02c4109209b27c5ba7e33445be2be0cc2d6..6bc18c4e1c9ea020f98b3cd8a4008e61d820a214 100644 (file)
@@ -1,5 +1,5 @@
 INCLUDES = include\r
-SUBDIRS = docs include lib src tests\r
+SUBDIRS = docs include lib src tests support\r
 \r
 test: all\r
        cd tests; make test; cd ..\r
@@ -14,3 +14,8 @@ valgrind-extended:
        cd tests; make valgrind-extended; cd ..\r
 \r
 \r
+rpm: all dist\r
+       cp $(DISTVNAME).tar$(SUFFIX) /usr/src/redhat/SOURCES\r
+       rpm -ba support/libmemcached.spec\r
+       cp /usr/src/redhat/RPMS/i386/$(DISTVNAME)*.i386.rpm .\r
+       cp /usr/src/redhat/SRPMS/$(DISTVNAME)*.src.rpm .\r
index 00216d052f9b8761006e2735d8881958d4c73c86..b083c43353bd6e7cc9a93da1b3bdffaf8211445c 100644 (file)
@@ -11,4 +11,4 @@ AC_SUBST(LIBTOOL)dnl
 AC_C_CONST\r
 AC_TYPE_SIZE_T\r
 AC_CHECK_HEADERS(limits.h syslimits.h)\r
-AC_OUTPUT(Makefile src/Makefile tests/Makefile docs/Makefile lib/Makefile include/Makefile)\r
+AC_OUTPUT(Makefile src/Makefile tests/Makefile docs/Makefile lib/Makefile include/Makefile include/Makefile)\r
diff --git a/support/Makefile.am b/support/Makefile.am
new file mode 100644 (file)
index 0000000..cc4aec6
--- /dev/null
@@ -0,0 +1 @@
+EXTRA_DIST = libmemcached.spec
diff --git a/support/libmemcached.spec b/support/libmemcached.spec
new file mode 100644 (file)
index 0000000..dded6e8
--- /dev/null
@@ -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 <guppy@techmonkeys.org>
+
+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 <guppy@techmonkeys.org> - 0.2-1
+- Initial package