[contextkit] Initial Import
Chen Lei
supercyper at fedoraproject.org
Mon Sep 6 01:59:14 UTC 2010
commit 7d16b7f31514c52ff8893ce113b9f559598b8eec
Author: Chen Lei <supercyper at 163.com>
Date: Mon Sep 6 09:58:29 2010 +0800
Initial Import
.gitignore | 1 +
contextkit-gcc45.patch | 10 ++++
contextkit.spec | 108 +++++++++++++++++++++++++++++++++++++++++++++++
remove-docs-build.patch | 12 +++++
sources | 1 +
5 files changed, 132 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4329153 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/contextkit-0.5.15.tar.bz2
diff --git a/contextkit-gcc45.patch b/contextkit-gcc45.patch
new file mode 100644
index 0000000..0d8467e
--- /dev/null
+++ b/contextkit-gcc45.patch
@@ -0,0 +1,10 @@
+--- a/libcontextsubscriber/update-contextkit-providers/update-contextkit-providers.cpp
++++ b/libcontextsubscriber/update-contextkit-providers/update-contextkit-providers.cpp
+@@ -28,6 +28,7 @@
+ #include "cdbwriter.h"
+ #include "fcntl.h"
+ #include "infobackend.h"
++#include <sys/stat.h>
+
+ /*!
+ \page UpdatingContextProviders
diff --git a/contextkit.spec b/contextkit.spec
new file mode 100644
index 0000000..1c44e61
--- /dev/null
+++ b/contextkit.spec
@@ -0,0 +1,108 @@
+Name: contextkit
+Summary: Contextual information collection framework
+Version: 0.5.15
+Release: 1%{?dist}
+Group: Applications/System
+License: LGPLv2
+URL: http://gitorious.org/maemo-af/contextkit
+# extracted from http://repo.meego.com/MeeGo/builds/trunk/1.0.90.0.20100831.1/core/repos/source/contextkit-0.5.15-1.28.src.rpm
+Source0: %{name}-%{version}.tar.bz2
+Patch0: remove-docs-build.patch
+Patch1: contextkit-gcc45.patch
+BuildRequires: dbus-devel
+BuildRequires: glib2-devel
+BuildRequires: qjson-devel
+BuildRequires: tinycdb-devel
+BuildRequires: python
+BuildRequires: libxslt
+BuildRequires: asciidoc
+BuildRequires: libtool
+BuildRequires: doxygen
+BuildRequires: perl(XML::DOM)
+Requires: dbus
+
+%description
+This is ContextKit, a framework for collecting contextual
+information from the bowels of the system, cleaning them up
+and offering them through a simple API.
+
+The ContextKit consists of:
+
+- libcontextprovider, a convenience library to export
+ contextual properties to the rest of the system.
+
+- user documentation including a list of standard context properties
+
+- contextd, daemon for combining and refining contextual information
+
+- libcontextsubscriber, a library implementing
+ the simple API for accessing the contextual information.
+
+%package devel
+Summary: Development files for ContextKit
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Development libraries and headers for building context aware applications.
+
+%prep
+%setup -q
+
+# remove-docs-build.patch
+%patch0 -p1
+# contextkit-gcc45.patch
+%patch1 -p1
+
+# Remove shebang
+for file in python/ContextKit/*.py; do
+ sed '/^#!\//, 1d' $file > $file.new && \
+ touch -r $file $file.new && \
+ mv $file.new $file
+done
+
+%build
+./autogen.sh
+%configure --disable-static
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=%{buildroot}
+find %{buildroot} -name '*.la' -exec rm -f {} ';'
+mv %{buildroot}%{_docdir}/contextkit-doc contextkit-doc
+
+#remove tests for now
+rm -rf %{buildroot}%{_libdir}/libcontext*-tests
+rm -rf %{buildroot}%{_libdir}/contextkit/*test*
+rm -rf %{buildroot}%{_datadir}/libcontext*-tests
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc contextkit-doc/html COPYING AUTHORS MAINTAINERS README
+%{_sysconfdir}/dbus-1/system.d/libcontextprovider0.conf
+%{_bindir}/*
+%{_libdir}/libcontext*.so.*
+%{_datadir}/contextkit
+%{python_sitelib}/ContextKit
+%{_mandir}/man1/*.1.*
+
+%files devel
+%defattr(-,root,root,-)
+%{_libdir}/libcontext*.so
+%{_libdir}/pkgconfig/*.pc
+%{_includedir}/context*
+
+%changelog
+* Mon Aug 16 2010 Chen Lei <supercyper at 163.com> - 0.5.15-1
+- Update to release tag 0.5.15
+
+* Thu Jul 08 2010 Chen Lei <supercyper at 163.com> - 0.5.8-1
+- Initial packaging for Fedora
+
+* Sun Mar 14 2010 Anas Nashif <anas.nashif at intel.com> - 0.5.8
+- Use spectacle
+- Fixed all rpmlint errors
diff --git a/remove-docs-build.patch b/remove-docs-build.patch
new file mode 100644
index 0000000..21a3fe3
--- /dev/null
+++ b/remove-docs-build.patch
@@ -0,0 +1,12 @@
+Index: contextkit-0.5/Makefile.am
+===================================================================
+--- contextkit-0.5.orig/Makefile.am
++++ contextkit-0.5/Makefile.am
+@@ -7,7 +7,6 @@ SUBDIRS = \
+ libcontextprovider \
+ libcontextsubscriber \
+ spec \
+- doc \
+ python \
+ tools \
+ common
diff --git a/sources b/sources
index e69de29..e49066f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6d9e7cf4c91b550107c67489932aa4f8 contextkit-0.5.15.tar.bz2
More information about the scm-commits
mailing list