Accepting request 476991 from hardware

- Make building of lirc plugin conditional (boo#1027687)

OBS-URL: https://build.opensuse.org/request/show/476991
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libirman?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2017-03-11 14:18:10 +00:00 committed by Git OBS Bridge
commit bc86c9f2fa
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Mar 5 10:03:04 UTC 2017 - mpluskal@suse.com
- Make building of lirc plugin conditional (boo#1027687)
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Feb 21 18:56:28 UTC 2017 - mpluskal@suse.com Tue Feb 21 18:56:28 UTC 2017 - mpluskal@suse.com

View File

@ -16,6 +16,7 @@
# #
%bcond_with lirc_plugin
%define sover 0 %define sover 0
Name: libirman Name: libirman
Version: 0.5.2 Version: 0.5.2
@ -26,7 +27,9 @@ Group: Hardware/Other
Url: https://sourceforge.net/projects/libirman/ Url: https://sourceforge.net/projects/libirman/
Source0: https://downloads.sf.net/libirman/libirman-%{version}.tar.gz Source0: https://downloads.sf.net/libirman/libirman-%{version}.tar.gz
BuildRequires: pkgconfig BuildRequires: pkgconfig
%if %{with lirc_plugin}
BuildRequires: pkgconfig(lirc) BuildRequires: pkgconfig(lirc)
%endif
%description %description
libirman is a general purpose library for programs to use in order to libirman is a general purpose library for programs to use in order to
@ -64,6 +67,7 @@ Obsoletes: libirman-utils < %{version}
%description -n irman-utils %description -n irman-utils
Utilities from %{name} from the lirc project. Utilities from %{name} from the lirc project.
%if %{with lirc_plugin}
%package -n lirc-irman %package -n lirc-irman
Summary: Lirc plugin for irman Summary: Lirc plugin for irman
License: GPL-2.0+ License: GPL-2.0+
@ -72,6 +76,7 @@ Requires: irman-common = %{version}
%description -n lirc-irman %description -n lirc-irman
Lirc plugin for irman. Lirc plugin for irman.
%endif
%package devel %package devel
Summary: Development files for %{name} Summary: Development files for %{name}
@ -119,11 +124,13 @@ rm -rf %{buildroot}%{_datadir}
%defattr(-,root,root) %defattr(-,root,root)
%config %{_sysconfdir}/irman.conf %config %{_sysconfdir}/irman.conf
%if %{with lirc_plugin}
%files -n lirc-irman %files -n lirc-irman
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_libdir}/lirc %dir %{_libdir}/lirc
%dir %{_libdir}/lirc/plugins %dir %{_libdir}/lirc/plugins
%{_libdir}/lirc/plugins/irman.so %{_libdir}/lirc/plugins/irman.so
%endif
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)