%define url_ver %(echo %{version}|cut -d. -f1,2) # exclude plugin .so from provides %global __provides_exclude_from %{_libdir}/xfce4/panel/plugins/.*\\.so Summary: Smart bookmarks for the Xfce panel Name: xfce4-smartbookmark-plugin Version: 0.5.1 Release: %mkrel 1 Group: Graphical desktop/Xfce License: GPLv2+ URL: https://goodies.xfce.org/projects/panel-plugins/xfce4-smartbookmark-plugin Source0: https://archive.xfce.org/src/panel-plugins/%{name}/%{url_ver}/%{name}-%{version}.tar.bz2 Patch0: xfce4-smartbookmark-plugin-0.4.99-mga-bugzilla.patch BuildRequires: intltool BuildRequires: xfce4-dev-tools BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(libxfce4ui-2) BuildRequires: pkgconfig(libxfce4panel-2.0) Requires: xfce4-panel >= 4.8.0 %description A plugin which allows you to do a search directly on Internet on sites like Google. It allows you to send requests directly to your browser and perform custom searches. %prep %setup -q %autopatch -p1 %build #to fix debug symbols build %xdt_autogen %configure2_5x \ --disable-static %make_build %install %make_install #we don't want these find %{buildroot} -name "*.la" -delete %find_lang %{name} %files -f %{name}.lang %doc AUTHORS ChangeLog README %{_libdir}/xfce4/panel/plugins/libsmartbookmark.so %{_datadir}/xfce4/panel/plugins/smartbookmark.desktop