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: http://download.sourceforge.net/tvision/rhtvision_%{version}-1.tar.gz
9 # Source0-md5: 46b815d86bbbb2f9b112b11f63e2f5a6
10 Patch0: %{name}-nolowlevelgarbage.patch
11 Patch1: %{name}-fcntl.patch
12 Patch2: %{name}-ncurses.patch
13 Patch3: format-security.patch
14 Patch4: infinite-loop.patch
15 URL: http://tvision.sourceforge.net/
16 BuildRequires: xorg-lib-libX11-devel
17 BuildRequires: gpm-devel
18 BuildRequires: libstdc++-devel
19 BuildRequires: ncurses-devel
20 BuildRequires: perl-base
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Turbo Vision (or TV, for short) is a library that provides an
25 application framework. With TV you can write a beautiful
26 object-oriented character-mode user interface in a short time.
28 TV is available in C++ and Pascal and is a product of Borland
29 International. It was developed to run on MS-DOS systems, but today it
30 is available for many other platforms (ported by independent
33 This port is based on the Borland 2.0 version with fixes.
35 %description -l pl.UTF-8
36 Uniksowa wersja biblioteki TurboVision 2.0 Borlanda. TurboVision jest
37 obiektową biblioteką do okienkowych interfejsów użytkownika w trybie
41 Summary: %{name} header files
42 Summary(pl.UTF-8): Pliki nagłówkowe %{name}
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
47 rhtvision header files.
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe rhtvision.
53 Summary: Static %{name} libraries
54 Summary(pl.UTF-8): Biblioteki statyczne %{name}
55 Group: Development/Libraries
56 Requires: %{name}-devel = %{version}-%{release}
59 Static rhtvision libraries.
61 %description static -l pl.UTF-8
62 Biblioteki statyczne rhtvision.
75 --cflags="%{rpmcflags} -I/usr/include/ncursesw" \
76 --cxxflags="%{rpmcflags} -fno-exceptions -I/usr/include/ncursesw" \
83 RHIDE_GXX="%{__cxx}" \
84 RHIDE_LDFLAGS="%{rpmldflags} -shared -Wl,-soname,librhtv.so.2" \
88 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
92 prefix=$RPM_BUILD_ROOT%{_prefix} \
93 libdir=$RPM_BUILD_ROOT%{_libdir}
95 cd $RPM_BUILD_ROOT%{_libdir}
96 ln -sf librhtv.so.%{version} librhtv.so.2
97 chmod 0755 librhtv.so.%{version}
100 # let's create new rhide.env
101 cat > examples/rhide.env <<EOF
107 RHIDE_OS_CFLAGS=%{rpmcflags} -Wall
108 RHIDE_OS_CXXFLAGS=%{rpmcflags} -Wall
109 RHIDE_STDINC=/usr/include /usr/X11R6/include /usr/include/ncurses
110 TVSRC=%{_includedir}/rhtvision
114 SHARED_CODE_OPTION=-fPIC
118 %{__perl} patchenv.pl
121 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
123 %find_lang tvision%{version}
126 rm -rf $RPM_BUILD_ROOT
128 %post -p /sbin/ldconfig
129 %postun -p /sbin/ldconfig
131 %files -f tvision%{version}.lang
132 %defattr(644,root,root,755)
133 %doc readme.txt TODO borland.txt
134 %attr(755,root,root) %{_libdir}/librhtv.so.*.*.*
135 %attr(755,root,root) %ghost %{_libdir}/librhtv.so.2
138 %defattr(644,root,root,755)
139 %doc doc/*.txt doc/*.html
140 %attr(755,root,root) %{_bindir}/rhtv-config
141 %attr(755,root,root) %{_libdir}/librhtv.so
142 %{_libdir}/libtvfintl.a
143 %{_includedir}/rhtvision
144 %{_examplesdir}/%{name}-%{version}
147 %defattr(644,root,root,755)