source: spec/trunk/SPECS/tcl.spec@ 1628

Last change on this file since 1628 was 1618, checked in by Silvan Scherrer, 7 years ago

spec: tcl: Release version 8.5.9-4.

File size: 5.1 KB
Line 
1%define major 8
2%define minor 5
3%define majorver %{major}.%{minor}
4%define vers %{majorver}.9
5%{!?sdt:%global sdt 0}
6
7Summary: Tool Command Language, pronounced tickle
8Name: tcl
9Version: %{vers}
10Release: 4%{?dist}
11Epoch: 1
12License: TCL
13Group: Development/Languages
14URL: http://tcl.sourceforge.net/
15Vendor: bww bitwise works GmbH
16
17%scm_source svn http://svn.netlabs.org/repos/ports/tcl/trunk 2344
18
19Buildrequires: autoconf
20Provides: tcl(abi) = %{majorver}
21Obsoletes: tcl-tcldict <= %{vers}
22Provides: tcl-tcldict = %{vers}
23
24%if %sdt
25BuildRequires: systemtap-sdt-devel
26%endif
27
28%description
29The Tcl (Tool Command Language) provides a powerful platform for
30creating integration applications that tie together diverse
31applications, protocols, devices, and frameworks. When paired with the
32Tk toolkit, Tcl provides a fastest and powerful way to create
33cross-platform GUI applications. Tcl can also be used for a variety
34of web-related tasks and for creating powerful command languages for
35applications.
36
37%package devel
38Summary: Tcl scripting language development environment
39Group: Development/Languages
40Requires: %{name} = %{epoch}:%{version}-%{release}
41
42%description devel
43The Tcl (Tool Command Language) provides a powerful platform for
44creating integration applications that tie together diverse
45applications, protocols, devices, and frameworks. When paired with the
46Tk toolkit, Tcl provides a fastest and powerful way to create
47cross-platform GUI applications. Tcl can also be used for a variety
48of web-related tasks and for creating powerful command languages for
49applications.
50
51The package contains the development files and man pages for tcl.
52
53%package static
54Summary: Tcl scripting language development environment
55Group: Development/Languages
56Requires: %{name} = %{epoch}:%{version}-%{release}
57Requires: %{name}-devel = %{epoch}:%{version}-%{release}
58
59%description static
60The Tcl (Tool Command Language) provides a powerful platform for
61creating integration applications that tie together diverse
62applications, protocols, devices, and frameworks. When paired with the
63Tk toolkit, Tcl provides a fastest and powerful way to create
64cross-platform GUI applications. Tcl can also be used for a variety
65of web-related tasks and for creating powerful command languages for
66applications.
67
68The package contains the static library in aout format.
69
70%debug_package
71
72
73%prep
74%scm_setup
75cd unix
76autoreconf -fvi
77
78
79%build
80cd unix
81export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
82export LIBS="-lcx"
83export VENDOR="%{vendor}"
84%configure \
85%if %sdt
86 --enable-dtrace \
87%endif
88 --disable-shared \
89 --enable-load --enable-dll-unloading
90
91make %{?_smp_mflags} TCL_LIBRARY=%{_datadir}/%{name}%{majorver}
92
93#%check
94# don't run "make test" by default
95#%{?_without_check: %define _without_check 0}
96#%{!?_without_check: %define _without_check 1}
97#%if ! %{_without_check}
98# make test
99#%endif
100
101%install
102rm -rf $RPM_BUILD_ROOT
103make install -C unix INSTALL_ROOT=$RPM_BUILD_ROOT TCL_LIBRARY=%{_datadir}/%{name}%{majorver}
104
105cp $RPM_BUILD_ROOT%{_bindir}/tclsh%{majorver}.exe $RPM_BUILD_ROOT%{_bindir}/tclsh.exe
106cp unix/tcl*.dll $RPM_BUILD_ROOT%{_libdir}
107cp unix/libtcl%{majorver}_s.a $RPM_BUILD_ROOT%{_libdir}
108
109# for linking with -lib%{name}
110#ln -s lib%{name}%{majorver}.so $RPM_BUILD_ROOT%{_libdir}/lib%{name}.so
111
112mkdir -p $RPM_BUILD_ROOT/%{_libdir}/%{name}%{majorver}
113
114# postgresql and maybe other packages too need tclConfig.sh
115# paths don't look at /usr/lib for efficiency, so we symlink into tcl8.5 for now
116ln -s %{_libdir}/%{name}Config.sh $RPM_BUILD_ROOT/%{_libdir}/%{name}%{majorver}/%{name}Config.sh
117
118#mkdir -p $RPM_BUILD_ROOT/%{_includedir}/%{name}-private/{generic,unix}
119#find generic unix -name "*.h" -exec cp -p '{}' $RPM_BUILD_ROOT/%{_includedir}/%{name}-private/'{}' ';'
120#( cd $RPM_BUILD_ROOT/%{_includedir}
121# for i in *.h ; do
122# [ -f $RPM_BUILD_ROOT/%{_includedir}/%{name}-private/generic/$i ] && ln -sf ../../$i $RPM_BUILD_ROOT/%{_includedir}/%{name}-private/generic ;
123# done
124#)
125
126# remove buildroot traces
127sed -i -e "s|$PWD/unix|%{_libdir}|; s|$PWD|%{_includedir}/%{name}-private|" $RPM_BUILD_ROOT/%{_libdir}/%{name}Config.sh
128rm -rf $RPM_BUILD_ROOT/%{_datadir}/%{name}%{majorver}/tclAppInit.c
129rm -rf $RPM_BUILD_ROOT/%{_datadir}/%{name}%{majorver}/ldAix
130
131%clean
132rm -rf $RPM_BUILD_ROOT
133
134#%post -p /sbin/ldconfig
135
136#%postun -p /sbin/ldconfig
137
138%files
139%defattr(-,root,root,-)
140%{_bindir}/tclsh*
141%exclude %{_bindir}/*.dbg
142%{_datadir}/%{name}%{majorver}
143%{_datadir}/%{name}8
144%{_libdir}/%{name}%{major}%{minor}.dll
145%{_mandir}/man1/*
146%{_mandir}/man3/*
147%{_mandir}/mann/*
148%dir %{_libdir}/%{name}%{majorver}
149%doc README changes
150%doc license.terms
151
152%files devel
153%defattr(-,root,root,-)
154%{_includedir}/*
155%{_libdir}/lib%{name}stub%{majorver}.a
156%{_libdir}/lib%{name}%{majorver}.a
157%{_libdir}/%{name}Config.sh
158%{_libdir}/%{name}8.5/%{name}Config.sh
159
160%files static
161%defattr(-,root,root,-)
162%{_libdir}/lib%{name}%{majorver}_s.a
163
164%changelog
165* Fri Mar 22 2019 Silvan Scherrer <silvan.scherrer@aroa.ch> 8.5.9-4
166- reworked fd handling in the mkstemp() case, to make it work
167- create a nice bldlevel
168- rebuild with latest scm_macros
169- remove the dll from the devel rpm
170- add debug package
171
172* Tue Jun 14 2016 yd <yd@os2power.com> 8.5.9-3
173- rebuild package, fixes ticket#183.
Note: See TracBrowser for help on using the repository browser.