|
|
31c1444 |
%global appname controlyourtabs
|
|
|
31c1444 |
%global uuid com.thingsthemselves.gedit.plugins.%{appname}
|
|
|
f6a7061 |
|
|
|
f6a7061 |
Name: gedit-control-your-tabs
|
|
|
31c1444 |
Version: 0.4.0
|
|
|
1d40b1a |
Release: %autorelease
|
|
|
f6a7061 |
Summary: Gedit plugin to switch between document tabs using
|
|
|
f6a7061 |
|
|
|
ff222ab |
License: GPL-3.0-or-later
|
|
|
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 |
|
|
|
31c1444 |
Requires: gedit%{?_isa} >= 3.12
|
|
|
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
|
|
|
31c1444 |
cp -a %{appname} %{buildroot}%{_libdir}/gedit/plugins/
|
|
|
31c1444 |
rm -r %{buildroot}%{_libdir}/gedit/plugins/%{appname}/schemas
|
|
|
31c1444 |
rm -r %{buildroot}%{_libdir}/gedit/plugins/%{appname}/utils/.editorconfig
|
|
|
31c1444 |
rm -r %{buildroot}%{_libdir}/gedit/plugins/%{appname}/utils/.gitattributes
|
|
|
31c1444 |
rm -r %{buildroot}%{_libdir}/gedit/plugins/%{appname}/locale
|
|
|
b6caedd |
mkdir -p %{buildroot}%{_libdir}/gedit/plugins
|
|
|
31c1444 |
cp -a %{appname}.plugin %{buildroot}%{_libdir}/gedit/plugins/
|
|
|
b6caedd |
mkdir -p %{buildroot}%{_datadir}/glib-2.0/schemas/
|
|
|
31c1444 |
cp -a %{appname}/schemas/%{uuid}.gschema.xml %{buildroot}%{_datadir}/glib-2.0/schemas/
|
|
|
1202111 |
|
|
|
1202111 |
# Byte compiling
|
|
|
31c1444 |
%py_byte_compile %{__python3} %{buildroot}%{_libdir}/gedit/plugins/%{appname}/
|
|
|
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
|
|
|
31c1444 |
%{_libdir}/gedit/plugins/%{appname}
|
|
|
31c1444 |
%{_libdir}/gedit/plugins/%{appname}.plugin
|
|
|
b6caedd |
%{_metainfodir}/*.xml
|
|
|
f6a7061 |
|
|
|
1202111 |
|
|
|
f6a7061 |
%changelog
|
|
|
1d40b1a |
%autochangelog
|