]> git.pld-linux.org Git - SPECS.git/blob - lirccd.spec
SPECS updated Sat 31 Jul 21:27:02 CEST 2021
[SPECS.git] / lirccd.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static libraries
4 #
5 Summary:        LIRC Client Daemon
6 Summary(pl.UTF-8):      LIRCCD - demon kliencki LIRC
7 Name:           lirccd
8 Version:        0.9.1
9 Release:        1
10 License:        GPL v2+
11 Group:          Libraries
12 Source0:        http://www.dolda2000.com/~fredrik/lirccd/%{name}-%{version}.tar.gz
13 # Source0-md5:  1a5f65094b5738117dfde263b7f90ef2
14 Patch0:         %{name}-libc.patch
15 URL:            http://www.dolda2000.com/~fredrik/lirccd/
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 The LIRC Client Daemon connects to the LIRC daemon, parses messages
20 received, and executes C-like scripts from that data (for more
21 information, see the README file that comes with the distribution).
22
23 The LIRC Client Daemon provides several advantages compared to LIRC's
24 own client control scheme. First, it can do things itself, making
25 itself useful even without other clients. Second, it "synchronizes"
26 all clients, so to speak. Since all clients connect to lirccd and
27 receive commands from it, there is no chance that client processes
28 that were started at different times enter different states. Lirccd
29 also provides a more advanced, hierarchical state system instead of
30 the linear system used in the old config scheme.
31
32 %description -l pl.UTF-8
33 Demon kliencki LIRC (LIRCCD) łączy się z demonem LIRC, analizuje
34 otrzymane komunikaty i wywołuje na podstawie tych danych skrypty w
35 stylu C (więcej informacji - nich można znaleźć w pliku README).
36
37 Demon kliencki LIRC ma kilka zalet w porównaniu ze schematem
38 sterowania klienckiego LIRC. Po pierwsze, może sam wykonywać pewne
39 czynności, przez co jest przydatny nawet bez innych klientów. Po
40 drugie, "synchronizuje" wszystkich klientów. Ponieważ wszyscy
41 klienci łączą się z lirccd i odbierają polecenia od niego, nie ma
42 możliwości, że procesy klienckie uruchomione o różnym czasie wejdą
43 w różne stany. Lirccd zapewnia także bardziej rozbudowany system
44 stanów zamiast systemu liniowego w starym schemacie konfiguracji.
45
46 %package devel
47 Summary:        Header files for LIRC client library
48 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki klienta LIRC
49 Group:          Development/Libraries
50 Requires:       %{name} = %{version}-%{release}
51
52 %description devel
53 Header files for LIRC client library.
54
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe biblioteki klienta LIRC.
57
58 %package static
59 Summary:        Static LIRC client library
60 Summary(pl.UTF-8):      Statyczna biblioteka klienta LIRC
61 Group:          Development/Libraries
62 Requires:       %{name}-devel = %{version}-%{release}
63
64 %description static
65 Static LIRC client library.
66
67 %description static -l pl.UTF-8
68 Statyczna biblioteka klienta LIRC.
69
70 %prep
71 %setup -q
72 %patch0 -p1
73
74 %build
75 %configure \
76         %{!?with_static_libs:--disable-static}
77 %{__make}
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81
82 %{__make} install \
83         DESTDIR=$RPM_BUILD_ROOT
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %post   -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
90
91 %files
92 %defattr(644,root,root,755)
93 %doc README TODO lirccrc*.example
94 %attr(755,root,root) %{_bindir}/lirccd
95 %attr(755,root,root) %{_libdir}/liblirc_client.so.*.*.*
96 %attr(755,root,root) %ghost %{_libdir}/liblirc_client.so.0
97
98 %files devel
99 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_libdir}/liblirc_client.so
101 %{_libdir}/liblirc_client.la
102 %{_includedir}/lirc
103
104 %if %{with static_libs}
105 %files static
106 %defattr(644,root,root,755)
107 %{_libdir}/liblirc_client.a
108 %endif
This page took 0.309642 seconds and 3 git commands to generate.