[glite-lbjp-common-db] Initial import (#1001351).

František Dvořák valtri at fedoraproject.org
Sun Sep 1 15:01:23 UTC 2013


commit b127cb2f9807e82474e1453ddb0fb32109153be8
Author: František Dvořák <valtri at civ.zcu.cz>
Date:   Sun Sep 1 17:02:14 2013 +0200

    Initial import (#1001351).

 .gitignore                |    1 +
 cflags.patch              |   27 +++++++++++++++
 glite-lbjp-common-db.spec |   80 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 4 files changed, 109 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c79d824 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/glite-lbjp-common-db-3.2.8.tar.gz
diff --git a/cflags.patch b/cflags.patch
new file mode 100644
index 0000000..a04661d
--- /dev/null
+++ b/cflags.patch
@@ -0,0 +1,27 @@
+commit c2c20675af51955394f4237db2642b5037be38f0
+Author: František Dvořák <valtri at civ.zcu.cz>
+Date:   Tue Aug 27 00:37:03 2013 +0200
+
+    Take precedence to CFLAGS from package system.
+
+diff --git a/org.glite.lbjp-common.db/Makefile b/org.glite.lbjp-common.db/Makefile
+index e33a4cd..b21e017 100644
+--- a/org.glite.lbjp-common.db/Makefile
++++ b/org.glite.lbjp-common.db/Makefile
+@@ -31,14 +31,14 @@ SOURCES=doc/C.dox examples/*.c interface/*.h project/.post* src/*.c test/*.cpp M
+ 
+ DEBUG:=-g -O0 -W -Wall
+ 
+-CFLAGS:= ${CFLAGS} \
++CFLAGS:= \
+ 	${DEBUG} \
+ 	-DVERSION=\"${version}\" \
+ 	-I${stagedir}${prefix}/include -I${top_srcdir}/src -I. \
+ 	-I${top_srcdir}/interface \
+ 	${COVERAGE_FLAGS} \
+ 	-D_GNU_SOURCE \
+-	-DHAVE_SYSLOG_H=1
++	-DHAVE_SYSLOG_H=1 ${CFLAGS}
+ 
+ ifdef LBS_DB_PROFILE
+ 	CFLAGS:=${CFLAGS} -DLBS_DB_PROFILE
diff --git a/glite-lbjp-common-db.spec b/glite-lbjp-common-db.spec
new file mode 100644
index 0000000..d03a373
--- /dev/null
+++ b/glite-lbjp-common-db.spec
@@ -0,0 +1,80 @@
+Name:           glite-lbjp-common-db
+Version:        3.2.8
+Release:        2%{?dist}
+Summary:        Database engine abstraction wrapper used in L&B and JP services
+
+License:        ASL 2.0
+Url:            http://glite.cern.ch
+Source:         http://scientific.zcu.cz/emi/emi.lbjp-common.db/%{name}-%{version}.tar.gz
+# https://github.com/CESNET/glite-lb/commit/c2c20675af51955394f4237db2642b5037be38f0#diff-0
+Patch0:         cflags.patch
+
+BuildRequires:  cppunit-devel
+BuildRequires:  log4c-devel
+BuildRequires:  mysql-devel
+BuildRequires:  glite-lbjp-common-trio-devel
+BuildRequires:  glite-lbjp-common-log-devel
+BuildRequires:  libtool
+BuildRequires:  perl
+BuildRequires:  perl(Getopt::Long)
+BuildRequires:  perl(POSIX)
+BuildRequires:  pkgconfig
+BuildRequires:  postgresql-devel
+
+%description
+Database engine abstraction wrapper used in L&B and JP services.
+
+
+%package        devel
+Summary:        Development files for gLite L&B/JP common DB module
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description    devel
+This package contains development libraries and header files for gLite L&B/JP
+common database module.
+
+
+%prep
+%setup -q
+%patch0 -p2
+
+
+%build
+perl ./configure --root=/ --prefix=%{_prefix} --libdir=%{_lib} --module lbjp-common.db
+CFLAGS="%{?optflags}" LDFLAGS="%{?__global_ldflags}" make %{?_smp_mflags}
+
+
+%check
+CFLAGS="%{?optflags}" LDFLAGS="%{?__global_ldflags}" make check
+
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
+
+
+%post -p /sbin/ldconfig
+
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%doc LICENSE project/ChangeLog
+%{_libdir}/libglite_lbu_db.so.3
+%{_libdir}/libglite_lbu_db.so.3.*
+
+%files devel
+%dir %{_includedir}/glite
+%dir %{_includedir}/glite/lbu
+%{_includedir}/glite/lbu/db.h
+%{_libdir}/libglite_lbu_db.so
+
+
+%changelog
+* Sun Sep 01 2013 František Dvořák <valtri at civ.zcu.cz> - 3.2.8-2
+- replace the find commands by wildcards
+
+* Mon Aug 26 2013 František Dvořák <valtri at civ.zcu.cz> - 3.2.8-1
+- Initial package
diff --git a/sources b/sources
index e69de29..753acc8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+40d867746f5420906b52c790c80d26eb  glite-lbjp-common-db-3.2.8.tar.gz


More information about the scm-commits mailing list