]> git.pld-linux.org Git - packages/devhelp.git/commitdiff
Use python 3 for byte compiling gedit plugin, otherwise it won't work auto/th/devhelp-3.8.0-2
authorMarcin Banasiak <marcin.banasiak@gmail.com>
Sun, 31 Mar 2013 00:27:26 +0000 (01:27 +0100)
committerMarcin Banasiak <marcin.banasiak@gmail.com>
Sun, 31 Mar 2013 00:27:26 +0000 (01:27 +0100)
with python3 loader. Release 2

devhelp-use-python3.patch [new file with mode: 0644]
devhelp.spec

diff --git a/devhelp-use-python3.patch b/devhelp-use-python3.patch
new file mode 100644 (file)
index 0000000..06dd90b
--- /dev/null
@@ -0,0 +1,11 @@
+--- devhelp-3.8.0/configure.ac.python  2013-03-31 00:42:37.145207175 +0100
++++ devhelp-3.8.0/configure.ac 2013-03-31 00:42:46.015159122 +0100
+@@ -105,7 +105,7 @@ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GET
+ AC_PATH_PROG(GLIB_MKENUMS, glib-mkenums)
+-AM_PATH_PYTHON([2.3],[],[no])
++AM_PATH_PYTHON([3.3],[],[no])
+ LIBGD_INIT([
+   main-toolbar
index 9b07fa4393041aaed3ecadce3163a7fb76bbf1c1..3917564629f85ab57749b3d6474b771a1538b4db 100644 (file)
@@ -2,12 +2,13 @@ Summary:      API documentation browser for GNOME
 Summary(pl.UTF-8):     Przeglądarka dokumentacji API dla GNOME
 Name:          devhelp
 Version:       3.8.0
-Release:       1
+Release:       2
 License:       GPL v2+
 Group:         X11/Applications
 Source0:       http://ftp.gnome.org/pub/GNOME/sources/devhelp/3.8/%{name}-%{version}.tar.xz
 # Source0-md5: e6d8bef5cf698c5d25a0e1c8593a2f63
 Patch0:                %{name}-bookdir.patch
+Patch1:                %{name}-use-python3.patch
 URL:           http://www.imendio.com/projects/devhelp/
 BuildRequires: autoconf >= 2.64
 BuildRequires: automake >= 1:1.11
@@ -19,7 +20,7 @@ BuildRequires:        gtk-webkit3-devel >= 1.10.0
 BuildRequires: intltool >= 0.40.0
 BuildRequires: libtool >= 2:2.2
 BuildRequires: pkgconfig
-BuildRequires: python >= 2.3
+BuildRequires: python3 >= 1:3.3
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.311
 BuildRequires: tar >= 1:1.22
@@ -84,7 +85,7 @@ Group:                X11/Applications
 Requires:      %{name} = %{version}-%{release}
 Requires:      gedit
 Requires:      libpeas-loader-python3
-Requires:      python-pygobject3
+Requires:      python3-pygobject3
 Obsoletes:     gedit2-plugin-devhelp
 
 %description -n gedit-plugin-devhelp
@@ -96,6 +97,7 @@ Wtyczka umożliwiająca przeglądanie dokumentacji API w edytorze Gedit.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__intltoolize}
@@ -116,8 +118,7 @@ install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/{books,references,specs}
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/gedit/plugins/*.py \
-       $RPM_BUILD_ROOT%{_libdir}/*.la
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
 
 %find_lang %{name}
 
@@ -162,5 +163,6 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -n gedit-plugin-devhelp
 %defattr(644,root,root,755)
+%{_libdir}/gedit/plugins/__pycache__
 %{_libdir}/gedit/plugins/devhelp.plugin
-%{_libdir}/gedit/plugins/devhelp.py[co]
+%{_libdir}/gedit/plugins/devhelp.py
This page took 0.110759 seconds and 4 git commands to generate.