1 Summary: Unix port of Borland TurboVision library
2 Summary(pl.UTF-8): Uniksowa wersja biblioteki TurboVision Borlanda
6 License: Borland, some modifications are BSD-like licensed (generally free)
8 Source0: ftp://sunsite.unc.edu/pub/Linux/devel/lang/c++/%{name}-%{version}.tar.gz
9 # Source0-md5: 7f99404877bb45b2510d43065cbefe6c
10 Patch0: %{name}-info.patch
11 Patch1: %{name}-am_fixes.patch
12 Patch2: %{name}-endian.h.patch
13 URL: http://www.sigala.it/sergio/tvision/
14 BuildRequires: gpm-devel
15 BuildRequires: libstdc++-devel
16 BuildRequires: ncurses-devel
17 BuildRequires: texinfo
18 Requires(post,postun): /sbin/ldconfig
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Turbo Vision (or TV, for short) is a library that provides an
23 application framework. With TV you can write a beautiful
24 object-oriented character-mode user interface in a short time.
26 TV is available in C++ and Pascal and is a product of Borland
27 International. It was developed to run on MS-DOS systems, but today it
28 is available for many other platforms (ported by independent
31 This port is based on the Borland 2.0 version with fixes.
33 %description -l pl.UTF-8
34 Uniksowa wersja biblioteki TurboVision 2.0 Borlanda. TurboVision jest
35 obiektową biblioteką do okienkowych interfejsów użytkownika w trybie
39 Summary: tvision header files
40 Summary(pl.UTF-8): Pliki nagłówkowe tvision
41 Group: Development/Libraries
42 Requires: %{name} = %{version}-%{release}
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe tvision.
51 Summary: Static tvision libraries
52 Summary(pl.UTF-8): Biblioteki statyczne tvision
53 Group: Development/Libraries
54 Requires: %{name}-devel = %{version}-%{release}
57 Static tvision libraries.
59 %description static -l pl.UTF-8
60 Biblioteki statyczne tvision.
69 CXXFLAGS="-I/usr/include/ncurses -fno-exceptions -fno-rtti -fno-implicit-templates"
72 sed 's|<sys/time.h>|<time.h>|' demo/puzzle.cc > demo/puzzle.cc.$$ && mv -f demo/puzzle.cc.$$ demo/puzzle.cc
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT{%{_infodir},%{_examplesdir}/%{name}}
80 DESTDIR=$RPM_BUILD_ROOT
82 install doc/tvision.info $RPM_BUILD_ROOT%{_infodir}
85 %{__make} -C tutorial mostlyclean
86 %{__make} -C demo mostlyclean
88 rm -f tutorial/Makefile*
89 rm -f doc/{*.info,*.texi,*.tex,*.sed,*.kdoc,Makefile*}
91 # let's create simple Makefile ("\$" to prevent from macro expansion)
92 cat >tutorial/Makefile <<EOF
94 LDFLAGS = -lncurses -lgpm -ltvision
96 SOURCES := \$(wildcard *.cc)
97 PROGS := \$(patsubst %.cc,%,\$(SOURCES))
102 cp -a demo tutorial $RPM_BUILD_ROOT%{_examplesdir}/%{name}
105 rm -rf $RPM_BUILD_ROOT
109 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
113 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
116 %defattr(644,root,root,755)
117 %doc doc ChangeLog README TODO Announce COPYRIGHT
118 %attr(755,root,root) %{_libdir}/lib*.so.*.*
122 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/lib*.so
127 %{_examplesdir}/%{name}
130 %defattr(644,root,root,755)