path: root/qdbm/
diff options
Diffstat (limited to 'qdbm/')
1 files changed, 218 insertions, 0 deletions
diff --git a/qdbm/ b/qdbm/
new file mode 100644
index 00000000..9fecddbb
--- /dev/null
+++ b/qdbm/
@@ -0,0 +1,218 @@
+# RPM Specification for QDBM
+%define name @PACKAGE_NAME@
+%define version @PACKAGE_VERSION@
+%define release 1
+%define libver @LIBVER@
+%define librev @LIBREV@
+%define disturl
+%define homeurl
+Summary: Quick Database Manager
+Name: %{name}
+Version: %{version}
+Release: %{release}
+Source: %{disturl}%{name}-%{version}.tar.gz
+Copyright: LGPL
+Group: Development/Libraries
+Packager: Mikio Hirabayashi <>
+Distribution: Private
+Vendor: Private
+Url: %{homeurl}
+Requires: zlib
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+QDBM is an embeded database library compatible with GDBM and NDBM.
+It features hash database and B+ tree database and is developed referring
+to GDBM for the purpose of the following three points: higher processing
+speed, smaller size of a database file, and simpler API.
+This package includes APIs for C, C++, and Java. CGI scripts are also
+contained. APIs for Perl and Ruby should be installed with a source package.
+%package devel
+Summary: Headers, libraries, utilities and documentation for QDBM
+Group: Development/Libraries
+Requires: %{name} = %{version}
+%description devel
+This package contains header files and libraries needed to develop programs
+using the QDBM library. Some utility commands are also provided.
+%package plus
+Summary: C++ libraries for QDBM
+Group: Development/Libraries
+Requires: %{name} = %{version}
+%description plus
+This package contains libraries needed to develop and run programs using the
+QDBM C++ bindings.
+%package java
+Summary: Java libraries for QDBM
+Group: Development/Libraries
+Requires: %{name} = %{version}
+%description java
+This package contains libraries needed to develop and run programs using the
+QDBM Java bindings.
+%package cgi
+Summary: CGI scripts with QDBM
+Group: Development/Libraries
+Requires: %{name} = %{version}
+%description cgi
+This package contains CGI scripts with QDBM, for administration of databases,
+file uploading, and full-text search.
+%setup -q
+( cd . ; %{configure} --prefix=%{_usr} --mandir=%{_mandir} \
+ --enable-stable --enable-zlib --enable-iconv --enable-pthread ; make )
+( cd plus ; %{configure} --prefix=%{_usr} --mandir=%{_mandir} ; make )
+( cd java ; %{configure} --prefix=%{_usr} --mandir=%{_mandir} ; make )
+( cd cgi ; %{configure} --prefix=%{_usr} --mandir=%{_mandir} ; make )
+( cd . ; make DESTDIR=$RPM_BUILD_ROOT install-strip )
+( cd plus ; make DESTDIR=$RPM_BUILD_ROOT install-strip )
+( cd java ; make DESTDIR=$RPM_BUILD_ROOT install )
+( cd cgi ; make DESTDIR=$RPM_BUILD_ROOT install-strip )
+( mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/qdbm && \
+ cd $RPM_BUILD_ROOT%{_usr}/share/qdbm && \
+ cp -Rf spex-ja.html spex.html COPYING ChangeLog NEWS THANKS \
+ plus/xspex.html plus/xspex-ja.html plus/xapidoc \
+ java/jspex.html java/jspex-ja.html java/japidoc \
+ cgi/cgispex-ja.html cgi/cgispex.html $RPM_BUILD_ROOT%{_datadir}/doc/qdbm )
+%files devel
+%files plus
+%files java
+%files cgi