[meego-commits] 11232: New package Trunk/lirc

Ulf Hofemeier no_reply at build.meego.com
Thu Dec 23 16:50:16 UTC 2010


Hi,
Adding new package lirc in project Trunk. Please review and accept ASAP.

Justification for this new package:

Promotion from Trunk:Testing to Trunk

Thank You,
Ulf Hofemeier

[This message was auto-generated]

---

Request #11232:

  submit:   Trunk:Testing/lirc(r1)(update) -> Trunk/lirc


Message:
    Promotion from Trunk:Testing to Trunk

State:   new          2010-12-23T08:50:15 ulf
Comment: None


This is a NEW package in Trunk project.
The files in the new package:
lirc/
  |__  Makefile
  |__  lirc-0.8.7.tar.bz2
  |__  lirc.changes
  |__  lirc.init
  |__  lirc.spec
  |__  lirc.sysconfig
  |__  lirc.yaml

The content of the YAML file, lirc.yaml:
===================================================================
Name: lirc
Summary: The Linux Infrared Remote Control package
Version: 0.8.7
Release: 1
Group: System/Daemons
License: GPLv2+
URL: http://www.lirc.org/
Sources:
    - http://prdownloads.sourceforge.net/lirc/%{name}-%{version}.tar.bz2
    - "%{name}.init"
    - "%{name}.sysconfig"
Description: |
    LIRC is a package that allows you to decode and send infra-red and
    other signals of many (but not all) commonly used remote controls.
    Included applications include daemons which decode the received
    signals as well as user space applications which allow controlling a
    computer with a remote control.

Requires:
    - "%{name}-libs = %{version}-%{release}"
RequiresPreUn:
    - /sbin/chkconfig
RequiresPost:
    - /sbin/chkconfig
    - /sbin/ldconfig
RequiresPostUn:
    - /sbin/ldconfig
PkgConfigBR:
    - libusb
    - alsa
    - xt
PkgBR:
    - perl-devel
    - python-devel
    - automake
    - libtool
#    - libirman-devel
#    - libftdi-devel
#    - portaudio-devel >= 19
#    - svgalib-devel
#    - iguanaIR-devel
Configure: none
Builder: none
SubPackages:
    - Name: libs
      Summary: LIRC libraries
      Group: System/Libraries
      Description: |
          LIRC is a package that allows you to decode and send infra-red and
          other signals of many (but not all) commonly used remote controls.
          Included applications include daemons which decode the received
          signals as well as user space applications which allow controlling a
          computer with a remote control.  This package includes shared libraries
          that applications use to interface with LIRC.
      Obsoletes:
          - "%{name} < 0.8.3"

    - Name: doc
      Summary: LIRC documentation
      Group: Documentation
      Description: |
          LIRC is a package that allows you to decode and send infra-red and
          other signals of many (but not all) commonly used remote controls.
          Included applications include daemons which decode the received
          signals as well as user space applications which allow controlling a
          computer with a remote control.  This package contains LIRC
          documentation.

    - Name: remotes
      Summary: LIRC remote definitions
      Group: System/Daemons
      Description: |
          LIRC is a package that allows you to decode and send infra-red and
          other signals of many (but not all) commonly used remote controls.
          Included applications include daemons which decode the received
          signals as well as user space applications which allow controlling a
          computer with a remote control.  This package contains a collection
          of remote control configuration files.

    - Name: devel
      Summary: Development files for LIRC
      Group: Development/Libraries
      Description: |
          LIRC is a package that allows you to decode and send infra-red and
          other signals of many (but not all) commonly used remote controls.
          Included applications include daemons which decode the received
          signals as well as user space applications which allow controlling a
          computer with a remote control.  This package includes files for
          developing applications that use LIRC.
      Requires:
          - "%{name}-libs = %{version}-%{release}"


===================================================================


The content of the spec file, lirc.spec:
===================================================================
# 
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.21
# 
# >> macros
# << macros

Name:       lirc
Summary:    The Linux Infrared Remote Control package
Version:    0.8.7
Release:    1
Group:      System/Daemons
License:    GPLv2+
URL:        http://www.lirc.org/
Source0:    http://prdownloads.sourceforge.net/lirc/%{name}-%{version}.tar.bz2
Source1:    %{name}.init
Source2:    %{name}.sysconfig
Source100:  lirc.yaml
Requires:   %{name}-libs = %{version}-%{release}
Requires(preun): /sbin/chkconfig
Requires(post): /sbin/chkconfig
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires:  pkgconfig(libusb)
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(xt)
BuildRequires:  perl-devel
BuildRequires:  python-devel
BuildRequires:  automake
BuildRequires:  libtool


%description
LIRC is a package that allows you to decode and send infra-red and
other signals of many (but not all) commonly used remote controls.
Included applications include daemons which decode the received
signals as well as user space applications which allow controlling a
computer with a remote control.



%package libs
Summary:    LIRC libraries
Group:      System/Libraries
Requires:   %{name} = %{version}-%{release}
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig

%description libs
LIRC is a package that allows you to decode and send infra-red and
other signals of many (but not all) commonly used remote controls.
Included applications include daemons which decode the received
signals as well as user space applications which allow controlling a
computer with a remote control.  This package includes shared libraries
that applications use to interface with LIRC.


%package doc
Summary:    LIRC documentation
Group:      Documentation
Requires:   %{name} = %{version}-%{release}

%description doc
LIRC is a package that allows you to decode and send infra-red and
other signals of many (but not all) commonly used remote controls.
Included applications include daemons which decode the received
signals as well as user space applications which allow controlling a
computer with a remote control.  This package contains LIRC
documentation.


%package remotes
Summary:    LIRC remote definitions
Group:      System/Daemons
Requires:   %{name} = %{version}-%{release}

%description remotes
LIRC is a package that allows you to decode and send infra-red and
other signals of many (but not all) commonly used remote controls.
Included applications include daemons which decode the received
signals as well as user space applications which allow controlling a
computer with a remote control.  This package contains a collection
of remote control configuration files.


%package devel
Summary:    Development files for LIRC
Group:      Development/Libraries
Requires:   %{name} = %{version}-%{release}
Requires:   %{name}-libs = %{version}-%{release}

%description devel
LIRC is a package that allows you to decode and send infra-red and
other signals of many (but not all) commonly used remote controls.
Included applications include daemons which decode the received
signals as well as user space applications which allow controlling a
computer with a remote control.  This package includes files for
developing applications that use LIRC.



%prep
%setup -q -n %{name}-%{version}

# >> setup
# << setup

%build
# >> build pre
# << build pre



# >> build post
%configure \
--disable-static \
--disable-dependency-tracking \
--enable-sandboxed \
%if ! %{with x}
--without-x \
%endif
--with-syslog=LOG_DAEMON \
--with-driver=userspace
# make %{?_smp_mflags}
# parallel makes are currently busted, do single-threaded for now
make

# << build post
%install
rm -rf %{buildroot}
# >> install pre
# << install pre

# >> install post

make install DESTDIR=$RPM_BUILD_ROOT
install -pm 755 contrib/irman2lirc $RPM_BUILD_ROOT%{_bindir}
%if ! %{with svgalib}
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/smode2.1*
%endif
%if ! %{with x}
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/irxevent.1*
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/xmode2.1*
%endif

install -Dpm 644 doc/lirc.hwdb $RPM_BUILD_ROOT%{_datadir}/lirc/lirc.hwdb

install -Dpm 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/lirc
%{__perl} -pi -e \
's|/etc/|%{_sysconfdir}/|g ;
s|/var/|%{_localstatedir}/|g ;
s|/usr/sbin/|%{_sbindir}/|g' \
$RPM_BUILD_ROOT%{_initrddir}/lirc
install -Dpm 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/lirc

mkdir __docs
cp -pR doc contrib __docs
cd __docs
rm -rf doc/Makefile* doc/.libs doc/man* doc/lirc.hwdb
rm -rf contrib/irman2lirc contrib/lirc.* contrib/sendxevent.c
cd ..

install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/lirc
touch $RPM_BUILD_ROOT%{_sysconfdir}/lirc/lirc{d,md}.conf

install -dm 755 $RPM_BUILD_ROOT%{_localstatedir}/run/lirc/
touch $RPM_BUILD_ROOT%{_localstatedir}/run/lirc/lirc{d,m}

rm $RPM_BUILD_ROOT%{_libdir}/liblirc_client.la

# Put remote definitions in place
cp -ar remotes $RPM_BUILD_ROOT%{_datadir}/lirc-remotes

# << install post


%preun
# >> preun
if [ $1 -eq 0 ] ; then
%{_initrddir}/lirc stop >/dev/null || :
/sbin/chkconfig --del lirc || :
fi
# << preun

%post
# >> post
/sbin/chkconfig --add lirc
# If we're upgrading, move config files into their new location, if need be
if [ $1 -ge 2 ] ; then
if [ -e %{_sysconfdir}/lircd.conf -a ! -e %{_sysconfdir}/lirc/lircd.conf ]; then
mv %{_sysconfdir}/lircd.conf %{_sysconfdir}/lirc/lircd.conf
fi
if [ -e %{_sysconfdir}/lircmd.conf -a ! -e %{_sysconfdir}/lirc/lircmd.conf ]; then
mv %{_sysconfdir}/lircmd.conf %{_sysconfdir}/lirc/lircmd.conf
fi
fi
# << post




%post libs -p /sbin/ldconfig

%postun libs -p /sbin/ldconfig










%files
%defattr(-,root,root,-)
# >> files
%doc ANNOUNCE AUTHORS ChangeLog COPYING NEWS README TODO
%ghost %config(noreplace) %{_sysconfdir}/lirc/lirc*d.conf
%config(noreplace) %{_sysconfdir}/sysconfig/lirc
%{_initrddir}/lirc
%{_bindir}/*ir*
%{_bindir}/*mode2
%{_sbindir}/lirc*d
%dir %{_datadir}/lirc/
%{_datadir}/lirc/
%dir %{_localstatedir}/run/lirc/
%{_mandir}/man1/*ir*.1*
%{_mandir}/man1/*mode2*.1*
%{_mandir}/man8/lirc*d.8*
%ghost %{_localstatedir}/run/lirc/lirc*
# << files


%files libs
%defattr(-,root,root,-)
# >> files libs
%doc COPYING
%{_libdir}/liblirc_client.so.*
# << files libs

%files doc
%defattr(-,root,root,-)
# >> files doc
%doc __docs/* COPYING
# << files doc

%files remotes
%defattr(-,root,root,-)
# >> files remotes
%dir %{_datadir}/lirc-remotes
%{_datadir}/lirc-remotes/*
# << files remotes

%files devel
%defattr(-,root,root,-)
# >> files devel
%{_includedir}/lirc/
%{_libdir}/liblirc_client.so
# << files devel


===================================================================




More information about the MeeGo-commits mailing list