-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstldb4.spec.in
More file actions
99 lines (78 loc) · 2.62 KB
/
stldb4.spec.in
File metadata and controls
99 lines (78 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
Version: @STLDB4_VERSION@
Release: 60031
Name: stldb4
Summary: C++ Wrapper for the sleepycat db4 library
License: GPL
Group: System Environment/Libraries
Source: http://prdownloads.sourceforge.net/witme/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-root
Packager: Ben Martin <monkeyiq@users.sourceforge.net>
URL: http://sourceforge.net/project/showfiles.php?group_id=16036
Requires: ferrisstreams >= 0.5.0
Requires: popt >= 1.7
BuildRequires: ferrisstreams >= 0.5.0
BuildRequires: glib2-devel >= 2.0.0
BuildRequires: popt-devel
BuildRequires: gcc-c++
BuildRequires: libsigc++2-devel
BuildRequires: pkgconfig
BuildRequires: ferrisloki-devel
Provides: libstldb4-04:0:0.so
%description
C++ Wrapper for the sleepycat db4 library
These are the main design points:
1) Using STL in the API where sensible. For example, to
read a range of keys an STL like iterator object should
be used.
2) Allowing Standard IOStreams for data access where sensible,
for example getting the value of a key should be able to use
an istream interface to allow simple partial value retreival.
3) move transaction parameter to be last optional param
or provde two versions of the same method for trans/nontrans
4) Modification of API to use more standard types.
5) Use of operator overloading to allow quick and dirty coding
mydb[ "key" ] = "value"; to set and
cerr << mydb["key"] << endl; to read values
%prep
%setup -q
%build
PWD=`pwd`
echo "PWD:$PWD"
# %xxconfigure --enable-rpc --with-uniquename=stldb4 --enable-hiddensymbols --with-pic --disable-stlport --with-sigcxx-2x=yes
./configure --enable-rpc --with-uniquename=stldb4 --enable-hiddensymbols --with-pic --disable-stlport --with-sigcxx-2x=yes --prefix=/usr
if [ "$SMP" != "" ]; then
(make "MAKE=make -k -j $SMP"; exit 0)
make clean all
else
make clean all
fi
# if [ ! -f configure ]; then
# CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{prefix} --sysconfdir=%{sysconfdir} --enable-rpc --with-uniquename=stldb4
# else
# CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --sysconfdir=%{sysconfdir} --enable-rpc --with-uniquename=stldb4 --enable-wrapdebug
# fi
# if [ "$SMP" != "" ]; then
# (make "MAKE=make -k -j $SMP"; exit 0)
# make
# else
# make
# fi
%install
%makeinstall
rm -f $RPM_BUILD_ROOT/%{_libdir}/libstldb4.la
rm -f $RPM_BUILD_ROOT/%{prefix}/lib/libstldb4.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,0755)
%doc AUTHORS README COPYING ChangeLog INSTALL
%{_bindir}/*
%{_libdir}/*so
# %{_libdir}/debug/
%{_libdir}/pkgconfig/*pc
%{_includedir}/*
%changelog
* Sun May 4 2003 Ben Martin
- Created