1 Summary: Embeddable database
2 Summary(pl.UTF-8): Baza danych
8 Source0: http://www.equi4.com/pub/mk/%{name}-%{version}.tar.gz
9 # Source0-md5: 17330257376eea657827ed632ea62c9e
10 Patch0: %{name}-sparc64.patch
11 Patch1: %{name}-build.patch
13 URL: http://www.equi4.com/metakit.html
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: libstdc++-devel
17 BuildRequires: libtool
18 BuildRequires: python-devel
19 BuildRequires: tcl-devel >= %{tcl_version}
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define tcl_version 8.6
25 MetaKit is an embeddable database which runs on Unix, Windows,
26 Macintosh, and other platforms. It lets you build applications which
27 store their data efficiently, in a portable way, and which will not
28 need a complex runtime installation. In terms of the data model,
29 MetaKit takes the middle ground between RDBMS, OODBMS, and flat-file
30 databases - yet it is quite different from each of them.
32 %description -l pl.UTF-8
33 MetaKit to baza danych pracująca na platformach Unix, Windows,
34 Macintosh oraz innych. Pozwala ona na tworzenie aplikacji, które
35 zapisują dane efektywnie w sposób łatwy do przenoszenia między
36 platformami i które nie wymagają skomplikowanej instalacji. MetaKit
37 używając określeń z dziedziny baz danych znajduje się pomiędzy RDBMS,
38 OODBMS i bazami opartymi na płaskich-plikach.
41 Summary: Header files and development documentation for %{name}
42 Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do %{name}
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
45 Obsoletes: metakit-static
48 Header files and development documentation for %{name}.
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe i dokumentacja do %{name}.
53 %package -n python-metakit
54 Summary: Python modules for metakit
55 Summary(pl.UTF-8): Moduły Pythona dla pakietu metakit
56 Group: Libraries/Python
57 Requires: %{name} = %{version}-%{release}
58 %pyrequires_eq python-libs
60 %description -n python-metakit
61 Python modules for metakit.
63 %description -n python-metakit -l pl.UTF-8
64 Moduły Pythona dla pakietu metakit.
66 %package -n tcl-metakit
67 Summary: Tcl modules for metakit
68 Summary(pl.UTF-8): Moduły Tcl-a dla pakietu metakit
69 Group: Development/Languages/Tcl
70 Requires: %{name} = %{version}-%{release}
72 %description -n tcl-metakit
73 Tcl modules for metakit.
75 %description -n tcl-metakit -l pl.UTF-8
76 Moduły Tcl-a dla pakietu metakit.
90 CXXFLAGS="%{rpmcxxflags} -DUSE_INTERP_RESULT -DUSE_INTERP_ERRORLINE" \
91 --with-tcl=%{_includedir},%{_libdir}/tcl%{tcl_version} \
92 --with-python=%{py_incdir},%{py_sitedir} \
97 rm -rf $RPM_BUILD_ROOT
98 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{py_sitedir}} \
99 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
103 DESTDIR=$RPM_BUILD_ROOT
105 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
108 rm -rf $RPM_BUILD_ROOT
110 %post -p /sbin/ldconfig
111 %postun -p /sbin/ldconfig
114 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_libdir}/*.so
119 %defattr(644,root,root,755)
120 %doc CHANGES Metakit.html doc
123 %{_examplesdir}/%{name}-%{version}
125 %files -n python-metakit
126 %defattr(644,root,root,755)
127 %attr(755,root,root) %{py_sitedir}/Mk4py.so
128 %{py_sitedir}/metakit.py
130 %files -n tcl-metakit
131 %defattr(644,root,root,755)
132 %dir %{_libdir}/tcl%{tcl_version}/Mk4tcl
133 %attr(755,root,root) %{_libdir}/tcl%{tcl_version}/Mk4tcl/Mk4tcl.so
134 %{_libdir}/tcl%{tcl_version}/Mk4tcl/pkgIndex.tcl