Name:			libunity-misc
Version:		4.0.5
Release:		%autorelease
Summary:		Misc Unity shell libraries

License:		LGPL-2.0 AND LGPL-2.0 AND GPL-2.0
URL:			https://launchpad.net/libunity-misc
Source0:		http://archive.ubuntu.com/ubuntu/pool/universe/libu/libunity-misc/libunity-misc_%{version}+14.04.20140115.orig.tar.gz

BuildRequires:	make
BuildRequires:	g++
BuildRequires:	gcc
BuildRequires:	libX11-devel
BuildRequires:	gnome-common
BuildRequires:	gtk-doc
BuildRequires:	libX11-devel
BuildRequires:	gtk3-devel
BuildRequires:	glib2-devel
Requires:       libunity

%description
A simple library that implements a subset of the XPath spec to allow selecting
nodes in an object tree.

%package devel
Summary:	Development files for %{name}
Requires:	%{name}%{?_isa} = %{version}-%{release}

%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%prep
%autosetup -n libunity-misc-%{version}+14.04.20140115

%conf
find ./ -type f -exec sed -i 's/-Werror//' {} \;
NOCONFIGURE=1 \
./autogen.sh

%configure \
	--disable-silent-rules \
	--disable-static

%build
%make_build

%install
%make_install
rm -fv %{buildroot}%{_libdir}/lib*.la
# Is done for unity-shell and other Unity packages to build
ln -sf %{_libdir}/libunity/libunity-protocol-private.so.0.0.0 %{buildroot}%{_libdir}/libunity-protocol-private.so

%ldconfig_post

%files
%license COPYING COPYING.GPL COPYING.LGPL-2
%{_libdir}/libunity-misc.so.*
%{_libdir}/libunity-protocol-private.so

%files devel
%{_libdir}/libunity-misc.so
%{_libdir}/pkgconfig/unity-misc.pc
%dir %{_includedir}/unity-misc
%dir %{_includedir}/unity-misc/unity-misc
%{_includedir}/unity-misc/unity-misc/*.h

%changelog
%autochangelog
