]> git.pld-linux.org Git - SPECS.git/blob - yard2tools.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / yard2tools.spec
1 #
2 # Conditional build:
3 %bcond_without  lirc    # LIRC driver
4 #
5 Summary:        Infra-red remote control support for Y.A.R.D.2 hardware
6 Summary(pl.UTF-8):      Obsługa pilotów na podczerwień Y.A.R.D.2
7 Name:           yard2tools
8 Version:        1.2.5
9 Release:        1
10 License:        GPL v2+
11 Group:          Applications/System
12 Source0:        https://launchpad.net/~yard2team/+archive/ubuntu/test/+files/%{name}_%{version}.orig.tar.gz
13 # Source0-md5:  91427839a1aad9bab65a163b1cbec951
14 # from git://git.assembla.com/yard2srvd.git (master on 20171026)
15 Patch0:         %{name}-lircd_094.patch
16 Patch1:         %{name}-lirc.patch
17 URL:            https://app.assembla.com/spaces/yard2srvd/git/source
18 BuildRequires:  libbsd-devel
19 BuildRequires:  libusb-compat-devel
20 %{?with_lirc:BuildRequires:     lirc-devel >= 0.9.4}
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 This package provides the daemon and some utilities to support
25 infra-red remote controls with the Y.A.R.D.2 type of hardware under
26 Linux.
27
28 %description -l pl.UTF-8
29 Ten pakiet zawiera demona i narzędzia do obsługi pilotów na
30 podczerwień typu Y.A.R.D.2 pod Linuksem.
31
32 %package vdr
33 Summary:        Infra-red remote control support for Y.A.R.D.2 hardware in VDR
34 Summary(pl.UTF-8):      Obsługa pilotów na podczerwień Y.A.R.D.2 w programie VDR
35 Group:          Applications
36 Requires:       %{name} = %{version}-%{release}
37 Requires:       vdr
38
39 %description vdr
40 Infra-red remote control support for Y.A.R.D.2 hardware in VDR.
41
42 %description vdr -l pl.UTF-8
43 Obsługa pilotów na podczerwień Y.A.R.D.2 w programie VDR.
44
45 %package -n lirc-plugin-yard2
46 Summary:        Y.A.R.D.2 driver for LIRC
47 Summary(pl.UTF-8):      Sterownik do sprzętu Y.A.R.D.2 dla LIRC-a
48 Group:          Libraries
49 Requires:       lirc >= 0.9.4
50
51 %description -n lirc-plugin-yard2
52 Y.A.R.D.2 driver for LIRC.
53
54 %description -n lirc-plugin-yard2 -l pl.UTF-8
55 Sterownik do sprzętu Y.A.R.D.2 dla LIRC-a.
56
57 %prep
58 %setup -q
59 %patch0 -p1
60 %patch1 -p1
61
62 %{__rm} inih/extra/*.a
63
64 %build
65 %configure
66 %{__make}
67
68 %if %{with lirc}
69 %{__make} -C lirc/lircd_094 \
70         CC="%{__cc}" \
71         CFLAGS="%{rpmcflags} -fPIC" \
72         LDFLAGS="%{rpmldflags}"
73 %endif
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77
78 %{__make} install \
79         DESTDIR=$RPM_BUILD_ROOT
80
81 %if %{with lirc}
82 %{__make} -C lirc/lircd_094 install \
83         DESTDIR=$RPM_BUILD_ROOT
84 %endif
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %files
90 %defattr(644,root,root,755)
91 %doc Readme.txt ChangeLog 
92 %attr(755,root,root) %{_bindir}/lirctest
93 %attr(755,root,root) %{_bindir}/yard2config
94 %attr(755,root,root) %{_bindir}/yard2flash
95 %attr(755,root,root) %{_bindir}/yard2lcdtest
96 %attr(755,root,root) %{_bindir}/yard2record
97 %attr(755,root,root) %{_bindir}/yard2srvd
98 %attr(755,root,root) %{_bindir}/yard2wakeup
99 %dir %{_sysconfdir}/yard2
100 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yard2/yard2tools.cfg
101 %{systemdunitdir}/yard2.service
102 /lib/udev/rules.d/60-usb-yard2.rules
103
104 %files vdr
105 %defattr(644,root,root,755)
106 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vdr/vdr-addon-yard2wakeup.conf
107 %dir %{_datadir}/vdr
108 %dir %{_datadir}/vdr/shutdown-hooks
109 %{_datadir}/vdr/shutdown-hooks/S90.yard2-wakeup
110
111 %if %{with lirc}
112 %files -n lirc-plugin-yard2
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_libdir}/lirc/plugins/yard2.so
115 %{_datadir}/lirc/configs/yard2.conf
116 %endif
This page took 0.380973 seconds and 3 git commands to generate.