-Summary: Bornalnd CONIO library port for Unix
-Summary(pl): Port biblioteki Borland CONIO dla Unixa
+Summary: Borland CONIO library port for Unix
+Summary(pl.UTF-8): Port biblioteki Borland CONIO dla Uniksa
Name: UConio
Version: 1.0.9
-Release: 1
+Release: 3
License: GPL
Group: Libraries
-Group(de): Libraries
-Group(es): Bibliotecas
-Group(fr): Librairies
-Group(pl): Biblioteki
Source0: http://crazylovetrain.hypermart.net/files/uconio/%{name}-%{version}-PR.tar.gz
+# Source0-md5: 08a6caac1daa6ab4cd27804ce99a79c5
Patch0: %{name}-make.patch
+Patch1: %{name}-va_end.patch
URL: http://crazylovetrain.hypermart.net/projects.htm
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%ifarch ppc
+%define optflags -O0
+%endif
+
%description
UConio is a Unix port of the Borland Console Input/Output Library
(CONIO) for DOS, and includes some new features of its own.
-%description -l pl
-UConio jest Unixowym portem biblioteki Borland Console Input/Output
-(CONIO) dla DOSa oraz dodatkowo dodano nowe funkcje.
+%description -l pl.UTF-8
+UConio jest uniksowym portem biblioteki Borland Console Input/Output
+(CONIO) dla DOS-a, zawiera też trochę dodanych, nowych funkcji.
%package devel
-Summary: Header files and development documentation for %{name}
-Summary(pl): Pliki nag³ówkowe i dokumentacja do %{name}
+Summary: Header files and development documentation for UConio
+Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do UConio
Group: Development/Libraries
-Group(de): Entwicklung/Libraries
-Group(fr): Development/Librairies
-Group(pl): Programowanie/Biblioteki
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
%description devel
-Header files and development documentation for %{name}.
+Header files and development documentation for UConio.
-%description -l pl devel
-Pliki nag³ówkowe i dokumentacja do %{name}.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe i dokumentacja do UConio.
%prep
%setup -q -n %{name}-%{version}-PR
-%patch -p1
+%patch0 -p1
+%patch1 -p0
+
+bzip2 -d man/*.bz2
%build
%{__make} "CFLAGS=%{rpmcflags}"
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_libdir},%{_mandir}/man3,%{_includedir}}
-bzip2 -d man/*.bz2
+install bin/libuconio.so.* $RPM_BUILD_ROOT%{_libdir}
+install include/*.h $RPM_BUILD_ROOT%{_includedir}
+install man/*.3 $RPM_BUILD_ROOT%{_mandir}/man3
-install bin/libuconio.so.* $RPM_BUILD_ROOT%{_libdir}
(cd $RPM_BUILD_ROOT%{_libdir}; ln -s libuconio.so.* libuconio.so)
-install include/*.h $RPM_BUILD_ROOT%{_includedir}
-install man/*.3 $RPM_BUILD_ROOT%{_mandir}/man3
-
-gzip -9nf tutorial/txt/*.txt doc/{AUTHOR,BUGS,ChangeLog,HELPERS,README}
-
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
%files
%defattr(644,root,root,755)
-%doc doc/*.gz
+%doc doc/{AUTHOR,BUGS,ChangeLog,HELPERS,README}
%attr(755,root,root) %{_libdir}/lib*.so.*
%files devel
%defattr(644,root,root,755)
-%doc tutorial/*/*.gz
+%doc tutorial/txt/*.txt
%attr(755,root,root) %{_libdir}/lib*.so
%{_mandir}/man3/*
%{_includedir}/*.h