]> git.pld-linux.org Git - SPECS.git/blob - tclcl.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / tclcl.spec
1 Summary:        Tcl/C++ interface
2 Summary(pl.UTF-8):      Interfejs Tcl/C++
3 Name:           tclcl
4 Version:        1.17
5 Release:        1
6 License:        MIT
7 Group:          Development/Languages/Tcl
8 Source0:        http://dl.sourceforge.net/otcl-tclcl/%{name}-%{version}.tar.gz
9 # Source0-md5:  39574568176c138f5d2f7fe8fba85a9c
10 URL:            http://otcl-tclcl.sourceforge.net/tclcl/
11 Patch0:         tcl-lib.patch
12 Patch1:         %{name}-tcl-8.4.patch
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  libstdc++-devel
16 BuildRequires:  otcl-devel
17 BuildRequires:  tcl-devel >= 8.4
18 BuildRequires:  tk-devel >= 8.4
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 TclCL (Tcl with classes) is a Tcl/C++ interface used by Mash, vic,
23 vat, rtp_play, ns, and nam. It provides a layer of C++ glue over OTcl.
24
25 %description -l pl.UTF-8
26 TclCL (Tcl z klasami) jest interfejsem Tcl/C++ używanym prez Mash,
27 vic, vat, rtp_play, ns oraz nam. Zapewnia warstwę C++ nad OTcl.
28
29 %package devel
30 Summary:        TclCL header files
31 Summary(pl.UTF-8):      Pliki nagłówkowe TclCL
32 Group:          Development/Libraries
33 Requires:       %{name} = %{version}-%{release}
34 Obsoletes:      tclcl-static
35
36 %description devel
37 TclCL header files.
38
39 %description devel -l pl.UTF-8
40 Pliki nagłówkowe TclCL.
41
42 %package static
43 Summary:        TclCL static library
44 Summary(pl.UTF-8):      Statyczna biblioteka TclCL
45 Group:          Development/Libraries
46 Requires:       %{name}-devel = %{version}-%{release}
47
48 %description static
49 TclCL static library.
50
51 %description static -l pl.UTF-8
52 Statyczna biblioteka TclCL.
53
54 %prep
55 %setup -q
56 %patch0 -p1
57 %patch1 -p1
58
59 %build
60 cp /usr/share/automake/config.sub .
61 %{__autoconf}
62 ./configure \
63         --with-tcl-ver=8.4 \
64         --with-tk-ver=8.4
65 %{__make} \
66         CCOPT="%{rpmcflags}" \
67         CXXFLAGS="%{rpmcflags}"
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir}}
72
73 install tcl2c++ $RPM_BUILD_ROOT%{_bindir}
74 install *.h $RPM_BUILD_ROOT%{_includedir}
75 install libtclcl.a $RPM_BUILD_ROOT%{_libdir}
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %post   -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
82
83 %files
84 %defattr(644,root,root,755)
85 %doc CHANGES.html
86 %attr(755,root,root) %{_bindir}/*
87
88 %files devel
89 %defattr(644,root,root,755)
90 %{_includedir}/*
91 %{_libdir}/*.a
92
93 #%files static
94 #%defattr(644,root,root,755)
This page took 1.368601 seconds and 3 git commands to generate.