[libodb-qt] Initial import (#975316)

Dave Johansen daveisfera at fedoraproject.org
Fri Oct 25 03:10:38 UTC 2013


commit 4696f3b818469be6030f5bdfd9be9882560ecbec
Author: Dave Johansen <davejohansen at gmail.com>
Date:   Thu Oct 24 20:10:39 2013 -0700

    Initial import (#975316)

 .gitignore     |    1 +
 libodb-qt.spec |   89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources        |    1 +
 3 files changed, 91 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..707537c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libodb-qt-2.2.1.tar.bz2
diff --git a/libodb-qt.spec b/libodb-qt.spec
new file mode 100644
index 0000000..5a03a18
--- /dev/null
+++ b/libodb-qt.spec
@@ -0,0 +1,89 @@
+Name:           libodb-qt
+Version:        2.2.1
+Release:        1%{?dist}
+Summary:        Qt ODB runtime library from Code Synthesis
+
+Group:          System Environment/Libraries
+License:        GPLv2
+URL:            http://www.codesynthesis.com/products/odb/
+Source0:        http://www.codesynthesis.com/download/odb/2.2/%{name}-%{version}.tar.bz2
+
+# Set BuildRoot for compatibility with EPEL <= 5
+# See: http://fedoraproject.org/wiki/EPEL:Packaging#BuildRoot_tag
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+# Uses libodb from Code Synthesis 
+BuildRequires: libodb-devel >= 2.2.0
+# Uses Qt
+BuildRequires: qt4-devel
+# Uses pkgconfig
+BuildRequires: pkgconfig
+
+
+%description
+ODB is an object-relational mapping (ORM) system for C++. It provides
+tools, APIs, and library support that allow you to persist C++ objects
+to a relational database (RDBMS) without having to deal with tables,
+columns, or SQL and without manually writing any of the mapping code.
+
+This package contains the Qt profile library. The Qt profile provides
+support for persisting Qt smart pointers, containers, and value types
+with the ODB system.
+
+
+%package        devel
+Summary:        Development files for %{name}
+Group:          Development/Libraries
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%prep
+%setup -q
+
+
+%build
+%configure --disable-static
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%doc GPLv2
+%doc LICENSE
+%{_libdir}/libodb-qt-2.2.so
+# Exclude the documentation that doesn't need to be packaged
+%exclude %{_datadir}/doc/libodb-qt/GPLv2
+%exclude %{_datadir}/doc/libodb-qt/LICENSE
+%exclude %{_datadir}/doc/libodb-qt/NEWS
+%exclude %{_datadir}/doc/libodb-qt/README
+%exclude %{_datadir}/doc/libodb-qt/version
+
+%files devel
+%doc NEWS
+# odb folder is created/owned by libodb package
+%{_includedir}/odb/*
+%{_libdir}/libodb-qt.so
+%{_libdir}/pkgconfig/libodb-qt.pc
+
+
+%changelog
+* Tue Jul 23 2013 Dave Johansen <davejohansen at gmail.com> 2.2.1-1
+- Initial build
diff --git a/sources b/sources
index e69de29..712ae4c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4cc1fde42a932ab7671b17e7e10a5c3c  libodb-qt-2.2.1.tar.bz2


More information about the scm-commits mailing list