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 URL: http://tvision.sourceforge.net/
15 BuildRequires: xorg-lib-libX11-devel
16 BuildRequires: gpm-devel
17 BuildRequires: libstdc++-devel
18 BuildRequires: ncurses-devel
19 BuildRequires: perl-base
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Turbo Vision (or TV, for short) is a library that provides an
24 application framework. With TV you can write a beautiful
25 object-oriented character-mode user interface in a short time.
27 TV is available in C++ and Pascal and is a product of Borland
28 International. It was developed to run on MS-DOS systems, but today it
29 is available for many other platforms (ported by independent
32 This port is based on the Borland 2.0 version with fixes.
34 %description -l pl.UTF-8
35 Uniksowa wersja biblioteki TurboVision 2.0 Borlanda. TurboVision jest
36 obiektową biblioteką do okienkowych interfejsów użytkownika w trybie
40 Summary: %{name} header files
41 Summary(pl.UTF-8): Pliki nagłówkowe %{name}
42 Group: Development/Libraries
43 Requires: %{name} = %{version}-%{release}
46 rhtvision header files.
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe rhtvision.
52 Summary: Static %{name} libraries
53 Summary(pl.UTF-8): Biblioteki statyczne %{name}
54 Group: Development/Libraries
55 Requires: %{name}-devel = %{version}-%{release}
58 Static rhtvision libraries.
60 %description static -l pl.UTF-8
61 Biblioteki statyczne rhtvision.
73 --cflags="%{rpmcflags} -I/usr/include/ncursesw" \
74 --cxxflags="%{rpmcflags} -fno-exceptions -I/usr/include/ncursesw" \
76 %{?debug:--with-debug}
80 RHIDE_GXX="%{__cxx}" \
81 RHIDE_LDFLAGS="%{rpmldflags} -shared -Wl,-soname,librhtv.so.2" \
85 rm -rf $RPM_BUILD_ROOT
86 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
89 prefix=$RPM_BUILD_ROOT%{_prefix} \
90 libdir=$RPM_BUILD_ROOT%{_libdir}
92 cd $RPM_BUILD_ROOT%{_libdir}
93 ln -sf librhtv.so.%{version} librhtv.so.2
96 # let's create new rhide.env
97 cat > examples/rhide.env <<EOF
103 RHIDE_OS_CFLAGS=%{rpmcflags} -Wall
104 RHIDE_OS_CXXFLAGS=%{rpmcflags} -Wall
105 RHIDE_STDINC=/usr/include /usr/X11R6/include /usr/include/ncurses
106 TVSRC=%{_includedir}/rhtvision
110 SHARED_CODE_OPTION=-fPIC
114 %{__perl} patchenv.pl
117 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
119 %find_lang tvision%{version}
122 rm -rf $RPM_BUILD_ROOT
124 %post -p /sbin/ldconfig
125 %postun -p /sbin/ldconfig
127 %files -f tvision%{version}.lang
128 %defattr(644,root,root,755)
129 %doc readme.txt TODO borland.txt
130 %attr(755,root,root) %{_libdir}/librhtv.so.*.*.*
131 %attr(755,root,root) %ghost %{_libdir}/librhtv.so.2
134 %defattr(644,root,root,755)
135 %doc doc/*.txt doc/*.html
136 %attr(755,root,root) %{_bindir}/rhtv-config
137 %attr(755,root,root) %{_libdir}/librhtv.so
138 %{_libdir}/libtvfintl.a
139 %{_includedir}/rhtvision
140 %{_examplesdir}/%{name}-%{version}
143 %defattr(644,root,root,755)