Blame gedit-control-your-tabs.spec

b6caedd
%global pname   controlyourtabs
b6caedd
%global uuid    com.thingsthemselves.gedit.plugins.%{pname}
f6a7061
f6a7061
Name:           gedit-control-your-tabs
aeab184
Version:        0.3.4
1d40b1a
Release:        %autorelease
f6a7061
Summary:        Gedit plugin to switch between document tabs using
f6a7061
f6a7061
License:        GPLv3+
f6a7061
URL:            https://github.com/jefferyto/gedit-control-your-tabs
1202111
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
b6caedd
b6caedd
BuildRequires:  libappstream-glib
f6a7061
BuildRequires:  python3-devel
1202111
f6a7061
Requires:       gedit%{?_isa} >= 3.8
1202111
f6a7061
Provides:       bundled(python-gtk-utils) = 0.2.0
f6a7061
f6a7061
%description
1202111
A gedit plugin to switch between document tabs using Ctrl+Tab / Ctrl+Shift+Tab
1202111
(most recently used order or tab row order) and Ctrl+PageUp / Ctrl+PageDown (tab
1202111
row order).
1202111
f6a7061
f6a7061
%prep
1202111
%autosetup -p1
1202111
f6a7061
f6a7061
%install
b6caedd
mkdir -p                %{buildroot}%{_libdir}/gedit/plugins
b6caedd
cp -a %{pname}          %{buildroot}%{_libdir}/gedit/plugins/
b6caedd
rm -r                   %{buildroot}%{_libdir}/gedit/plugins/%{pname}/schemas
b6caedd
rm -r                   %{buildroot}%{_libdir}/gedit/plugins/%{pname}/utils/.editorconfig
b6caedd
rm -r                   %{buildroot}%{_libdir}/gedit/plugins/%{pname}/utils/.gitattributes
b6caedd
rm -r                   %{buildroot}%{_libdir}/gedit/plugins/%{pname}/locale
b6caedd
mkdir -p                %{buildroot}%{_libdir}/gedit/plugins
b6caedd
cp -a %{pname}.plugin   %{buildroot}%{_libdir}/gedit/plugins/
b6caedd
mkdir -p                %{buildroot}%{_datadir}/glib-2.0/schemas/
b6caedd
cp -a %{pname}/schemas/%{uuid}.gschema.xml %{buildroot}%{_datadir}/glib-2.0/schemas/
1202111
1202111
# Byte compiling
b6caedd
%py_byte_compile %{__python3} %{buildroot}%{_libdir}/gedit/plugins/%{pname}/
1202111
1202111
# Install metainfo
1202111
install -m 0644 -Dp data/%{uuid}.metainfo.xml %{buildroot}%{_metainfodir}/%{uuid}.metainfo.xml
1202111
b6caedd
b6caedd
%check
b6caedd
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml
f6a7061
1202111
f6a7061
%files
f6a7061
%license LICENSE
f6a7061
%doc README.md
b6caedd
%{_datadir}/glib-2.0/schemas/*.gschema.xml
b6caedd
%{_libdir}/gedit/plugins/%{pname}
b6caedd
%{_libdir}/gedit/plugins/%{pname}.plugin
b6caedd
%{_metainfodir}/*.xml
f6a7061
1202111
f6a7061
%changelog
1d40b1a
%autochangelog