]> git.pld-linux.org Git - SPECS.git/blob - libserial.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / libserial.spec
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
3 Name:           libserial
4 Version:        0.1.1
5 Release:        1
6 License:        GPL
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)
13
14 %description
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
20 port programmer.
21
22 The package includes a flexible error-reporting class.
23
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.
31
32 Pakiet zawiera także elastyczną klasę do raportowania błędów.
33
34 %prep
35 %setup -q -n %{name}-0.1
36
37 %build
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
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/libserial}
48
49 install libserial.a $RPM_BUILD_ROOT%{_libdir}
50 install errlog.h serial.h $RPM_BUILD_ROOT%{_includedir}/libserial
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc README
58 %{_libdir}/libserial.a
59 %{_includedir}/libserial
This page took 0.578282 seconds and 3 git commands to generate.