]> git.pld-linux.org Git - packages/wb.git/commitdiff
- new
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 22 Apr 2014 16:27:46 +0000 (18:27 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 22 Apr 2014 16:27:46 +0000 (18:27 +0200)
wb-info.patch [new file with mode: 0644]
wb.spec [new file with mode: 0644]

diff --git a/wb-info.patch b/wb-info.patch
new file mode 100644 (file)
index 0000000..d6214e6
--- /dev/null
@@ -0,0 +1,14 @@
+--- wb/wb.texi.orig    2013-05-09 04:59:42.000000000 +0200
++++ wb/wb.texi 2014-04-21 14:48:11.408908380 +0200
+@@ -27,9 +27,9 @@
+ @end quotation
+ @end copying
+-@dircategory Database
++@dircategory Libraries:
+ @direntry
+-* WB: (wb).           B-tree database implementation.
++* WB: (wb).                           B-tree database implementation
+ @end direntry
+ @iftex
diff --git a/wb.spec b/wb.spec
new file mode 100644 (file)
index 0000000..b491909
--- /dev/null
+++ b/wb.spec
@@ -0,0 +1,150 @@
+Summary:       WB - disk based (sorted) associative array package
+Summary(pl.UTF-8):     WB - pakiet tablic asocjacyjnych przechowujących (posortowane) dane na dysku
+Name:          wb
+Version:       2b2
+Release:       1
+License:       LGPL v3+
+Group:         Libraries
+Source0:       http://groups.csail.mit.edu/mac/ftpdir/scm/%{name}-%{version}.zip
+# Source0-md5: d8b63b324ccad18600f5b5ae40c5f4ff
+Patch0:                %{name}-info.patch
+URL:           http://people.csail.mit.edu/jaffer/JACAL
+BuildRequires: mono-csharp
+BuildRequires: texinfo
+Requires(post,postun): /sbin/ldconfig
+Requires:      scm
+Requires:      scm-slib
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+WB is a disk based (sorted) associative-array package providing C,
+SCM, Java, and C# libraries. These associative arrays consist of
+variable length (0.B to 255.B) keys and values.
+
+This package contains the libraries for C and SCM Scheme
+implementation.
+
+%description -l pl.UTF-8
+WB to pakiet tablic asocjacyjnych przechowujących (posortowane) dane
+na dysku z bibliotekami dla C, SCM-a, C# i Javy. Niniejsze tablice
+asocjacyjne składają się z kluczy i wartości zmiennej długości (od 0.B
+do 255.B).
+
+Ten pakiet zawiera biblioteki dla C oraz implementacji SCM języka
+Scheme.
+
+%package devel
+Summary:       C header files for WB library
+Summary(pl.UTF-8):     Pliki nagłówkowe C dla biblioteki WB
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+C header files for WB library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe C dla biblioteki WB.
+
+%package static
+Summary:       Static WB library
+Summary(pl.UTF-8):     Statyczna biblioteka WB
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static WB library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka WB.
+
+%package -n dotnet-wb
+Summary:       WB library for C#
+Summary(pl.UTF-8):     Biblioteka WB dla C#
+Group:         Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      mono
+
+%description -n dotnet-wb
+WB library for C#.
+
+%description -n dotnet-wb -l pl.UTF-8
+Biblioteka WB dla C#.
+
+%package -n java-wb
+Summary:       WB library for Java
+Summary(pl.UTF-8):     Biblioteka WB dla Javy
+Group:         Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      jre
+
+%description -n java-wb
+WB library for Java.
+
+%description -n java-wb -l pl.UTF-8
+Biblioteka WB dla Javy.
+
+%prep
+%setup -q -n wb
+%patch0 -p1
+
+%build
+# not autoconf-generated
+./configure \
+       --prefix=%{_prefix} \
+       --libdir=%{_libdir}
+
+%{__make} -C c \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags} -fPIC"
+
+%{__make} -C csharp
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+# let rpm autogenerate dependencies
+chmod 755 $RPM_BUILD_ROOT%{_libdir}/wb/*.so
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/postshell
+-/sbin/ldconfig
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%postun        -p /sbin/postshell
+-/sbin/ldconfig
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%files
+%defattr(644,root,root,755)
+%doc ANNOUNCE ChangeLog README
+%attr(755,root,root) %{_bindir}/wbcheck
+%dir %{_libdir}/wb
+%attr(755,root,root) %{_libdir}/wb/libwb.so
+%attr(755,root,root) %{_libdir}/wb/wbscm.so
+%attr(755,root,root) %{_libdir}/libwb.so
+%{_libdir}/wb/*.scm
+%{_infodir}/wb.info*
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/wb
+%{_includedir}/wbsys.h
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/wb/libwb.a
+%{_libdir}/libwb.a
+
+%files -n dotnet-wb
+%defattr(644,root,root,755)
+%{_libdir}/wb/Wb.dll
+%{_libdir}/Wb.dll
+
+%files -n java-wb
+%defattr(644,root,root,755)
+%{_javadir}/wb.jar
This page took 0.078627 seconds and 4 git commands to generate.