%define major 0 %define libname %mklibname mousepad %{major} %define url_ver %(echo %{version}|cut -d. -f1,2) Summary: A simple text editor for Xfce Name: mousepad Version: 0.5.6 Release: %mkrel 1 License: GPLv2+ Group: Editors URL: https://www.xfce.org # https://gitlab.xfce.org/apps/mousepad Source0: https://archive.xfce.org/src/apps/%{name}/%{url_ver}/%{name}-%{version}.tar.bz2 # Upstream patches: Patch1: 0001-Make-CSD-consistent-with-other-Xfce-windows.patch Patch2: 0002-Fix-an-unlikely-memory-leak.patch BuildRequires: intltool BuildRequires: git-core BuildRequires: xfce4-dev-tools BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(gspell-1) BuildRequires: pkgconfig(gtksourceview-4) BuildRequires: pkgconfig(dbus-glib-1) BuildRequires: pkgconfig(libxfconf-0) %description Mousepad is a simple text editor for Xfce and originally based on Leafpad. %package -n %{libname} Summary: Shared libraries for %{name} Group: System/Libraries %description -n %{libname} Shared libraries for %{name}. %prep %autosetup -p1 -Sgit_am %build %xdt_autogen export CFLAGS="%{optflags} -Wno-deprecated-declarations" %configure \ --enable-dbus=yes \ --enable-keyfile-settings \ --enable-gtksourceview4 \ --disable-schemas-compile %make_build %install %make_install # we don't want these find %{buildroot} -name "*.la" -delete # no -devel pkg atm rm -rf %{buildroot}%{_libdir}/libmousepad.so %find_lang %{name} %files -f %{name}.lang %license COPYING %doc AUTHORS ChangeLog NEWS README* %{_bindir}/* %{_datadir}/applications/*.desktop %{_datadir}/glib-2.0/schemas/org.xfce.mousepad.gschema.xml %{_datadir}/polkit-1/actions/org.xfce.mousepad.policy %{_iconsdir}/hicolor/*/apps/org.xfce.mousepad.{png,svg} %{_metainfodir}/mousepad.appdata.xml #plugins %dir %{_libdir}/mousepad/plugins/ %{_libdir}/mousepad/plugins/libmousepad-plugin-gspell.so %{_datadir}/glib-2.0/schemas/org.xfce.mousepad.plugins.gspell.gschema.xml %files -n %{libname} %{_libdir}/libmousepad.so.%{major}{,.*}