commit b0432ebda15dc8e2d7ddcf47bfc1c3d4fd538024
Author: Jakub Bogusz <[email protected]>
Date:   Thu Oct 22 19:44:14 2015 +0200

    - updated to 0.5.0

 libirman.spec | 47 ++++++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 44 insertions(+), 3 deletions(-)
---
diff --git a/libirman.spec b/libirman.spec
index 23c9554..db80640 100644
--- a/libirman.spec
+++ b/libirman.spec
@@ -1,17 +1,24 @@
+#
+# Conditional build:
+%bcond_with    lirc    # LIRC driver (for LIRC > 0.9.3)
+
 Summary:       libirman - accessing IRMAN hardware
 Summary(pl.UTF-8):     libirman - dostęp do urządzeń IRMAN
 Name:          libirman
-Version:       0.4.6
+Version:       0.5.0
 Release:       1
 License:       LGPL v2 (library), GPL v2 (utility)
 Group:         Libraries
-Source0:       http://downloads.sourceforge.net/lirc/%{name}-%{version}.tar.bz2
-# Source0-md5: 11e8fe44c78ee615efd4d13b6cee1626
+Source0:       http://downloads.sourceforge.net/lirc/%{name}-%{version}.tar.gz
+# Source0-md5: 871607ef62183a3314e8ec47aadbe578
 Patch0:                %{name}-pc.patch
 URL:           http://www.lirc.org/
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake
 BuildRequires: libtool
+# lirc-driver
+%{?with_lirc:BuildRequires:    lirc-devel > 0.9.3}
+BuildRequires: pkgconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -46,6 +53,29 @@ Static libirman library.
 %description static -l pl.UTF-8
 Statyczna biblioteka libirman.
 
+%package -n lirc-plugin-irman
+Summary:       IRMAN plugin for LIRC
+Summary(pl.UTF-8):     Wtyczka IRMAN dla LIRC-a
+Group:         Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      lirc > 0.9.3
+
+%description -n lirc-plugin-irman
+IRMAN plugin for LIRC.
+
+The irman driver is originally developed for the irman devices, see
+<http://www.intolect.com/irmandetail.htm>. These are nowadays
+discontinued. However, some modern hardware (notably the irtoy) is
+able to emulate the irman protocol.
+
+%description -n lirc-plugin-irman -l pl.UTF-8
+Wtyczka IRMAN dla LIRC-a.
+
+Sterownik irman pierwotnie powstał dla urządzeń irman (szczegóły na
+stronie <http://www.intolect.com/irmandetail.htm>). Urządzenia te nie
+są już produkowane, jednak niektóre nowsze urządzenia (np. irtoy)
+potrafią emulować protokół irman.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -67,6 +97,9 @@ rm -rf $RPM_BUILD_ROOT
 
 # obsoleted by pkg-config
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libirman.la
+%if %{with lirc}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/lirc/plugins/irman.la
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -91,3 +124,11 @@ rm -rf $RPM_BUILD_ROOT
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libirman.a
+
+%if %{with lirc}
+%files -n lirc-plugin-irman
+%defattr(644,root,root,755)
+%doc lirc-plugin/irman.html
+%attr(755,root,root) %{_libdir}/lirc/plugins/irman.so
+%{_datadir}/lirc/configs/irman.conf
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libirman.git/commitdiff/b0432ebda15dc8e2d7ddcf47bfc1c3d4fd538024

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to