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