2015-08-17 15:35:11 +02:00
|
|
|
#
|
|
|
|
# spec file for package libirman
|
|
|
|
#
|
2020-02-24 13:06:24 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2015-08-17 15:35:11 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-01-18 14:25:58 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-08-17 15:35:11 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2016-11-24 11:08:45 +01:00
|
|
|
%define sover 0
|
2019-01-18 14:25:58 +01:00
|
|
|
%bcond_with lirc_plugin
|
2015-08-17 15:35:11 +02:00
|
|
|
Name: libirman
|
2016-11-24 11:08:45 +01:00
|
|
|
Version: 0.5.2
|
2015-08-17 15:35:11 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Library for irman access
|
2019-01-18 14:25:58 +01:00
|
|
|
License: GPL-2.0-or-later
|
|
|
|
URL: https://sourceforge.net/projects/libirman/
|
2016-11-28 09:27:15 +01:00
|
|
|
Source0: https://downloads.sf.net/libirman/libirman-%{version}.tar.gz
|
2016-11-24 11:08:45 +01:00
|
|
|
BuildRequires: pkgconfig
|
2017-03-05 11:04:28 +01:00
|
|
|
%if %{with lirc_plugin}
|
2017-02-21 19:57:30 +01:00
|
|
|
BuildRequires: pkgconfig(lirc)
|
2017-03-05 11:04:28 +01:00
|
|
|
%endif
|
2015-08-17 15:35:11 +02:00
|
|
|
|
|
|
|
%description
|
2016-11-28 09:27:15 +01:00
|
|
|
libirman is a general purpose library for programs to use in order to
|
|
|
|
receive infrared signals via irman-compatible hardware.
|
2015-08-17 15:35:11 +02:00
|
|
|
|
2016-11-24 11:08:45 +01:00
|
|
|
%package -n %{name}%{sover}
|
2015-08-17 15:35:11 +02:00
|
|
|
Summary: Library for irman access
|
2019-01-18 14:25:58 +01:00
|
|
|
License: LGPL-2.0-or-later
|
2016-11-24 11:08:45 +01:00
|
|
|
Requires: %{name}-common = %{version}
|
2015-08-17 15:35:11 +02:00
|
|
|
|
2016-11-24 11:08:45 +01:00
|
|
|
%description -n %{name}%{sover}
|
2016-11-28 09:27:15 +01:00
|
|
|
libirman is a general purpose library for programs to use in order to
|
|
|
|
receive infrared signals via irman-compatible hardware.
|
2015-08-17 15:35:11 +02:00
|
|
|
|
2017-02-21 19:57:30 +01:00
|
|
|
%package -n irman-common
|
2016-11-24 11:08:45 +01:00
|
|
|
Summary: Common files for %{name}
|
2019-01-18 14:25:58 +01:00
|
|
|
License: LGPL-2.0-or-later
|
2016-11-24 11:08:45 +01:00
|
|
|
Conflicts: %{name}%{sover} < %{version}
|
2018-11-05 14:34:23 +01:00
|
|
|
Provides: libirman-common = %{version}-%{release}
|
|
|
|
Obsoletes: libirman-common < %{version}-%{release}
|
2016-11-24 11:08:45 +01:00
|
|
|
|
2017-02-21 19:57:30 +01:00
|
|
|
%description -n irman-common
|
2016-11-24 11:08:45 +01:00
|
|
|
Common files for %{name}.
|
|
|
|
|
2017-02-21 19:57:30 +01:00
|
|
|
%package -n irman-utils
|
2015-08-17 15:35:11 +02:00
|
|
|
Summary: Library for irman access
|
2019-01-18 14:25:58 +01:00
|
|
|
License: GPL-2.0-or-later
|
2017-02-21 19:57:30 +01:00
|
|
|
Requires: irman-common = %{version}
|
|
|
|
Provides: libirman-utils = %{version}
|
|
|
|
Obsoletes: libirman-utils < %{version}
|
2015-08-17 15:35:11 +02:00
|
|
|
|
2017-02-21 19:57:30 +01:00
|
|
|
%description -n irman-utils
|
2016-11-28 09:27:15 +01:00
|
|
|
Utilities from %{name} from the lirc project.
|
2015-08-17 15:35:11 +02:00
|
|
|
|
2017-03-05 11:04:28 +01:00
|
|
|
%if %{with lirc_plugin}
|
2017-02-21 19:57:30 +01:00
|
|
|
%package -n lirc-irman
|
|
|
|
Summary: Lirc plugin for irman
|
2019-01-18 14:25:58 +01:00
|
|
|
License: GPL-2.0-or-later
|
2017-02-21 19:57:30 +01:00
|
|
|
Requires: irman-common = %{version}
|
|
|
|
|
|
|
|
%description -n lirc-irman
|
|
|
|
Lirc plugin for irman.
|
2017-03-05 11:04:28 +01:00
|
|
|
%endif
|
2017-02-21 19:57:30 +01:00
|
|
|
|
2015-08-17 15:35:11 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
2019-01-18 14:25:58 +01:00
|
|
|
License: GPL-2.0-or-later
|
2016-11-24 11:08:45 +01:00
|
|
|
Requires: %{name}%{sover} = %{version}
|
2019-01-18 14:25:58 +01:00
|
|
|
Requires: %{name}_sw%{sover} = %{version}
|
2015-08-17 15:35:11 +02:00
|
|
|
|
|
|
|
%description devel
|
2016-11-28 09:27:15 +01:00
|
|
|
libirman is a general purpose library for programs to use in order to
|
|
|
|
receive infrared signals via irman-compatible hardware.
|
|
|
|
|
|
|
|
Devel files for %{name} from the lirc project.
|
2015-08-17 15:35:11 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--disable-static
|
2020-02-24 13:06:24 +01:00
|
|
|
%make_build
|
2015-08-17 15:35:11 +02:00
|
|
|
|
|
|
|
%install
|
2016-11-24 11:08:45 +01:00
|
|
|
%make_install
|
2015-08-17 15:35:11 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2015-09-07 13:03:49 +02:00
|
|
|
rm -rf %{buildroot}%{_datadir}
|
2015-08-17 15:35:11 +02:00
|
|
|
|
2016-11-24 11:08:45 +01:00
|
|
|
%post -n %{name}%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n %{name}%{sover} -p /sbin/ldconfig
|
2015-08-17 15:35:11 +02:00
|
|
|
|
2017-02-21 19:57:30 +01:00
|
|
|
%files -n irman-utils
|
2019-01-18 14:25:58 +01:00
|
|
|
%license COPYING
|
2016-11-24 11:08:45 +01:00
|
|
|
%{_bindir}/test_func
|
|
|
|
%{_bindir}/test_io
|
|
|
|
%{_bindir}/test_name
|
2015-08-17 15:35:11 +02:00
|
|
|
%{_bindir}/workmanir
|
|
|
|
|
2016-11-24 11:08:45 +01:00
|
|
|
%files -n %{name}%{sover}
|
2019-01-18 14:25:58 +01:00
|
|
|
%license COPYING.lib
|
2016-11-24 11:08:45 +01:00
|
|
|
%{_libdir}/%{name}.so.%{sover}*
|
|
|
|
|
2017-02-21 19:57:30 +01:00
|
|
|
%files -n irman-common
|
2015-08-17 15:35:11 +02:00
|
|
|
%config %{_sysconfdir}/irman.conf
|
|
|
|
|
2017-03-05 11:04:28 +01:00
|
|
|
%if %{with lirc_plugin}
|
2017-02-21 19:57:30 +01:00
|
|
|
%files -n lirc-irman
|
|
|
|
%dir %{_libdir}/lirc
|
|
|
|
%dir %{_libdir}/lirc/plugins
|
|
|
|
%{_libdir}/lirc/plugins/irman.so
|
2017-03-05 11:04:28 +01:00
|
|
|
%endif
|
2017-02-21 19:57:30 +01:00
|
|
|
|
2015-08-17 15:35:11 +02:00
|
|
|
%files devel
|
2019-01-18 14:25:58 +01:00
|
|
|
%license COPYING COPYING.lib
|
|
|
|
%doc NEWS README
|
2016-11-24 11:08:45 +01:00
|
|
|
%{_includedir}/irman.h
|
|
|
|
%{_libdir}/libirman.so
|
|
|
|
%{_libdir}/pkgconfig/libirman.pc
|
2015-08-17 15:35:11 +02:00
|
|
|
|
|
|
|
%changelog
|