summaryrefslogtreecommitdiffstats
path: root/vsqlite++.spec
diff options
context:
space:
mode:
Diffstat (limited to 'vsqlite++.spec')
-rw-r--r--vsqlite++.spec104
1 files changed, 104 insertions, 0 deletions
diff --git a/vsqlite++.spec b/vsqlite++.spec
new file mode 100644
index 0000000..b61e539
--- /dev/null
+++ b/vsqlite++.spec
@@ -0,0 +1,104 @@
+Name: vsqlite++
+Version: 0.3.9
+Release: 3%{?dist}
+Summary: Well designed C++ sqlite 3.x wrapper library
+
+Group: Development/Libraries
+License: BSD
+URL: https://github.com/vinzenz/vsqlite--
+Source0: https://github.com/downloads/vinzenz/vsqlite--/%{name}-%{version}.tar.gz
+
+BuildRequires: premake
+BuildRequires: boost-devel
+BuildRequires: sqlite-devel
+BuildRequires: libtool
+BuildRequires: doxygen
+BuildRequires: graphviz
+
+%description
+VSQLite++ is a C++ wrapper for sqlite3 using the C++ standard library and boost.
+VSQLite++ is designed to be easy to use and focuses on simplicity.
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+This package contains development files for %{name}.
+
+%package doc
+BuildArch: noarch
+Summary: Development documentation for %{name}
+Group: Development/Libraries
+
+%description doc
+This package contains development documentation files for %{name}.
+
+%prep
+%setup -q
+
+%build
+%configure
+sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
+make %{?_smp_mflags}
+doxygen Doxyfile
+
+%install
+# devel & base
+install -p -m 755 -d %{buildroot}%{_libdir}
+# devel only
+install -p -m 755 -d %{buildroot}%{_includedir}/sqlite
+install -m 644 include/sqlite/*.hpp %{buildroot}%{_includedir}/sqlite
+# docs
+install -p -m 755 -d %{buildroot}%{_docdir}
+
+# build for all
+make DESTDIR=%{buildroot} install
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files doc
+%doc ChangeLog README COPYING examples/sqlite_wrapper.cpp html/*
+
+%files devel
+%doc ChangeLog README COPYING
+%{_libdir}/libvsqlitepp.so
+%{_includedir}/sqlite
+# Don't add .la/.a to the package
+%exclude %{_libdir}/libvsqlitepp.la
+%exclude %{_libdir}/libvsqlitepp.a
+
+%files
+%doc ChangeLog README COPYING
+%{_libdir}/libvsqlitepp.so.*
+
+%changelog
+* Fri Sep 28 2012 Vinzenz Feenstra <evilissimo@gmail.com> - 0.3.9-3
+- Documentation subpackage now noarch
+
+* Wed Sep 26 2012 Vinzenz Feenstra <evilissimo@gmail.com> - 0.3.9-2
+- Removed comment with macro - Not needed anymore
+
+* Tue Sep 25 2012 Vinzenz Feenstra <evilissimo@gmail.com> - 0.3.9-1
+- Updated to upstream vsqlite++-0.3.9
+- Removing now obsolete ./autogen.sh call in prep
+- Remove of unnecessary BuildRequires automake and autoconf
+- Upstream renamed Changelog to ChangeLog - reflected changes
+- Upstream renamed LICENSE to COPYING - reflected changes
+
+* Tue Sep 25 2012 Vinzenz Feenstra <evilissimo@gmail.com> - 0.3.7-2
+- Fix for %%description spelling 'ibrary' => 'library'
+- Fix for unused libm dependency
+- Include Changelog, README and LICENSE to devel
+- Removed TODO, VERSION
+- Removed duplicated lines in the install sectin
+- New doc sub package for the html documentation and code example
+- Removed static package
+- Removed unnecessary ldconfig call on devel package
+- One BuildRequires entry per line
+
+* Tue Sep 25 2012 Vinzenz Feenstra <evilissimo@gmail.com> - 0.3.7-1
+- Initial package
+