]> git.pld-linux.org Git - packages/db1.git/commitdiff
- initial revision
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 18 Jul 2000 13:29:04 +0000 (13:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    db1.spec -> 1.1

db1.spec [new file with mode: 0644]

diff --git a/db1.spec b/db1.spec
new file mode 100644 (file)
index 0000000..2056284
--- /dev/null
+++ b/db1.spec
@@ -0,0 +1,105 @@
+Summary:       BSD database library for C
+Name:          db1
+Version:       1.85
+Release:       0.2
+Group:         Libraries
+License:       BSD
+URL:           http://www.sleepycat.com
+Source0:       http://www.sleepycat.com/update/%{version}/db.%{version}.tar.gz
+Patch0:                db.%{version}.patch
+PreReq:                /sbin/ldconfig
+Conflicts:     glibc < 2.1.90
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
+embedded database support for both traditional and client/server applications.
+It should be installed if compatibility is needed with databases created with
+db1. This library used to be part of the glibc package.
+
+%package devel
+Summary:       Development libraries and header files for Berkeley database library
+Group:         Development/Libraries
+Group(fr):     Development/Librairies
+Group(pl):     Programowanie/Biblioteki
+Requires:      %{name} = %{version}
+Conflicts:     glibc-devel < 2.1.90
+
+%description devel
+The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
+embedded database support for both traditional and client/server applications.
+Berkeley DB includes B tree, Hashing, Fixed and Variable-length record access
+methods.
+
+This package contains the header files, libraries, and documentation
+for building programs which use Berkeley DB.
+
+%package static
+Summary:       Static libraries for Berkeley database library
+Group:         Development/Libraries
+Group(fr):     Development/Librairies
+Group(pl):     Programowanie/Biblioteki
+Requires:      %{name}-devel = %{version}
+Conflicts:     glibc-static < 2.1.90
+
+%description static
+The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
+embedded database support for both traditional and client/server applications.
+Berkeley DB includes B tree, Hashing, Fixed and Variable-length record access
+methods.
+
+This package contains the static libraries for building programs which use
+Berkeley DB.
+
+%prep
+%setup -q -n db.%{version}
+%patch -p1
+
+%build
+cd PORT/linux
+%{__make} OORG="$RPM_OPT_FLAGS"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d ${RPM_BUILD_ROOT}%{_prefix}/{include/db1,lib,bin}
+
+sed -n '/^\/\*-/,/^ \*\//s/^.\*.\?//p' include/db.h | grep -v '^@.*db\.h' > LICENSE
+
+cd PORT/linux
+sover=`echo libdb.so.* | sed 's/libdb.so.//'`
+install libdb.a                        $RPM_BUILD_ROOT/%{_libdir}/libdb1.a
+install libdb.so.$sover                $RPM_BUILD_ROOT/%{_libdir}/libdb1.so.$sover
+ln -sf libdb1.so.$sover        $RPM_BUILD_ROOT/%{_libdir}/libdb1.so
+ln -sf libdb1.so.$sover                $RPM_BUILD_ROOT/%{_libdir}/libdb.so.$sover
+install ../include/ndbm.h      $RPM_BUILD_ROOT/%{_includedir}/db1/
+install ../../include/db.h     $RPM_BUILD_ROOT/%{_includedir}/db1/
+install ../../include/mpool.h  $RPM_BUILD_ROOT/%{_includedir}/db1/
+install -s db_dump185          $RPM_BUILD_ROOT/%{_bindir}/db1_dump185
+cd ../..
+
+strip --strip-unneeded $RPM_BUILD_ROOT%{_bindir}/*
+strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*
+
+gzip -9nf docs/*.ps README LICENSE changelog
+
+%clean
+rm -rf ${RPM_BUILD_ROOT}
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc {README,LICENSE,changelog}.gz
+%attr(755,root,root) %{_libdir}/libdb*.so.*
+%attr(755,root,root) %{_bindir}/db1_dump185
+
+%files devel
+%defattr(644,root,root,755)
+%doc docs/*.ps.gz
+%attr(755,root,root) %{_libdir}/libdb1.so
+%{_includedir}/db1
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libdb1.a
This page took 0.095771 seconds and 4 git commands to generate.