[libkolab/el6: 1/18] Initial commit
Jeroen van Meeuwen
kanarip at fedoraproject.org
Thu Jun 28 12:30:39 UTC 2012
commit a2da26be65e41ebdffe06ef40c34c8f219ef249b
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date: Wed May 2 13:49:37 2012 +0100
Initial commit
.gitignore | 1 +
libkolab-0.2.0-cmake-woos.patch | 14 ++++++++
libkolab.spec | 70 +++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 86 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..19795cc
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/libkolab-0.2.0.tar.gz
diff --git a/libkolab-0.2.0-cmake-woos.patch b/libkolab-0.2.0-cmake-woos.patch
new file mode 100644
index 0000000..c9795de
--- /dev/null
+++ b/libkolab-0.2.0-cmake-woos.patch
@@ -0,0 +1,14 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 40b8716..5df1c3b 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -13,9 +13,6 @@ set(Libkolab_VERSION_PATCH 0)
+ set(Libkolab_VERSION ${Libkolab_VERSION_MAJOR}.${Libkolab_VERSION_MINOR}.${Libkolab_VERSION_PATCH} )
+ set(Libkolab_VERSION_STRING ${CMAKE_PROJECT_NAME}-${Libkolab_VERSION})
+
+-# set up install directories. INCLUDE_INSTALL_DIR and LIB_INSTALL_DIR must not be absolute paths
+-set(LIB_INSTALL_DIR_SUFFIX "" CACHE STRING "The directories where to install libraries to")
+-set(LIB_INSTALL_DIR lib${LIB_INSTALL_DIR_SUFFIX} )
+ set(CMAKECONFIG_INSTALL_DIR ${LIB_INSTALL_DIR}/cmake/Libkolab )
+
+ # Use a versioned install directory for the headers so multiple versions can be installed in parallel
diff --git a/libkolab.spec b/libkolab.spec
new file mode 100644
index 0000000..54a1379
--- /dev/null
+++ b/libkolab.spec
@@ -0,0 +1,70 @@
+Name: libkolab
+Version: 0.2.0
+Release: 1%{?dist}
+Summary: Kolab libraries
+
+Group: System/Libraries
+License: LGPLv3+
+URL: http://www.kolab.org
+Source0: http://git.kolab.org/%{name}/snapshot/%{name}-%{version}.tar.gz
+Patch1: libkolab-0.2.0-cmake-woos.patch
+
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+BuildRequires: libkolabxml >= 0.4
+Requires: libkolabxml
+
+%description
+Kolab libraries
+
+%package devel
+Summary: Kolab library development headers
+Group: System/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Kolab library development headers
+
+%prep
+%setup -q
+%patch1 -p1
+
+%build
+rm -rf build
+mkdir -p build
+pushd build
+%{cmake} -Wno-fatal-errors -Wno-errors \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DCMAKE_PREFIX_PATH=%{_libdir} \
+%if 0%{?rhel} < 6 && 0%{?fedora} < 15
+ -DBOOST_LIBRARYDIR=%{_libdir}/boost141 \
+ -DBOOST_INCLUDEDIR=%{_includedir}/boost141 \
+ -DBoost_ADDITIONAL_VERSIONS="1.41;1.41.0" \
+%endif
+ -DLIB_INSTALL_DIR=%{_libdir} \
+ -DINCLUDE_INSTALL_DIR=%{_includedir}/kolab \
+ ..
+make
+popd
+
+%install
+rm -rf %{buildroot}
+pushd build
+make install DESTDIR=%{buildroot}
+popd
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%{_libdir}/%{name}.so.*
+
+%files devel
+%{_libdir}/%{name}.so
+%{_libdir}/cmake/Libkolab
+%{_includedir}/kolab
+
+%changelog
+* Wed May 2 2012 Jeroen van Meeuwen <vanmeeuwen at kolabsys.com> - 0.2.0-1
+- First package
diff --git a/sources b/sources
new file mode 100644
index 0000000..72b797c
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+5078028240aba578faa169d154581e63 libkolab-0.2.0.tar.gz
More information about the scm-commits
mailing list