1 Summary: linSerial class - simple, basic framework for managing a serial port
2 Summary(pl.UTF-8): Klasa linSerial - prosty, podstawowy szkielet do zarządzania portem szeregowym
7 Group: Development/Libraries
8 Source0: http://linas.org/serial/%{name}-%{version}.tar.gz
9 # Source0-md5: ca410829859ba722af2c710808b42b82
10 URL: http://linas.org/serial/
11 BuildRequires: libstdc++-devel
12 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 The linSerial class provides a simple, basic framework for managing a
16 serial port. The design of this class is focused on making serial port
17 easy to use, hiding the complexity of the full Linux/Unix termios
18 interface. The goal is to make writing programs for modems, serial
19 printers and other serial-attached devices easy for the novice serial
22 The package includes a flexible error-reporting class.
24 %description -l pl.UTF-8
25 Klasa linSerial dostarcza prosty, podstawowy szkielet do zarządzania
26 portem szeregowym. Projekt tej klasy skupia się na uczynieniu portu
27 szeregowego łatwym w użyciu i ukryciu złożoności pełnego linuksowego
28 i uniksowego interfejsu termios. Celem jest ułatwienie początkującym
29 pisania programów dla modemów, drukarek szeregowych i innych urządzeń
30 podłączanych w ten sposób.
32 Pakiet zawiera także elastyczną klasę do raportowania błędów.
35 %setup -q -n %{name}-0.1
38 # Makefile doesn't allow passing necessary options
39 %{__cxx} %{rpmcflags} -c errlog.C
40 %{__cxx} %{rpmcflags} -c serial.C
41 %{__cxx} %{rpmcflags} -c demo.C
42 ar vru libserial.a errlog.o serial.o
43 %{__cxx} %{rpmldflags} -o demo demo.o libserial.a
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/libserial}
49 install libserial.a $RPM_BUILD_ROOT%{_libdir}
50 install errlog.h serial.h $RPM_BUILD_ROOT%{_includedir}/libserial
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %{_libdir}/libserial.a
59 %{_includedir}/libserial