|
Lines 1-6
Link Here
|
| 1 |
Name: metakit |
1 |
Name: metakit |
| 2 |
Version: 2.4.9.3 |
2 |
Version: 2.4.9.3 |
| 3 |
Release: alt1.1.1 |
3 |
Release: alt2 |
|
|
4 |
|
| 5 |
%define tclpkg Mk4tcl |
| 4 |
|
6 |
|
| 5 |
Summary: Embeddable database |
7 |
Summary: Embeddable database |
| 6 |
License: X/MIT-like |
8 |
License: X/MIT-like |
|
Lines 11-19
Packager: Michael Shigorin <mike@altlinu
Link Here
|
| 11 |
|
13 |
|
| 12 |
Source: %name-%version.tar.gz |
14 |
Source: %name-%version.tar.gz |
| 13 |
Patch0: metakit-2.4.9.3-alt-libtool.patch.bz2 |
15 |
Patch0: metakit-2.4.9.3-alt-libtool.patch.bz2 |
|
|
16 |
Patch1: metakit-2.4.9.3-alt-tcl.patch |
| 14 |
|
17 |
|
| 15 |
# Automatically added by buildreq on Wed Dec 11 2002 |
18 |
# Automatically added by buildreq on Sun Jan 02 2005 |
| 16 |
BuildRequires: gcc-c++ libstdc++-devel |
19 |
BuildRequires: gcc-c++ libstdc++-devel tcl-devel |
| 17 |
|
20 |
|
| 18 |
%def_disable static |
21 |
%def_disable static |
| 19 |
%{?_enable_static:BuildPreReq: glibc-devel-static} |
22 |
%{?_enable_static:BuildPreReq: glibc-devel-static} |
|
Lines 51-59
Requires: lib%name-devel = %version-%rel
Link Here
|
| 51 |
%description -n lib%name-devel-static |
54 |
%description -n lib%name-devel-static |
| 52 |
This package contains static libraries for %name development. |
55 |
This package contains static libraries for %name development. |
| 53 |
|
56 |
|
|
|
57 |
%package -n tcl-%name |
| 58 |
Summary: Tcl bindings for the Metakit library |
| 59 |
Group: Development/Tcl |
| 60 |
Requires: lib%name = %version-%release |
| 61 |
Requires: tcl >= 8.4.0-alt1 |
| 62 |
|
| 63 |
%description -n tcl-%name |
| 64 |
This package contains Tcl bindings for the Metakit library. |
| 65 |
|
| 54 |
%prep |
66 |
%prep |
| 55 |
%setup -q |
67 |
%setup -q |
| 56 |
bzcat %PATCH0 | patch -p1 -F10 |
68 |
bzcat %PATCH0 | patch -p1 -F10 |
|
|
69 |
%patch1 -p1 |
| 57 |
|
70 |
|
| 58 |
%build |
71 |
%build |
| 59 |
%__subst "s/^CXXFLAGS.*/CXXFLAGS = %optflags/" unix/Makefile.in |
72 |
%__subst "s/^CXXFLAGS.*/CXXFLAGS = %optflags/" unix/Makefile.in |
|
Lines 62-79
autoconf
Link Here
|
| 62 |
cd ../builds |
75 |
cd ../builds |
| 63 |
|
76 |
|
| 64 |
# whoever wants python should look at Conectiva package first; |
77 |
# whoever wants python should look at Conectiva package first; |
| 65 |
# tcl -- don't know at all (tcl-devel wouldn't help) |
78 |
# Tcl extension now builds with some hacks |
| 66 |
../unix/configure \ |
79 |
../unix/configure \ |
| 67 |
--disable-python --disable-tcl \ |
80 |
--disable-python --with-tcl=/usr/include,%buildroot%_tcldatadir \ |
| 68 |
--prefix=%prefix --mandir=%_mandir \ |
81 |
--prefix=%prefix --mandir=%_mandir \ |
| 69 |
--libdir=%_libdir --includedir=%_includedir \ |
82 |
--libdir=%_libdir --includedir=%_includedir \ |
| 70 |
--infodir=%_infodir --bindir=%_bindir \ |
83 |
--infodir=%_infodir --bindir=%_bindir \ |
| 71 |
--sbindir=%_sbindir --sysconfdir=%_sysconfdir \ |
84 |
--sbindir=%_sbindir --sysconfdir=%_sysconfdir \ |
| 72 |
--enable-shared %{subst_enable static} |
85 |
--enable-shared %{subst_enable static} |
| 73 |
|
86 |
|
|
|
87 |
# hack to avoid broken rpath (libtool sucks) |
| 88 |
%__subst 's|^\(hardcode_into_libs\)=.*$|\1=no|' libtool |
| 89 |
|
| 74 |
%make_build |
90 |
%make_build |
| 75 |
%make_build test |
91 |
%make_build test |
| 76 |
|
92 |
|
|
|
93 |
pushd ../tcl/test |
| 94 |
LD_LIBRARY_PATH=../../builds/.libs tclsh all.tcl |
| 95 |
popd |
| 96 |
|
| 77 |
%install |
97 |
%install |
| 78 |
%makeinstall -C builds |
98 |
%makeinstall -C builds |
| 79 |
|
99 |
|
|
Lines 84-89
find . -type d -name CVS -print0 |
Link Here
|
| 84 |
find doc demos -type f -print0 | |
104 |
find doc demos -type f -print0 | |
| 85 |
xargs -r0 chmod 644 -- |
105 |
xargs -r0 chmod 644 -- |
| 86 |
|
106 |
|
|
|
107 |
# move tcl extension library to proper place |
| 108 |
%__mkdir_p %buildroot%_tcllibdir |
| 109 |
%__mv %buildroot%_tcldatadir/%tclpkg/%tclpkg.so %buildroot%_tcllibdir/ |
| 110 |
%__subst 's|\$dir \(%tclpkg\.so\)|/usr/lib/tcl \1|' \ |
| 111 |
%buildroot%_tcldatadir/%tclpkg/pkgIndex.tcl |
| 112 |
|
| 87 |
%post -n lib%name -p %post_ldconfig |
113 |
%post -n lib%name -p %post_ldconfig |
| 88 |
%postun -n lib%name -p %postun_ldconfig |
114 |
%postun -n lib%name -p %postun_ldconfig |
| 89 |
|
115 |
|
|
Lines 96-107
find doc demos -type f -print0 |
Link Here
|
| 96 |
%_libdir/*.so |
122 |
%_libdir/*.so |
| 97 |
%_includedir/* |
123 |
%_includedir/* |
| 98 |
|
124 |
|
|
|
125 |
%files -n tcl-%name |
| 126 |
%doc doc/tcl.html doc/tcl.gif doc/e4s.gif |
| 127 |
%_tcldatadir/%tclpkg |
| 128 |
%_tcllibdir/%tclpkg.so |
| 129 |
|
| 99 |
%if_enabled static |
130 |
%if_enabled static |
| 100 |
%files -n lib%name-devel-static |
131 |
%files -n lib%name-devel-static |
| 101 |
%_libdir/*.a |
132 |
%_libdir/*.a |
| 102 |
%endif |
133 |
%endif |
| 103 |
|
134 |
|
| 104 |
%changelog |
135 |
%changelog |
|
|
136 |
* Sun Dec 18 2005 Sergey Vlasov <vsu@altlinux.ru> 2.4.9.3-alt2 |
| 137 |
- Enabled Tcl support. |
| 138 |
- Added patch to fix Tcl extension build: |
| 139 |
+ use shared metakit library instead of duplicating its code |
| 140 |
+ do not export internal symbols |
| 141 |
- Updated BuildRequires. |
| 142 |
|
| 105 |
* Tue Jan 18 2005 ALT QA Team Robot <qa-robot@altlinux.org> 2.4.9.3-alt1.1.1 |
143 |
* Tue Jan 18 2005 ALT QA Team Robot <qa-robot@altlinux.org> 2.4.9.3-alt1.1.1 |
| 106 |
- Rebuilt with libstdc++.so.6. |
144 |
- Rebuilt with libstdc++.so.6. |
| 107 |
|
145 |
|