File liblo.spec of Package liblo
#
# spec file for package liblo
#
# Copyright (c) 2014 SUSE LINUX Products 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/
#
Name: liblo
%define lname liblo7
Summary: Lightweight Open Sound Control implementation
License: LGPL-2.1+
Group: Development/Libraries/C and C++
Version: 0.28
Release: 0
Url: http://plugin.org.uk/liblo/
Source: %{name}-%{version}.tar.gz
Source100: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: doxygen
BuildRequires: libtool
BuildRequires: pkgconfig
%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
autoreconf -fiv
%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
rm -f %{buildroot}%{_libdir}/*.la
%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