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://dl.sourceforge.net/tvision/rhtvision-%{version}.src.tar.gz
9 # Source0-md5: b6129f5c510ba9d28d21c9575b7e1c75
10 Patch0: %{name}-nolowlevelgarbage.patch
11 Patch1: %{name}-gcc4.patch
12 URL: http://tvision.sourceforge.net/
13 BuildRequires: XFree86-devel
14 BuildRequires: gpm-devel
15 BuildRequires: libstdc++-devel
16 BuildRequires: ncurses-devel
17 BuildRequires: perl-base
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Turbo Vision (or TV, for short) is a library that provides an
22 application framework. With TV you can write a beautiful
23 object-oriented character-mode user interface in a short time.
25 TV is available in C++ and Pascal and is a product of Borland
26 International. It was developed to run on MS-DOS systems, but today it
27 is available for many other platforms (ported by independent
30 This port is based on the Borland 2.0 version with fixes.
32 %description -l pl.UTF-8
33 Uniksowa wersja biblioteki TurboVision 2.0 Borlanda. TurboVision jest
34 obiektową biblioteką do okienkowych interfejsów użytkownika w trybie
38 Summary: %{name} header files
39 Summary(pl.UTF-8): Pliki nagłówkowe %{name}
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
44 rhtvision header files.
46 %description devel -l pl.UTF-8
47 Pliki nagłówkowe rhtvision.
50 Summary: Static %{name} libraries
51 Summary(pl.UTF-8): Biblioteki statyczne %{name}
52 Group: Development/Libraries
53 Requires: %{name}-devel = %{version}-%{release}
56 Static rhtvision libraries.
58 %description static -l pl.UTF-8
59 Biblioteki statyczne rhtvision.
69 --cflags="%{rpmcflags} -I/usr/include/ncurses" \
70 --cxxflags="%{rpmcflags} -fno-exceptions -I/usr/include/ncurses" \
71 %{?debug:--with-debug}
75 RHIDE_GXX="%{__cxx}" \
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
83 prefix=$RPM_BUILD_ROOT%{_prefix} \
84 libdir=$RPM_BUILD_ROOT%{_libdir}
86 # let's create new rhide.env
87 cat > examples/rhide.env <<EOF
93 RHIDE_OS_CFLAGS=%{rpmcflags} -Wall
94 RHIDE_OS_CXXFLAGS=%{rpmcflags} -Wall
95 RHIDE_STDINC=/usr/include /usr/X11R6/include /usr/include/ncurses
96 TVSRC=%{_includedir}/rhtvision
100 SHARED_CODE_OPTION=-fPIC
104 %{__perl} patchenv.pl
107 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
109 %find_lang tvision%{version}
112 rm -rf $RPM_BUILD_ROOT
114 %post -p /sbin/ldconfig
115 %postun -p /sbin/ldconfig
117 %files -f tvision%{version}.lang
118 %defattr(644,root,root,755)
119 %doc readme.txt TODO borland.txt
120 %attr(755,root,root) %{_libdir}/lib*.so.*.*
123 %defattr(644,root,root,755)
124 %doc doc/*.txt doc/*.html
125 %attr(755,root,root) %{_bindir}/rhtv-config
126 %attr(755,root,root) %{_libdir}/lib*.so
128 %{_examplesdir}/%{name}-%{version}
131 %defattr(644,root,root,755)