%define libname %mklibname libunity %define libnamedevel %mklibname -d libunity-devel Summary: Library for integrating with Unity and Plasma Name: libunity Version: 7.1.4 Release: %mkrel 1 Group: System/Libraries # most files LGPLv3, with a handful of GPLv3 (unity-sound-menu* sources in particular) License: GPLv3 URL: https://launchpad.net/libunity # same sources as shipped in ubuntu packages Source0: https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/libunity/%{version}+19.04.20190319-0ubuntu1/libunity_%{version}+19.04.20190319.orig.tar.gz Patch0: https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/libunity/%{version}+19.04.20190319-0ubuntu1/libunity_%{version}+19.04.20190319-0ubuntu1.diff.gz Patch0001: https://launchpadlibrarian.net/443817430/0001-Fix-FTB-with-recent-vala-requiring-non-public-abstra.patch # Patch for vala 0.53.2 portability Patch2: libunity-7.1.4-vala-053.patch BuildRequires: automake BuildRequires: libtool BuildRequires: gnome-common BuildRequires: intltool BuildRequires: pkgconfig(dee-1.0) BuildRequires: pkgconfig(dbusmenu-glib-0.4) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: python3-devel BuildRequires: python3 BuildRequires: vala BuildRequires: make %description A library for instrumenting and integrating with all aspects of the Unity shell and providing some integration features with Plasma. %package -n devel Summary: Development files for %{name} Requires: %{libname} = %{version}-%{release} %description -n devel %{summary}. %package -n python3-libunity Summary: Python3 bindings for %{name} Requires: %{name} = %{version}-%{release} Requires: python3-gobject-base %description -n python3-libunity %{summary}. %prep %setup -q -c %patch0 -p1 %patch1 -p1 -b .0001 %patch2 -p1 -b .vala_053 %build NOCONFIGURE=1 \ ./autogen.sh PYTHON=%{__python3} export PYTHON %configure \ --disable-schemas-compile \ --disable-silent-rules \ --disable-static %make_build %install %make_install ## unpackaged files # libtool, unused lib symlink rm -fv \ %{buildroot}%{_libdir}/lib*.la \ %{buildroot}%{_libdir}/libunity/*.{la,so} %py_byte_compile %{__python3} %{buildroot}%{python3_sitearch}/gi/overrides/ %ldconfig_post %postun %{?ldconfig} %if 0%{?rhel} && 0%{?rhel} < 8 if [ $1 -eq 0 ]; then glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : fi %posttrans glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : %endif %files %doc AUTHORS README %license COPYING* %{_bindir}/libunity-tool %{_bindir}/unity-scope-loader %{_libdir}/libunity.so.9* %{_libdir}/libunity-extras.so.9* %{_libdir}/girepository-1.0/Unity-7.0.typelib %{_libdir}/girepository-1.0/UnityExtras-7.0.typelib %dir %{_libdir}/libunity/ %{_libdir}/libunity/libunity-protocol-private.so.* %{_datadir}/glib-2.0/schemas/com.canonical.Unity.Lenses.gschema.xml %{_datadir}/unity/ %{_datadir}/unity-scopes/ %files -n python3-libunity %{python3_sitearch}/gi/overrides/Unity.py* %{python3_sitearch}/gi/overrides/__pycache__/* %files -n devel %{_includedir}/unity/ %{_libdir}/libunity.so %{_libdir}/libunity-extras.so %{_libdir}/pkgconfig/unity.pc %{_libdir}/pkgconfig/unity-extras.pc %{_libdir}/pkgconfig/unity-protocol-private.pc %{_datadir}/gir-1.0/Unity-7.0.gir %{_datadir}/gir-1.0/UnityExtras-7.0.gir %{_datadir}/vala/vapi/unity.* %{_datadir}/vala/vapi/unity-extras.* %{_datadir}/vala/vapi/unity-protocol.* %{_datadir}/vala/vapi/unity-trace.*