summaryrefslogtreecommitdiff
path: root/redhat/rules
blob: c8e923fa4567fe8e7b6807c3ee883b7ed7ccc53c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$Summary = "Irbox, an Ivy driver for Irman infra-red remote controls";
$Name = "irbox";
$Copyright = "GPL";
$Vendor = "Centre d'Etudes de la Navigation Aerienne";
$Distribution = "Ivy";
$Group = "System Environment/Daemons";
$Url = "http://www.tls.cena.fr/products/ivy";
$BuildArchitectures = "i386";
$BuildRoot = "/var/tmp/irbox-buildroot/";
$Requires = "ivy-c";
$Description = "Irbox is an Ivy driver for Irman infra-red remote controls
(see http://www.evation.com/irman/ for details about the Irman product).
Irbox comes with a database of the codes emitted by a number of TV, VCR and
cable TV infra-red remote controls, and emits explicit textual messages on an
Ivy bus every time a button is depressed. Remote controls of different types
can be used concurrently, and are distinguished by Irbox.";

$Install = "rm -rf \$RPM_BUILD_ROOT
cd src
make PREFIX=\$RPM_BUILD_ROOT install
cd ..
mkdir -p \$RPM_BUILD_ROOT/etc/rc.d/init.d
install -m 755 redhat/irbox.init \$RPM_BUILD_ROOT/etc/rc.d/init.d/irbox
install -m 644 redhat/irbox.conf \$RPM_BUILD_ROOT/etc
find \$RPM_BUILD_ROOT -type f -print | sed \"s\@^\$RPM_BUILD_ROOT\@\@g\" > $Name-\%{version}-filelist
find \$RPM_BUILD_ROOT -type l -print | sed \"s\@^\$RPM_BUILD_ROOT\@\@g\" >> $Name-\%{Version}-filelist";
$Post = "/sbin/chkconfig --add irbox";
$Preun = "/sbin/chkconfig --del irbox";