]> git.pld-linux.org Git - SPECS.git/blob - metakit.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / metakit.spec
1 Summary:        Embeddable database
2 Summary(pl.UTF-8):      Baza danych
3 Name:           metakit
4 Version:        2.4.9.7
5 Release:        5
6 License:        GPL
7 Group:          Libraries
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
12 Patch2:         x32.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)
21
22 %define         tcl_version     8.6
23
24 %description
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.
31
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.
39
40 %package devel
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
46
47 %description devel
48 Header files and development documentation for %{name}.
49
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe i dokumentacja do %{name}.
52
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
59
60 %description -n python-metakit
61 Python modules for metakit.
62
63 %description -n python-metakit -l pl.UTF-8
64 Moduły Pythona dla pakietu metakit.
65
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}
71
72 %description -n tcl-metakit
73 Tcl modules for metakit.
74
75 %description -n tcl-metakit -l pl.UTF-8
76 Moduły Tcl-a dla pakietu metakit.
77
78 %prep
79 %setup -q
80 %patch0 -p1
81 %patch1 -p1
82 %patch2 -p1
83
84 %build
85 cd unix
86 %{__libtoolize}
87 %{__aclocal}
88 %{__autoconf}
89 %configure \
90         CXXFLAGS="%{rpmcxxflags} -DUSE_INTERP_RESULT -DUSE_INTERP_ERRORLINE" \
91         --with-tcl=%{_includedir},%{_libdir}/tcl%{tcl_version} \
92         --with-python=%{py_incdir},%{py_sitedir} \
93         --enable-shared
94 %{__make}
95
96 %install
97 rm -rf $RPM_BUILD_ROOT
98 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{py_sitedir}} \
99         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
100
101 %{__make} install \
102         -C unix \
103         DESTDIR=$RPM_BUILD_ROOT
104
105 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
106
107 %clean
108 rm -rf $RPM_BUILD_ROOT
109
110 %post   -p /sbin/ldconfig
111 %postun -p /sbin/ldconfig
112
113 %files
114 %defattr(644,root,root,755)
115 %doc README
116 %attr(755,root,root) %{_libdir}/*.so
117
118 %files devel
119 %defattr(644,root,root,755)
120 %doc CHANGES Metakit.html doc
121 %{_includedir}/*.h
122 %{_includedir}/*.inl
123 %{_examplesdir}/%{name}-%{version}
124
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
129
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
This page took 0.403309 seconds and 3 git commands to generate.