Accepting request 522759 from GNOME:Factory

- Update descriptions and RPM categories.
  Replace old RPM macros. (forwarded request 522684 from jengelh)

OBS-URL: https://build.opensuse.org/request/show/522759
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gedit-plugins?expand=0&rev=45
This commit is contained in:
Dominique Leuenberger 2017-09-13 19:44:58 +00:00 committed by Git OBS Bridge
commit ce67ea1284
2 changed files with 40 additions and 32 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Fri Sep 8 22:50:09 UTC 2017 - jengelh@inai.de
- Update descriptions and RPM categories.
Replace old RPM macros.
-------------------------------------------------------------------
Tue Aug 29 12:37:28 UTC 2017 - dimstar@opensuse.org
- Fix patch tag line.
-------------------------------------------------------------------
Wed Mar 1 12:59:52 UTC 2017 - hillwood@opensuse.org

View File

@ -18,22 +18,21 @@
Name: gedit-plugins
Version: 3.22.0
Release: 0
Summary: A collection of plugins for gedit
License: GPL-2.0+
Group: Productivity/Editors/Other
Version: 3.22.0
Release: 0
Url: http://live.gnome.org/GeditPlugins
Source: http://download.gnome.org/sources/gedit-plugins/3.22/%{name}-%{version}.tar.xz
Source1: gedit-plugins.SUSE
# PATCH-FIX-UPSTEAM bracketcompletion-use-key-release-event-to-work-wi.patch boo#1027448 bgo#778737 hillwood@opensuse.org -- Switch to use key release event for ibus pinyin input method
# PATCH-FIX-UPSTREAM bracketcompletion-use-key-release-event-to-work-wi.patch boo#1027448 bgo#778737 hillwood@opensuse.org -- Switch to use key release event for ibus pinyin input method
Patch0: bracketcompletion-use-key-release-event-to-work-wi.patch
Url: http://live.gnome.org/GeditPlugins
BuildRequires: fdupes
BuildRequires: intltool
BuildRequires: pkg-config
%if !0%{?is_opensuse}
BuildRequires: translation-update-upstream
%endif
BuildRequires: pkgconfig
# configure tests for python gi-bindings of gucharmap
BuildRequires: typelib-1_0-Gucharmap-2_90
BuildRequires: vala
BuildRequires: yelp-tools
BuildRequires: pkgconfig(dbus-python)
@ -44,11 +43,8 @@ BuildRequires: pkgconfig(libgit2-glib-1.0) >= 0.0.6
BuildRequires: pkgconfig(libpeas-gtk-1.0) >= 1.7.0
BuildRequires: pkgconfig(vte-2.91)
BuildRequires: pkgconfig(zeitgeist-2.0) >= 0.9.12
# configure tests for python gi-bindings of gucharmap
BuildRequires: typelib-1_0-Gucharmap-2_90
Requires: %{name}-lang = %{version}
Requires: gedit >= 3.14.0
Enhances: gedit
Recommends: %{name}-data
Suggests: gedit-plugin-bookmarks
Suggests: gedit-plugin-bracketcompletion
@ -68,34 +64,37 @@ Suggests: gedit-plugin-synctex
Suggests: gedit-plugin-terminal
Suggests: gedit-plugin-textsize
Suggests: gedit-plugin-wordcompletion
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Enhances: gedit
%glib2_gsettings_schema_requires
%if !0%{?is_opensuse}
BuildRequires: translation-update-upstream
%endif
%description
Here follows a list of plugins currently available in gedit-plugins:
This package contains a number of plugins for gedit, such as:
* Bracket Completion Add automatically a closing bracket when you
insert one
* Charmap Select characters from a charactermap
* Code Comment Comment or uncomment blocks of code
* Color picker Select and insert a color from a dialog (for html,
* Bracket Completion: Automatically adds a closing bracket when you
insert an opening one
* Charmap: Select characters from a charactermap
* Code Comment: Comment or uncomment blocks of code
* Color picker: Select and insert a color from a dialog (for html,
css, php)
* Join lines/ Split lines Join or split multiple lines through Ctrl+J
* Join lines/Split lines: Join or split multiple lines through Ctrl+J
and Ctrl+Shift+J
* Session Saver Allow to bookmark working sessions in order to get
* Session Saver: Allows to bookmark working sessions in order to get
them back for further use
* Smart Spaces Allow to unindent like if you were using tabs while
* Smart Spaces: Allows to unindent like if you were using tabs while
you're using spaces
* Show tabbar A very basic plugin which shows or hides the gedit tabbar
* Terminal A simple terminal widget accessible from the bottom panel
* Show tabbar: A plugin to show or hide the gedit tabbar
* Terminal: A terminal widget accessible from the bottom panel
%package -n %{name}-data
Summary: Common data required by plugins
Summary: Common data required by gedit plugins
Group: Productivity/Editors/Other
Requires: gedit
%description -n %{name}-data
Common files required by all plugins
Common files required by gedit plugins
%package -n gedit-plugin-bookmarks
Summary: Gedit bookmarks plugin
@ -260,10 +259,10 @@ The gedit wordcompletion plugin
%package -n gedit-plugin-zeitgeist
Summary: Zeitgeist dataprovider for gedit
Group: Productivity/Text/Editors
Requires: gedit
# For dashboard plugin
Group: Productivity/Editors/Other
Requires: %{name}-data
Requires: gedit
Requires: zeitgeist
Supplements: packageand(gedit:zeitgeist)
@ -272,10 +271,11 @@ The zeitgeist plugin for gedit provides a zeitgeist dataprovider that
logs access and leave event for documents used with gedit.
%lang_package
%prep
%setup -q
%patch0 -p1
install %{S:1} .
install %{SOURCE1} .
%if !0%{?is_opensuse}
translation-update-upstream
%endif
@ -285,7 +285,7 @@ translation-update-upstream
make %{?_smp_mflags}
%install
%makeinstall
%make_install
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%find_lang %{name}
%find_lang gedit %{name}.lang
@ -293,9 +293,6 @@ find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%fdupes %{buildroot}/%{_libdir}/gedit/plugins
%fdupes %{buildroot}/%{_datadir}/help
%clean
rm -rf %{buildroot}
%post -n gedit-plugin-drawspaces
%glib2_gsettings_schema_post