]> git.pld-linux.org Git - packages/librhtv.git/blame - librhtv.spec
- converted to UTF-8
[packages/librhtv.git] / librhtv.spec
CommitLineData
682ae7e7 1Summary: Unix port of Borland TurboVision library
6039244a 2Summary(pl.UTF-8): Uniksowa wersja biblioteki TurboVision Borlanda
682ae7e7 3Name: librhtv
d548cb6f 4Version: 2.0.3
568f6097 5Release: 2
2e2c883b 6License: Borland, some modifications are BSD-like licensed (generally free)
682ae7e7 7Group: Libraries
82f5c103 8Source0: http://dl.sourceforge.net/tvision/rhtvision-%{version}.src.tar.gz
9# Source0-md5: b6129f5c510ba9d28d21c9575b7e1c75
aac82b43 10Patch0: %{name}-nolowlevelgarbage.patch
82f5c103 11Patch1: %{name}-gcc4.patch
aac82b43 12URL: http://tvision.sourceforge.net/
f18913d0 13BuildRequires: XFree86-devel
682ae7e7 14BuildRequires: gpm-devel
f18913d0 15BuildRequires: libstdc++-devel
682ae7e7 16BuildRequires: ncurses-devel
aac82b43 17BuildRequires: perl-base
682ae7e7
JB
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21Turbo Vision (or TV, for short) is a library that provides an
22application framework. With TV you can write a beautiful
23object-oriented character-mode user interface in a short time.
24
25TV is available in C++ and Pascal and is a product of Borland
26International. It was developed to run on MS-DOS systems, but today it
27is available for many other platforms (ported by independent
28programmers).
29
30This port is based on the Borland 2.0 version with fixes.
31
6039244a 32%description -l pl.UTF-8
682ae7e7 33Uniksowa wersja biblioteki TurboVision 2.0 Borlanda. TurboVision jest
6039244a 34obiektową biblioteką do okienkowych interfejsów użytkownika w trybie
682ae7e7
JB
35tekstowym.
36
37%package devel
38Summary: %{name} header files
6039244a 39Summary(pl.UTF-8): Pliki nagłówkowe %{name}
682ae7e7 40Group: Development/Libraries
7a105039 41Requires: %{name} = %{version}-%{release}
682ae7e7
JB
42
43%description devel
44rhtvision header files.
45
6039244a
JR
46%description devel -l pl.UTF-8
47Pliki nagłówkowe rhtvision.
682ae7e7
JB
48
49%package static
50Summary: Static %{name} libraries
6039244a 51Summary(pl.UTF-8): Biblioteki statyczne %{name}
682ae7e7 52Group: Development/Libraries
7a105039 53Requires: %{name}-devel = %{version}-%{release}
682ae7e7
JB
54
55%description static
56Static rhtvision libraries.
57
6039244a 58%description static -l pl.UTF-8
682ae7e7
JB
59Biblioteki 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
79rm -rf $RPM_BUILD_ROOT
aac82b43 80install -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
87cat > examples/rhide.env <<EOF
88RHIDE_GCC=gcc
f18913d0 89RHIDE_GXX=g++
682ae7e7
JB
90RHIDE_LD=gcc
91RHIDE_AR=ar
aac82b43
JB
92RHIDE_ARFLAGS=rcs
93RHIDE_OS_CFLAGS=%{rpmcflags} -Wall
94RHIDE_OS_CXXFLAGS=%{rpmcflags} -Wall
95RHIDE_STDINC=/usr/include /usr/X11R6/include /usr/include/ncurses
682ae7e7 96TVSRC=%{_includedir}/rhtvision
aac82b43 97RHIDE_OS_LIBS=stdc++
682ae7e7 98TVOBJ=
aac82b43
JB
99STDCPP_LIB=-lstdc++
100SHARED_CODE_OPTION=-fPIC
682ae7e7
JB
101EOF
102
103cd examples
aac82b43 104%{__perl} patchenv.pl
682ae7e7
JB
105cd ..
106
5511054f 107cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
aac82b43 108
d548cb6f 109%find_lang tvision%{version}
682ae7e7 110
682ae7e7
JB
111%clean
112rm -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
This page took 0.05218 seconds and 4 git commands to generate.