File libunity-misc.spec of Package libunity-misc

#
# spec file for package libunity-misc
#
# Copyright (c) 2015 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


%define _version 4.0.5+14.04.20140115
%define sover   4
Name:           libunity-misc
Version:        4.0.5~bzr20140115
Release:        0
Summary:        Miscellaneous differently licensed stuff for Unity
License:        GPL-2.0-only AND LGPL-2.1-only
Group:          System/Libraries
URL:            https://launchpad.net/libunity-misc
Source:         http://archive.ubuntu.com/ubuntu/pool/main/libu/%{name}/%{name}_%{_version}.orig.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gtk-doc
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gtk+-3.0)

%description
This package provides miscellaneous stuff for Unity under several
licenses.

%package -n %{name}%{sover}
Summary:        Miscellaneous differently licensed stuff for Unity
Group:          System/Libraries

%description -n %{name}%{sover}
This package provides miscellaneous stuff for Unity under several
licenses.

%package devel
Summary:        Development files for libunity-misc
Group:          Development/Libraries/C and C++
Requires:       %{name}%{sover} = %{version}

%description devel
Development files for miscellaneous stuff used in Unity under several
licenses.

%prep
%setup -q -n %{name}-%{_version}

%build
gtkdocize
autoreconf -vfi
export CFLAGS="%{optflags} -Wno-error"
%configure --disable-static
%make_build

%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print

%post -n %{name}%{sover} -p /sbin/ldconfig

%postun -n %{name}%{sover} -p /sbin/ldconfig

%files -n %{name}%{sover}
%license COPYING*
%doc AUTHORS
%{_libdir}/%{name}.so.%{sover}*

%files devel
%{_includedir}/unity-misc/
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/unity-misc.pc

%changelog
openSUSE Build Service is sponsored by