update code
This commit is contained in:
commit
e99bb531d4
26
0001-Center-new-windows.patch
Normal file
26
0001-Center-new-windows.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From c323dd5087a15cb2b820fedf311ca288ec347878 Mon Sep 17 00:00:00 2001
|
||||
From: Matthias Clasen <mclasen@redhat.com>
|
||||
Date: Thu, 8 Nov 2012 22:57:12 -0500
|
||||
Subject: [PATCH] Center new windows
|
||||
|
||||
This makes more sense than letting mutter put them in the top
|
||||
left corner.
|
||||
---
|
||||
src/yelp-application.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/yelp-application.c b/src/yelp-application.c
|
||||
index 2d004c2..e669661 100644
|
||||
--- a/src/yelp-application.c
|
||||
+++ b/src/yelp-application.c
|
||||
@@ -444,6 +444,7 @@ application_uri_resolved (YelpUri *uri,
|
||||
|
||||
g_settings_get (settings, "geometry", "(ii)", &width, &height);
|
||||
window = yelp_window_new (data->app);
|
||||
+ gtk_window_set_position (GTK_WINDOW (window), GTK_WIN_POS_CENTER);
|
||||
gtk_window_set_default_size (GTK_WINDOW (window), width, height);
|
||||
g_signal_connect (window, "resized", G_CALLBACK (window_resized), data->app);
|
||||
priv->windows = g_slist_prepend (priv->windows, window);
|
||||
--
|
||||
1.7.12.1
|
||||
|
||||
BIN
yelp-3.34.0.tar.xz
Normal file
BIN
yelp-3.34.0.tar.xz
Normal file
Binary file not shown.
89
yelp.spec
Normal file
89
yelp.spec
Normal file
@ -0,0 +1,89 @@
|
||||
Name: yelp
|
||||
Epoch: 2
|
||||
Version: 3.34.0
|
||||
Release: 1
|
||||
Summary: Help browser for the GNOME desktop
|
||||
License: LGPLv2+ and ASL 2.0 and GPLv2+
|
||||
URL: https://wiki.gnome.org/Apps/Yelp
|
||||
Source: https://download.gnome.org/sources/%{name}/3.34/%{name}-%{version}.tar.xz
|
||||
|
||||
# https://bugzilla.gnome.org/show_bug.cgi?id=687960
|
||||
Patch1: 0001-Center-new-windows.patch
|
||||
|
||||
BuildRequires: gcc gtk3-devel xz-devel libxml2-devel libxslt-devel
|
||||
BuildRequires: sqlite-devel webkit2gtk3-devel yelp-xsl-devel
|
||||
BuildRequires: desktop-file-utils bzip2-devel gettext-devel intltool itstool
|
||||
Requires: yelp-xsl
|
||||
Provides: %{name}-libs = %{epoch}:%{version}-%{release}
|
||||
Obsoletes: %{name}-libs < %{epoch}:%{version}-%{release}
|
||||
|
||||
%description
|
||||
Yelp is the help viewer in GNOME. It natively views Mallard, DocBook, man, info, and HTML documents.
|
||||
It can locate documents according to the freedesktop.org help system specification.
|
||||
|
||||
Yelp development has led to the development of various tools, and the Mallard and DocBook transformations live in standalone XSLT module.
|
||||
All of these are under the umbrella name Yelp.
|
||||
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for %{name}.
|
||||
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
%build
|
||||
%configure
|
||||
|
||||
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' \
|
||||
-e 's/ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/ func_append compile_command " -Wl,-O1,--as-needed"\n func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool
|
||||
|
||||
|
||||
%make_build V=1
|
||||
|
||||
%install
|
||||
%make_install
|
||||
%delete_la
|
||||
|
||||
%check
|
||||
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/yelp.desktop
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS
|
||||
%license COPYING
|
||||
%{_bindir}/*
|
||||
%{_libdir}/libyelp.so.*
|
||||
%{_libdir}/yelp/web-extensions/libyelpwebextension.so
|
||||
%{_datadir}/yelp/
|
||||
%{_datadir}/locale/*
|
||||
%{_datadir}/metainfo/yelp.appdata.xml
|
||||
%{_datadir}/applications/yelp.desktop
|
||||
%{_datadir}/yelp-xsl/xslt/common/domains/yelp.xml
|
||||
%{_datadir}/glib-2.0/schemas/org.gnome.yelp.gschema.xml
|
||||
%{_datadir}/icons/hicolor/scalable/apps/org.gnome.Yelp.svg
|
||||
%{_datadir}/icons/hicolor/symbolic/apps/org.gnome.Yelp-symbolic.svg
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libyelp.so
|
||||
%{_libdir}/libyelp.a
|
||||
%{_libdir}/yelp/web-extensions/libyelpwebextension.a
|
||||
%{_includedir}/libyelp
|
||||
|
||||
%files help
|
||||
%defattr(-,root,root)
|
||||
%doc NEWS README
|
||||
%{_datadir}/gtk-doc
|
||||
|
||||
%changelog
|
||||
* Fri Oct 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.34.0-1
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user