]>
Commit | Line | Data |
---|---|---|
2c24e939 | 1 | Summary: Borland CONIO library port for Unix |
f5791899 | 2 | Summary(pl.UTF-8): Port biblioteki Borland CONIO dla Uniksa |
61c081b9 AM |
3 | Name: UConio |
4 | Version: 1.0.9 | |
5ea81ad8 | 5 | Release: 3 |
61c081b9 AM |
6 | License: GPL |
7 | Group: Libraries | |
61c081b9 | 8 | Source0: http://crazylovetrain.hypermart.net/files/uconio/%{name}-%{version}-PR.tar.gz |
9444542a | 9 | # Source0-md5: 08a6caac1daa6ab4cd27804ce99a79c5 |
61c081b9 | 10 | Patch0: %{name}-make.patch |
8dd84a7f | 11 | Patch1: %{name}-va_end.patch |
61c081b9 AM |
12 | URL: http://crazylovetrain.hypermart.net/projects.htm |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
17d9141b | 15 | %ifarch ppc |
16 | %define optflags -O0 | |
17 | %endif | |
18 | ||
61c081b9 AM |
19 | %description |
20 | UConio is a Unix port of the Borland Console Input/Output Library | |
21 | (CONIO) for DOS, and includes some new features of its own. | |
22 | ||
a3cdadf9 | 23 | %description -l pl.UTF-8 |
a5dc66db | 24 | UConio jest uniksowym portem biblioteki Borland Console Input/Output |
a3cdadf9 | 25 | (CONIO) dla DOS-a, zawiera też trochę dodanych, nowych funkcji. |
61c081b9 AM |
26 | |
27 | %package devel | |
9890754d | 28 | Summary: Header files and development documentation for UConio |
f5791899 | 29 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do UConio |
61c081b9 | 30 | Group: Development/Libraries |
97a9f630 | 31 | Requires: %{name} = %{version}-%{release} |
61c081b9 AM |
32 | |
33 | %description devel | |
9890754d | 34 | Header files and development documentation for UConio. |
61c081b9 | 35 | |
a3cdadf9 JR |
36 | %description devel -l pl.UTF-8 |
37 | Pliki nagłówkowe i dokumentacja do UConio. | |
61c081b9 AM |
38 | |
39 | %prep | |
40 | %setup -q -n %{name}-%{version}-PR | |
8dd84a7f | 41 | %patch0 -p1 |
42 | %patch1 -p0 | |
61c081b9 | 43 | |
17d9141b | 44 | bzip2 -d man/*.bz2 |
61c081b9 | 45 | |
17d9141b | 46 | %build |
815bdaca MM |
47 | %{__make} "CFLAGS=%{rpmcflags}" |
48 | ||
61c081b9 AM |
49 | %install |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_mandir}/man3,%{_includedir}} | |
52 | ||
17d9141b | 53 | install bin/libuconio.so.* $RPM_BUILD_ROOT%{_libdir} |
54 | install include/*.h $RPM_BUILD_ROOT%{_includedir} | |
55 | install man/*.3 $RPM_BUILD_ROOT%{_mandir}/man3 | |
61c081b9 | 56 | |
61c081b9 | 57 | (cd $RPM_BUILD_ROOT%{_libdir}; ln -s libuconio.so.* libuconio.so) |
61c081b9 | 58 | |
61c081b9 AM |
59 | %clean |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
fc5e3616 | 62 | %post -p /sbin/ldconfig |
2c24e939 JB |
63 | %postun -p /sbin/ldconfig |
64 | ||
61c081b9 AM |
65 | %files |
66 | %defattr(644,root,root,755) | |
fc1fe1e9 | 67 | %doc doc/{AUTHOR,BUGS,ChangeLog,HELPERS,README} |
61c081b9 AM |
68 | %attr(755,root,root) %{_libdir}/lib*.so.* |
69 | ||
70 | %files devel | |
71 | %defattr(644,root,root,755) | |
fc1fe1e9 | 72 | %doc tutorial/txt/*.txt |
61c081b9 AM |
73 | %attr(755,root,root) %{_libdir}/lib*.so |
74 | %{_mandir}/man3/* | |
75 | %{_includedir}/*.h |