File libirman.spec of Package libirman

#
# spec file for package libirman
#
# Copyright (c) 2015 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
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define lib_name %{name}0
Name:           libirman
Version:        0.4.6
Release:        0
Summary:        Library for irman access
License:        GPL-2.0+
Group:          System/Libraries
Url:            http://www.lirc.org
Source0:        http://sourceforge.net/projects/lirc/files/libirman/%{version}/%{name}-%{version}.tar.bz2
BuildRequires:  pkg-config
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Libraries and tools for irman access from lirc project

%package -n %{lib_name}
Summary:        Library for irman access
License:        LGPL-2.0+
Group:          System/Libraries

%description -n %{lib_name}
Library for irman access from lirc project

%package utils
Summary:        Library for irman access
Group:          Hardware/Other

%description utils
Utilities from %{name} from lirc project

%package devel
Summary:        Development files for %{name}
Group:          Development/Libraries
Requires:       %{lib_name} = %{version}-%{release}

%description devel
Devel files for %{name} from lirc project

%prep
%setup -q

%build
%configure \
  --disable-static
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print
rm -rf %{buildroot}%{_datadir}

%post -n %{lib_name} -p /sbin/ldconfig

%postun -n %{lib_name} -p /sbin/ldconfig

%files utils
%doc COPYING
%{_bindir}/workmanir

%files -n %{lib_name}
%doc COPYING.lib
%defattr(-,root,root,-)
%config %{_sysconfdir}/irman.conf
%{_libdir}/*.so.*

%files devel
%doc COPYING COPYING.lib NEWS README
%defattr(-,root,root,-)
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/*.h

%changelog
openSUSE Build Service is sponsored by