libirman/libirman.spec

88 lines
2.4 KiB
RPMSpec
Raw Normal View History

Name: libirman
Version: 0.5.2
Release: 1mamba
Summary: Library for accessing irman compatible IR hardware
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://sourceforge.net/projects/libirman/
Source: http://downloads.sourceforge.net/project/libirman/%{version}/libirman-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: lirc-devel
## AUTOBUILDREQ-END
BuildRequires: lirc-devel >= 0.9.4
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
library for accessing irman compatible IR hardware.
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.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%package tools
Group: Applications/Kernel and Hardware
Summary: Utility applications for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description tools
This package contains utility applications for %{name}.
%debug_package
%prep
%setup -q
%build
%configure --disable-static --with-plugin
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/irman.conf
%{_libdir}/libirman.so.*
%{_libdir}/lirc/plugins/irman.so
%dir %{_datadir}/doc/libirman
%{_datadir}/doc/libirman/*
%{_datadir}/doc/lirc/plugindocs/irman.html
%{_datadir}/lirc/configs/irman.conf
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%{_includedir}/irman.h
%{_libdir}/libirman.la
%{_libdir}/libirman.so
%{_libdir}/pkgconfig/libirman.pc
%doc ChangeLog NEWS README TODO
%files tools
%defattr(-,root,root)
%{_bindir}/test_func
%{_bindir}/test_io
%{_bindir}/test_name
%{_bindir}/workmanir
%changelog
* Thu Aug 11 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.2-1mamba
- package created using the webbuild interface