]> git.pld-linux.org Git - packages/db3.git/blame - db3.spec
- added using %%{__make} macro.
[packages/db3.git] / db3.spec
CommitLineData
08bc0c20
AF
1Summary: Berkeley DB
2Name: db
3Version: 3.0.55
4Release: 1
5License: distributable
4c8f2663 6Group: Libraries
7Group(fr): Librairies
8Group(pl): Biblioteki
08bc0c20
AF
9Source0: %{name}-%{version}.tar.gz
10Patch0: db3-DESTDIR.patch
11BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13%define _includedir %{_prefix}/include/db3
14
15%description
16
17%package devel
18Summary: Berkeley DB
4c8f2663 19Group: Development/Libraries
20Group(fr): Development/Librairies
21Group(pl): Programowanie/Biblioteki
22Requires: %{name} = %{version}
08bc0c20
AF
23
24%description devel
25
26#%package static
27#Summary: Berkeley DB
4c8f2663 28#Group: Development/Libraries
29#Group(fr): Development/Librairies
30#Group(pl): Programowanie/Biblioteki
31#Requires: %{name}-devel = %{version}
08bc0c20
AF
32#
33#%description static
34
35%prep
36%setup -q
37chmod -R u+w *
38%patch0 -p1
39
40%build
4c8f2663 41LDFLAGS="-s"; export LDFLAGS
42cd dist
43%configure \
08bc0c20
AF
44 --enable-compat185 \
45 --enable-cxx \
46 --enable-dynamic \
47 --enable-shared \
51895280 48 --enable-static \
08bc0c20
AF
49 --enable-tcl
50
51make
52
53%install
54rm -rf $RPM_BUILD_ROOT
55
4c8f2663 56cd dist
364cdb17 57%{__make} install \
08bc0c20
AF
58 DESTDIR=$RPM_BUILD_ROOT \
59 docdir=%{_datadir}/doc/%{name}-%{version}
60
61cd $RPM_BUILD_ROOT%{_bindir}
62for i in `ls`; do
63 mv $i `echo $i|sed -e 's/^db/db3/'`;
64done
65
66%clean
67rm -rf $RPM_BUILD_ROOT
68
69%files
70%defattr(644,root,root,755)
71%attr(755,root,root) %{_bindir}/*
72%attr(755,root,root) %{_libdir}/libdb*-3*.so
73
74%files devel
75%defattr(644,root,root,755)
76%doc %{_datadir}/doc/%{name}-%{version}
77%{_includedir}
78
79#%files static
80#%defattr(644,root,root,755)
This page took 0.129699 seconds and 4 git commands to generate.