File liblo.spec of Package liblo
#
# spec file for package liblo
#
# 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 lname liblo7
Name: liblo
Version: 0.28
Release: 0
Summary: Lightweight Open Sound Control implementation
License: LGPL-2.1+
Group: Development/Libraries/C and C++
Url: http://plugin.org.uk/liblo/
Source: http://downloads.sourceforge.net/liblo/%{name}-%{version}.tar.gz
Source100: baselibs.conf
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: doxygen
BuildRequires: libtool
BuildRequires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is a lightweight, easy-to-use implementation of the OSC protocol
(see http://www.cnmat.berkeley.edu/OpenSoundControl/ for details).
%package -n %{lname}
Summary: Lightweight Open Sound Control implementation
Group: System/Libraries
# O/P added for 13.1
Obsoletes: liblo < %{version}-%{release}
Provides: liblo = %{version}-%{release}
%description -n %{lname}
This is a lightweight, easy-to-use implementation of the OSC protocol
(see http://www.cnmat.berkeley.edu/OpenSoundControl/ for details).
%package devel
Summary: Include Files and Libraries mandatory for Development
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
%prep
%setup -q
%build
echo 'HTML_TIMESTAMP=NO' >> doc/reference.doxygen.in
%if 0%{?suse_version} > 1210
# Autoconf version 2.69 or higher is required
autoreconf -fiv
%endif
%configure \
--disable-static \
--with-pic
make %{?_smp_mflags}
%install
make DESTDIR="$RPM_BUILD_ROOT" install
# remove example binaries
make -C examples distclean
rm -f examples/Makefile examples/Makefile.in
find %{buildroot} -type f -name "*.la" -delete -print
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files -n %{lname}
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libdir}/liblo.so.*
%files devel
%defattr(-,root,root)
%doc doc/html
%doc examples
%{_bindir}/oscdump
%{_bindir}/oscsend
%{_libdir}/liblo.so
%{_includedir}/lo
%{_libdir}/pkgconfig/liblo.pc
%changelog