Bug 1609211 - marisa needs to have an option to disable python2 packages
Summary: marisa needs to have an option to disable python2 packages
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: marisa
Version: 28
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daiki Ueno
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-27 09:45 UTC by fujiwara
Modified: 2018-08-03 16:36 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-08-03 16:36:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description fujiwara 2018-07-27 09:45:44 UTC
I'd like to update marisa.spec in f28 to switch the python2 build.

E.g.

--- a/marisa.spec
+++ b/marisa.spec
@@ -1,6 +1,12 @@
+%if 0%{?rhel} > 7
+%global with_python2 0
+%else
+%global with_python2 1
+%endif
+
@ -9,10 +15,14 @@ URL:  https://code.google.com/p/marisa-trie
 # https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.c
om/marisa-trie/%%{name}-%%{version}.tar.gz
 Source0: https://marisa-trie.googlecode.com/files/%{name}-%{version}.tar.gz
 
+BuildRequires:  gcc
+BuildRequires:  gcc-c++
 BuildRequires: swig
 BuildRequires: perl-devel
 BuildRequires: perl-generators
+%if %with_python2
 BuildRequires: python2-devel
+%endif
 BuildRequires: python3-devel
 BuildRequires: ruby-devel

Comment 1 Daiki Ueno 2018-08-03 16:36:06 UTC
https://src.fedoraproject.org/rpms/marisa/pull-request/2

Given the fix is a source-only, I am closing this.


Note You need to log in before you can comment on or make changes to this bug.