%define url_ver %(echo %{version} | cut -d. -f1,2) %define oname xfce4util %define api 1.0 %define major 7 %define libname %mklibname %{oname} %{major} %define girname %mklibname xfce4util-gir %{api} %define develname %mklibname %{oname} -d Summary: Utility library for the Xfce desktop environment Name: libxfce4util Version: 4.19.2 Release: %mkrel 1 License: GPLv2+ Group: Graphical desktop/Xfce URL: https://www.xfce.org Source0: https://archive.xfce.org/src/xfce/%{name}/%{url_ver}/%{name}-%{version}.tar.bz2 Patch1: 0001-session-management-Fix-name-watching-management.patch BuildRequires: git-core BuildRequires: vala-devel BuildRequires: xfce4-dev-tools BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gobject-introspection-1.0) %description Basic utility non-GUI functions for Xfce desktop environment. %package i18n Summary: Internationalization and locale data for %{name} Group: System/Internationalization %description i18n This package contains the localizations for %{name}. %package -n %{libname} Summary: Utility library for the Xfce desktop environment Group: Graphical desktop/Xfce Requires: %{name}-i18n >= %{version}-%{release} %description -n %{libname} Utility library for the Xfce desktop environment. %package -n %{girname} Summary: GObject Introspection interface description for %{name} Group: System/Libraries Requires: %{libname} = %{version}-%{release} %description -n %{girname} GObject Introspection interface description for %{name}. %package -n %{develname} Summary: Libraries and header files for the %{name} library Group: Development/Other Requires: %{libname} = %{version}-%{release} Requires: %{girname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} %description -n %{develname} Libraries and header files for the %{name} library. %package -n xfce-kiosk Summary: Kiosk support for the Xfce desktop environment URL: https://wiki.xfce.org/howto/kiosk_mode Group: Graphical desktop/Xfce %description -n xfce-kiosk Kiosk support for the Xfce desktop environment. %prep %autosetup -p1 -Sgit_am %build %xdt_autogen %configure \ --disable-static \ --enable-introspection %make_build %install %make_install #we don't want these find %{buildroot} -name "*.la" -delete %find_lang %{name} %files i18n -f %{name}.lang %files -n %{libname} %doc AUTHORS ChangeLog README.md %{_libdir}/lib%{oname}.so.%{major}{,.*} %files -n %{girname} %{_libdir}/girepository-1.0/Libxfce4util-%{api}.typelib %files -n %{develname} %doc %{_datadir}/gtk-doc/html/* %{_libdir}/lib%{oname}.so %{_libdir}/pkgconfig/lib%{oname}-%{api}.pc %{_includedir}/xfce4/ %{_datadir}/gir-1.0/Libxfce4util-%{api}.gir %{_datadir}/vala/vapi/libxfce4util-%{api}.vapi %files -n xfce-kiosk %{_sbindir}/xfce4-kiosk-query