From d14f5d1c8529dc9def5aad0ccc84b34383bcd0353b2ac5496aa57a020ce01e37 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Tue, 21 Feb 2017 18:57:30 +0000 Subject: [PATCH] - Build lirc plugin - Rename common and utils subpackages OBS-URL: https://build.opensuse.org/package/show/hardware/libirman?expand=0&rev=11 --- libirman.changes | 6 ++++++ libirman.spec | 37 ++++++++++++++++++++++++++++--------- 2 files changed, 34 insertions(+), 9 deletions(-) diff --git a/libirman.changes b/libirman.changes index 89ed752..b43e8fa 100644 --- a/libirman.changes +++ b/libirman.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 21 18:56:28 UTC 2017 - mpluskal@suse.com + +- Build lirc plugin +- Rename common and utils subpackages + ------------------------------------------------------------------- Sun Nov 27 22:21:22 UTC 2016 - jengelh@inai.de diff --git a/libirman.spec b/libirman.spec index 5f4e24e..08692a7 100644 --- a/libirman.spec +++ b/libirman.spec @@ -1,7 +1,7 @@ # # spec file for package libirman # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,7 +26,7 @@ Group: Hardware/Other Url: https://sourceforge.net/projects/libirman/ Source0: https://downloads.sf.net/libirman/libirman-%{version}.tar.gz BuildRequires: pkgconfig -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: pkgconfig(lirc) %description libirman is a general purpose library for programs to use in order to @@ -42,24 +42,37 @@ Requires: %{name}-common = %{version} libirman is a general purpose library for programs to use in order to receive infrared signals via irman-compatible hardware. -%package common +%package -n irman-common Summary: Common files for %{name} License: LGPL-2.0+ Group: Development/Languages/C and C++ Conflicts: %{name}%{sover} < %{version} +Provides: libirman-common = %{version} +Obsoletes: libirman-common < %{version} -%description common +%description -n irman-common Common files for %{name}. -%package utils +%package -n irman-utils Summary: Library for irman access License: GPL-2.0+ Group: Hardware/Other -Requires: %{name}-common = %{version} +Requires: irman-common = %{version} +Provides: libirman-utils = %{version} +Obsoletes: libirman-utils < %{version} -%description utils +%description -n irman-utils Utilities from %{name} from the lirc project. +%package -n lirc-irman +Summary: Lirc plugin for irman +License: GPL-2.0+ +Group: Hardware/Other +Requires: irman-common = %{version} + +%description -n lirc-irman +Lirc plugin for irman. + %package devel Summary: Development files for %{name} License: GPL-2.0+ @@ -88,7 +101,7 @@ rm -rf %{buildroot}%{_datadir} %post -n %{name}%{sover} -p /sbin/ldconfig %postun -n %{name}%{sover} -p /sbin/ldconfig -%files utils +%files -n irman-utils %defattr(-,root,root) %doc COPYING %{_bindir}/test_func @@ -102,10 +115,16 @@ rm -rf %{buildroot}%{_datadir} %defattr(-,root,root,-) %{_libdir}/%{name}.so.%{sover}* -%files common +%files -n irman-common %defattr(-,root,root) %config %{_sysconfdir}/irman.conf +%files -n lirc-irman +%defattr(-,root,root) +%dir %{_libdir}/lirc +%dir %{_libdir}/lirc/plugins +%{_libdir}/lirc/plugins/irman.so + %files devel %defattr(-,root,root) %doc COPYING COPYING.lib NEWS README