Bug 1609211

Summary: marisa needs to have an option to disable python2 packages
Product: [Fedora] Fedora Reporter: fujiwara <tfujiwar>
Component: marisaAssignee: Daiki Ueno <dueno>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: dueno, i18n-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-03 16:36:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.