rpms/lirc/devel .cvsignore, 1.10, 1.11 lirc.spec, 1.15, 1.16 sources, 1.10, 1.11

Ville Skytta (scop) fedora-extras-commits at redhat.com
Sun Jul 2 09:02:46 UTC 2006


Author: scop

Update of /cvs/extras/rpms/lirc/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16768

Modified Files:
	.cvsignore lirc.spec sources 
Log Message:
* Sat Jul  1 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.8.1-0.1.pre1
- 0.8.1pre1.
- Add rpmbuild options for enabling/disabling ALSA, portaudio and/or X
  support, ALSA and X enabled by default, portaudio not.
- Split most of the documentation to -doc subpackage.
- Install irman2lirc as non-doc.



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/lirc/devel/.cvsignore,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- .cvsignore	21 Jan 2006 15:13:25 -0000	1.10
+++ .cvsignore	2 Jul 2006 09:02:42 -0000	1.11
@@ -1 +1 @@
-lirc-0.8.0.tar.bz2
+lirc-0.8.1pre1.tar.bz2


Index: lirc.spec
===================================================================
RCS file: /cvs/extras/rpms/lirc/devel/lirc.spec,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- lirc.spec	14 Feb 2006 20:29:59 -0000	1.15
+++ lirc.spec	2 Jul 2006 09:02:42 -0000	1.16
@@ -4,19 +4,25 @@
 # - move to -devel (?): irw, *mode2, others?
 #   note: xmode2 inflicts a dependency on X, and smode2 on svgalib
 #   - does someone actually need xmode2/smode2 for something?
-# - bcond_without for alsa, portaudio, x?
+# - split into -libs and -utils (daemons in main package)?
 # - don't run as root and/or create dedicated group, reduce fifo permissions?
 # - Fixup /etc/lirc(m)d.conf %%ghost'ification, existence after erase etc.
 
+%bcond_without  alsa
+%bcond_with     portaudio
+%bcond_with     svgalib
+%bcond_without  x
+
 Name:           lirc
-Version:        0.8.0
-Release:        3%{?dist}
+Version:        0.8.1
+Release:        0.1.pre1%{?dist}
 Summary:        The Linux Infrared Remote Control package
 
 Group:          System Environment/Daemons
 License:        GPL
 URL:            http://www.lirc.org/
-Source0:        http://download.sourceforge.net/lirc/%{name}-%{version}.tar.bz2
+#Source0:        http://download.sourceforge.net/lirc/%{name}-%{version}.tar.bz2
+Source0:        http://lirc.sourceforge.net/software/snapshots/%{name}-%{version}pre1.tar.bz2
 Source1:        %{name}.init
 Source2:        %{name}.sysconfig
 Patch0:         %{name}-optflags.patch
@@ -24,11 +30,19 @@
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  %{__perl}
-BuildRequires:  alsa-lib-devel
-BuildRequires:  libXt-devel
 BuildRequires:  libusb-devel
+%if %{with alsa}
+BuildRequires:  alsa-lib-devel
+%endif
+%if %{with portaudio}
 BuildRequires:  portaudio-devel >= 18
-Build%{?_with_svgalib:Requires}%{!?_with_svgalib:Conflicts}: svgalib-devel
+%endif
+%if %{with svgalib}
+BuildRequires:  svgalib-devel
+%endif
+%if %{with x}
+BuildRequires:  libXt-devel
+%endif
 Requires(post): /sbin/chkconfig
 Requires(post): /sbin/ldconfig
 Requires(preun): /sbin/chkconfig
@@ -47,15 +61,44 @@
 Requires:       %{name} = %{version}-%{release}
 
 %description    devel
-%{summary}.
+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.
+
+%package        doc
+Summary:        LIRC documentation
+Group:          Documentation
+
+%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 and a collection of remote control configuration files.
 
 
 %prep
-%setup -q
+%setup -q -n %{name}-%{version}pre1
 %patch0 -p1
 %patch1 -p1
 chmod 644 contrib/*
-sed -i -e 's/\r//' remotes/{imon,hercules}/lircd.conf*
+sed -i -e 's|/usr/local/etc/|/etc/|' contrib/irman2lirc
+sed -i -e 's/\r//' remotes/hercules/lircd.conf.smarttv_stereo
+sed -i -e 's|/sbin/init.d/lircd|%{_initrddir}/lirc|' contrib/lircs
+# *cough* I wish there was a good way to disable alsa/portaudio/svgalib...
+%if ! %{with alsa}
+sed -i -e 's/asoundlib.h/ALSA_DISABLED/g' configure*
+%endif
+%if ! %{with portaudio}
+sed -i -e 's/portaudio.h/PORTAUDIO_DISABLED/g' configure*
+%endif
+%if ! %{with svgalib}
+sed -i -e 's/vga.h/SVGALIB_DISABLED/g' configure*
+%endif
 touch -r acconfig.h aclocal.m4 configure.in # avoid autofoo re-run
 
 
@@ -64,6 +107,9 @@
   --disable-static \
   --disable-dependency-tracking \
   --enable-sandboxed \
+%if ! %{with x}
+  --without-x \
+%endif
   --with-syslog=LOG_DAEMON \
   --with-driver=userspace
 make %{?_smp_mflags}
@@ -73,7 +119,14 @@
 rm -rf $RPM_BUILD_ROOT __docs
 
 make install DESTDIR=$RPM_BUILD_ROOT
-%{!?_with_svgalib:rm $RPM_BUILD_ROOT%{_mandir}/man1/smode2.1*}
+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 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/lirc
 %{__perl} -pi -e \
@@ -86,7 +139,8 @@
 mkdir __docs
 cp -pR doc contrib __docs
 cd __docs
-rm -rf doc/Makefile* doc/.libs doc/man* contrib/lirc.* contrib/sendxevent.c
+rm -rf doc/Makefile* doc/.libs doc/man*
+rm -rf contrib/irman2lirc contrib/lirc.* contrib/sendxevent.c
 cd ..
 
 touch $RPM_BUILD_ROOT%{_sysconfdir}/lirc{d,md}.conf
@@ -120,7 +174,7 @@
 
 %files
 %defattr(-,root,root,-)
-%doc ANNOUNCE AUTHORS ChangeLog COPYING NEWS README TODO remotes __docs/*
+%doc ANNOUNCE AUTHORS ChangeLog COPYING NEWS README TODO
 %ghost %config(noreplace) %{_sysconfdir}/lirc*d.conf
 %config(noreplace) %{_sysconfdir}/sysconfig/lirc
 %{_initrddir}/lirc
@@ -138,8 +192,19 @@
 %{_includedir}/lirc/
 %{_libdir}/liblirc_client.so
 
+%files doc
+%defattr(-,root,root,-)
+%doc __docs/* remotes/
+
 
 %changelog
+* Sat Jul  1 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.8.1-0.1.pre1
+- 0.8.1pre1.
+- Add rpmbuild options for enabling/disabling ALSA, portaudio and/or X
+  support, ALSA and X enabled by default, portaudio not.
+- Split most of the documentation to -doc subpackage.
+- Install irman2lirc as non-doc.
+
 * Tue Feb 14 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.8.0-3
 - Avoid standard rpaths on lib64 archs.
 


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/lirc/devel/sources,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- sources	21 Jan 2006 15:13:25 -0000	1.10
+++ sources	2 Jul 2006 09:02:42 -0000	1.11
@@ -1 +1 @@
-0bf28bf82c7766a462f90927b6bf3af1  lirc-0.8.0.tar.bz2
+acb6340078bde9628f5ae848fec0583c  lirc-0.8.1pre1.tar.bz2




More information about the fedora-extras-commits mailing list