[dmlite] Initial import

Ricardo Rocha rocha at fedoraproject.org
Mon Jun 11 17:56:39 UTC 2012


commit ed7ed9720383eaa4173ddbfab14ff7960cb2125a
Author: Ricardo Rocha <rocha.porto at gmail.com>
Date:   Mon Jun 11 19:54:57 2012 +0200

    Initial import

 .gitignore                  |    1 +
 dmlite-jni-removal.patch    |   14 ++++
 dmlite-unistd-include.patch |   47 +++++++++++
 dmlite.spec                 |  180 +++++++++++++++++++++++++++++++++++++++++++
 sources                     |    1 +
 5 files changed, 243 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..502d7b1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dmlite-0.2.0.tar.gz
diff --git a/dmlite-jni-removal.patch b/dmlite-jni-removal.patch
new file mode 100644
index 0000000..1efccf8
--- /dev/null
+++ b/dmlite-jni-removal.patch
@@ -0,0 +1,14 @@
+Index: tests/CMakeLists.txt
+===================================================================
+--- tests/CMakeLists.txt	(revision 6373)
++++ tests/CMakeLists.txt	(working copy)
+@@ -69,9 +69,6 @@
+ add_executable        (test-checkperm test-checkperm.cpp)
+ target_link_libraries (test-checkperm dmlitecommon dmlite cppunit dl)
+ 
+-
+-find_package(JNI REQUIRED)
+-
+ include_directories (${CMAKE_SOURCE_DIR}/plugins/)
+ include_directories("/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/")
+ include_directories("/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/linux")
diff --git a/dmlite-unistd-include.patch b/dmlite-unistd-include.patch
new file mode 100644
index 0000000..271cc7c
--- /dev/null
+++ b/dmlite-unistd-include.patch
@@ -0,0 +1,47 @@
+Index: tests/test-chown.cpp
+===================================================================
+--- tests/test-chown.cpp	(revision 6373)
++++ tests/test-chown.cpp	(working copy)
+@@ -1,5 +1,6 @@
+ #include <cppunit/extensions/HelperMacros.h>
+ #include <cppunit/TestAssert.h>
++#include <unistd.h>
+ #include <sys/stat.h>
+ #include "test-base.h"
+ 
+Index: tests/test-create.cpp
+===================================================================
+--- tests/test-create.cpp	(revision 6373)
++++ tests/test-create.cpp	(working copy)
+@@ -1,6 +1,7 @@
+ #include <cppunit/extensions/HelperMacros.h>
+ #include <cppunit/TestAssert.h>
+ #include <sys/stat.h>
++#include <unistd.h>
+ #include "test-base.h"
+ #include "dmlite/common/Security.h"
+ 
+Index: tests/test-opendir.cpp
+===================================================================
+--- tests/test-opendir.cpp	(revision 6373)
++++ tests/test-opendir.cpp	(working copy)
+@@ -1,6 +1,7 @@
+ #include <cppunit/extensions/HelperMacros.h>
+ #include <cppunit/TestAssert.h>
+ #include <sys/stat.h>
++#include <unistd.h>
+ #include <utime.h>
+ #include "test-base.h"
+ 
+Index: tests/test-utime.cpp
+===================================================================
+--- tests/test-utime.cpp	(revision 6373)
++++ tests/test-utime.cpp	(working copy)
+@@ -1,6 +1,7 @@
+ #include <cppunit/extensions/HelperMacros.h>
+ #include <cppunit/TestAssert.h>
+ #include <sys/stat.h>
++#include <unistd.h>
+ #include <utime.h>
+ #include "test-base.h"
+ 
diff --git a/dmlite.spec b/dmlite.spec
new file mode 100644
index 0000000..630e2eb
--- /dev/null
+++ b/dmlite.spec
@@ -0,0 +1,180 @@
+Name:		dmlite
+Version:	0.2.0
+Release:	3%{?dist}
+Summary:	Common libraries for grid data management and storage
+Group:		Applications/Internet
+License:	ASL 2.0
+URL:		https://svnweb.cern.ch/trac/lcgdm/wiki/Dpm/Dev/Dmlite
+# The source of this package was pulled from upstream's vcs. Use the
+# following commands to generate the tarball:
+# svn export http://svn.cern.ch/guest/lcgdm/dmlite/tags/dmlite_0_3_0 dmlite-0.3.0
+# tar -czvf dmlite-0.3.0.tar.gz dmlite-0.3.0
+Source0:	%{name}-%{version}.tar.gz
+# Remove dependency on JNI cmake module (not required and unavailable)
+# https://svnweb.cern.ch/trac/lcgdm/ticket/538
+Patch0:		dmlite-jni-removal.patch
+# Add missing unistd.h include
+# https://svnweb.cern.ch/trac/lcgdm/ticket/539
+Patch1:		dmlite-unistd-include.patch
+Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:	cmake
+BuildRequires:	cppunit-devel
+BuildRequires:	doxygen
+BuildRequires:	dpm-devel
+BuildRequires:	libmemcached-devel
+BuildRequires:	mysql-devel
+BuildRequires:	protobuf-devel
+
+%description
+This package provides a set of common libraries and plugins that implement
+logic for data management and storage on the grid.
+
+%package libs
+Summary:	Common libraries for all dmlite packages
+Group:		Applications/Internet
+
+%description libs
+This package provides the libraries used by dmlite components.
+
+%package devel
+Summary:	Development libraries and headers for dmlite
+Group:		Applications/Internet
+Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
+
+%description devel
+This package provides headers and development libraries for dmlite.
+
+%package plugins-adapter
+Summary:	Adapter plugin for dmlite
+Group:		Applications/Internet
+Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
+
+%description plugins-adapter
+This package provides the adapter plugin for dmlite. This plugin provides both
+a name-space and pool management implementation which fallback to forwarding
+calls to the old DPNS and DPM daemons.
+
+%package plugins-librarian
+Summary:	Librarian plugin for dmlite
+Group:		Applications/Internet
+Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
+
+%description plugins-librarian
+This package provides the librarian plugin for dmlite. This plugin handles
+the necessary logic to hop between difference replicas when accessing a file
+managed by the grid.
+
+%package plugins-memcached
+Summary:	Memcached plugin for dmlite
+Group:		Applications/Internet
+Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
+
+%description plugins-memcached
+This package provides the memcached plugin for dmlite. It provides a
+memcached based implementation of the NS interface.
+
+%package plugins-mysql 
+Summary:	MySQL plugin for dmlite
+Group:		Applications/Internet
+Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
+Requires:	mysql%{?_isa}
+
+%description plugins-mysql
+This package provides the MySQL plugin for dmlite.
+
+%package plugins-profiler
+Summary:	Profiler plugin for dmlite
+Group:		Applications/Internet
+Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
+
+%description plugins-profiler
+This package provides the profiler plugin for dmlite. This plugin is a simple
+wrapper around a real plugin implementation, and is used to do multiple
+measurements regarding the performance of each call to dmlite.
+
+%package docs
+Summary:	API documentation for dmlite
+Group:		Applications/Internet
+
+%description docs
+Man pages and HTML documentation for dmlite.
+
+%prep
+%setup -q -n %{name}-%{version}
+%patch0 -p0
+%patch1 -p0
+
+%build
+%cmake . -DCMAKE_INSTALL_PREFIX=/
+
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}
+
+make install DESTDIR=%{buildroot}
+
+%clean
+rm -rf %{buildroot}
+
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+
+%files libs
+%defattr(-,root,root,-)
+%config(noreplace) %{_sysconfdir}/dmlite.conf
+%{_libdir}/libdmlite.so.*
+%{_libdir}/libdmlitecommon.so.*
+%doc README LICENSE
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/dmlite
+%{_libdir}/libdmlite.so
+%{_libdir}/libdmlitecommon.so
+
+%files plugins-adapter
+%defattr(-,root,root,-)
+%{_libdir}/dmlite/plugin_adapter.so
+
+%files plugins-librarian
+%defattr(-,root,root,-)
+%{_libdir}/dmlite/plugin_librarian.so
+
+%files plugins-memcached
+%defattr(-,root,root,-)
+%{_libdir}/dmlite/plugin_memcache.so
+
+%files plugins-mysql
+%defattr(-,root,root,-)
+%{_libdir}/dmlite/plugin_mysql.so
+
+%files plugins-profiler
+%defattr(-,root,root,-)
+%{_libdir}/dmlite/plugin_profiler.so
+
+%files docs
+%defattr(-,root,root,-)
+%{_mandir}/man3/*
+%{_defaultdocdir}/%{name}-%{version}
+
+%changelog
+* Tue Jun 05 2012 Ricardo Rocha <ricardo.rocha at cern.ch> - 0.2.0-3
+- Removed subversion build dep
+- Added patches for proper tests compilation (missing include, wrong cmake dep)
+
+* Tue Feb 28 2012 Ricardo Rocha <ricardo.rocha at cern.ch> - 0.2.0-2
+- Split plugins into multiple packages, added dependencies
+- Updated package descriptions
+
+* Tue Jan 31 2012 Alejandro Alvarez <alejandro.alvarez.ayllon at cern.ch> - 0.2.0-1
+- Added documentation to the build process
+
+* Mon Jan 23 2012 Alejandro Alvarez <alejandro.alvarez.ayllon at cern.ch> - 0.1.0-1
+- Added cppunit-devel as a build dependency
+
+* Tue Jan 20 2012 Alejandro Alvarez <alejandro.alvarez.ayllon at cern.ch> - 0.1.0-1
+- Created spec file
diff --git a/sources b/sources
index e69de29..c4e1401 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5b8e3688d47a45234bd744a2efc925d0  dmlite-0.2.0.tar.gz


More information about the scm-commits mailing list