]>
Commit | Line | Data |
---|---|---|
682ae7e7 | 1 | Summary: Unix port of Borland TurboVision library |
daeaddf3 | 2 | Summary(pl.UTF-8): Uniksowa wersja biblioteki TurboVision Borlanda |
682ae7e7 | 3 | Name: librhtv |
d9f8c41d | 4 | Version: 2.2.1 |
fc8a39a8 | 5 | Release: 2 |
2e2c883b | 6 | License: Borland, some modifications are BSD-like licensed (generally free) |
682ae7e7 | 7 | Group: Libraries |
d9f8c41d | 8 | Source0: http://download.sourceforge.net/tvision/rhtvision_%{version}-1.tar.gz |
9 | # Source0-md5: 46b815d86bbbb2f9b112b11f63e2f5a6 | |
aac82b43 | 10 | Patch0: %{name}-nolowlevelgarbage.patch |
d9f8c41d | 11 | Patch1: %{name}-fcntl.patch |
12 | Patch2: %{name}-ncurses.patch | |
f0c034a2 | 13 | Patch3: format-security.patch |
fc8a39a8 | 14 | Patch4: infinite-loop.patch |
aac82b43 | 15 | URL: http://tvision.sourceforge.net/ |
d9f8c41d | 16 | BuildRequires: xorg-lib-libX11-devel |
682ae7e7 | 17 | BuildRequires: gpm-devel |
f18913d0 | 18 | BuildRequires: libstdc++-devel |
682ae7e7 | 19 | BuildRequires: ncurses-devel |
aac82b43 | 20 | BuildRequires: perl-base |
682ae7e7 JB |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
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. | |
27 | ||
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 | |
31 | programmers). | |
32 | ||
33 | This port is based on the Borland 2.0 version with fixes. | |
34 | ||
6039244a | 35 | %description -l pl.UTF-8 |
682ae7e7 | 36 | Uniksowa wersja biblioteki TurboVision 2.0 Borlanda. TurboVision jest |
6039244a | 37 | obiektową biblioteką do okienkowych interfejsów użytkownika w trybie |
682ae7e7 JB |
38 | tekstowym. |
39 | ||
40 | %package devel | |
41 | Summary: %{name} header files | |
daeaddf3 | 42 | Summary(pl.UTF-8): Pliki nagłówkowe %{name} |
682ae7e7 | 43 | Group: Development/Libraries |
7a105039 | 44 | Requires: %{name} = %{version}-%{release} |
682ae7e7 JB |
45 | |
46 | %description devel | |
47 | rhtvision header files. | |
48 | ||
6039244a JR |
49 | %description devel -l pl.UTF-8 |
50 | Pliki nagłówkowe rhtvision. | |
682ae7e7 JB |
51 | |
52 | %package static | |
53 | Summary: Static %{name} libraries | |
daeaddf3 | 54 | Summary(pl.UTF-8): Biblioteki statyczne %{name} |
682ae7e7 | 55 | Group: Development/Libraries |
7a105039 | 56 | Requires: %{name}-devel = %{version}-%{release} |
682ae7e7 JB |
57 | |
58 | %description static | |
59 | Static rhtvision libraries. | |
60 | ||
6039244a | 61 | %description static -l pl.UTF-8 |
682ae7e7 JB |
62 | Biblioteki statyczne rhtvision. |
63 | ||
64 | %prep | |
65 | %setup -q -n tvision | |
0e0bbc2c | 66 | %patch0 -p1 |
82f5c103 | 67 | %patch1 -p1 |
d9f8c41d | 68 | %patch2 -p1 |
f0c034a2 | 69 | %patch3 -p1 |
fc8a39a8 | 70 | %patch4 -p1 |
682ae7e7 JB |
71 | |
72 | %build | |
aac82b43 JB |
73 | %{__perl} config.pl \ |
74 | --prefix=%{_prefix} \ | |
d9f8c41d | 75 | --cflags="%{rpmcflags} -I/usr/include/ncursesw" \ |
76 | --cxxflags="%{rpmcflags} -fno-exceptions -I/usr/include/ncursesw" \ | |
f0c034a2 | 77 | --X11lib="X11 Xmu" \ |
aac82b43 | 78 | %{?debug:--with-debug} |
682ae7e7 JB |
79 | |
80 | %{__make} \ | |
e071c183 ER |
81 | RHIDE_GCC="%{__cc}" \ |
82 | RHIDE_GXX="%{__cxx}" \ | |
f0c034a2 | 83 | RHIDE_LDFLAGS="%{rpmldflags} -shared -Wl,-soname,librhtv.so.2" \ |
8be59a02 | 84 | libdir=%{_libdir} |
682ae7e7 JB |
85 | |
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
aac82b43 | 88 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
682ae7e7 JB |
89 | |
90 | %{__make} install \ | |
8be59a02 JB |
91 | prefix=$RPM_BUILD_ROOT%{_prefix} \ |
92 | libdir=$RPM_BUILD_ROOT%{_libdir} | |
682ae7e7 | 93 | |
f0c034a2 | 94 | cd $RPM_BUILD_ROOT%{_libdir} |
0c4a542b | 95 | ln -sf librhtv.so.%{version} librhtv.so.2 |
f0c034a2 WF |
96 | cd - |
97 | ||
b904017e | 98 | # let's create new rhide.env |
682ae7e7 JB |
99 | cat > examples/rhide.env <<EOF |
100 | RHIDE_GCC=gcc | |
f18913d0 | 101 | RHIDE_GXX=g++ |
682ae7e7 JB |
102 | RHIDE_LD=gcc |
103 | RHIDE_AR=ar | |
aac82b43 JB |
104 | RHIDE_ARFLAGS=rcs |
105 | RHIDE_OS_CFLAGS=%{rpmcflags} -Wall | |
106 | RHIDE_OS_CXXFLAGS=%{rpmcflags} -Wall | |
107 | RHIDE_STDINC=/usr/include /usr/X11R6/include /usr/include/ncurses | |
682ae7e7 | 108 | TVSRC=%{_includedir}/rhtvision |
aac82b43 | 109 | RHIDE_OS_LIBS=stdc++ |
682ae7e7 | 110 | TVOBJ= |
aac82b43 JB |
111 | STDCPP_LIB=-lstdc++ |
112 | SHARED_CODE_OPTION=-fPIC | |
682ae7e7 JB |
113 | EOF |
114 | ||
115 | cd examples | |
aac82b43 | 116 | %{__perl} patchenv.pl |
682ae7e7 JB |
117 | cd .. |
118 | ||
5511054f | 119 | cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
aac82b43 | 120 | |
d548cb6f | 121 | %find_lang tvision%{version} |
682ae7e7 | 122 | |
682ae7e7 JB |
123 | %clean |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
126 | %post -p /sbin/ldconfig | |
127 | %postun -p /sbin/ldconfig | |
128 | ||
d548cb6f | 129 | %files -f tvision%{version}.lang |
682ae7e7 | 130 | %defattr(644,root,root,755) |
4bb4c50d | 131 | %doc readme.txt TODO borland.txt |
0c4a542b JB |
132 | %attr(755,root,root) %{_libdir}/librhtv.so.*.*.* |
133 | %attr(755,root,root) %ghost %{_libdir}/librhtv.so.2 | |
682ae7e7 JB |
134 | |
135 | %files devel | |
136 | %defattr(644,root,root,755) | |
568f6097 | 137 | %doc doc/*.txt doc/*.html |
aac82b43 | 138 | %attr(755,root,root) %{_bindir}/rhtv-config |
0c4a542b JB |
139 | %attr(755,root,root) %{_libdir}/librhtv.so |
140 | %{_libdir}/libtvfintl.a | |
141 | %{_includedir}/rhtvision | |
aac82b43 | 142 | %{_examplesdir}/%{name}-%{version} |
682ae7e7 JB |
143 | |
144 | %files static | |
145 | %defattr(644,root,root,755) | |
0c4a542b | 146 | %{_libdir}/librhtv.a |