public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/perl-SQL-Translator] epel10.2: Add a build condition for disabling Excel file format support
Date: Fri, 07 Aug 2026 12:47:55 GMT	[thread overview]
Message-ID: <178610687556.1.5042692909745213116.rpms-perl-SQL-Translator-47d8350b45da@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/perl-SQL-Translator
Branch : epel10.2
Commit : 47d8350b45dab6698144a4085f772e978b7c0e1e
Author : Petr Písař <ppisar@redhat.com>
Date   : 2018-01-05T11:42:12+01:00
Stats  : +13/-1 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/perl-SQL-Translator/c/47d8350b45dab6698144a4085f772e978b7c0e1e?branch=epel10.2

Log:
Add a build condition for disabling Excel file format support

---
diff --git a/perl-SQL-Translator.spec b/perl-SQL-Translator.spec
index 8345861..57f0d0f 100644
--- a/perl-SQL-Translator.spec
+++ b/perl-SQL-Translator.spec
@@ -1,3 +1,6 @@
+# Enable Excel file format support
+%bcond_without perl_SQL_Translator_enables_excel
+
 Name:           perl-SQL-Translator
 Summary:        Manipulate structured data definitions (SQL and more)
 Version:        0.11023
@@ -62,7 +65,9 @@ BuildRequires:  perl(overload)
 BuildRequires:  perl(Package::Variant) >= 1.001001
 BuildRequires:  perl(Pod::Usage)
 BuildRequires:  perl(Scalar::Util)
+%if %{with perl_SQL_Translator_enables_excel}
 BuildRequires:  perl(Spreadsheet::ParseExcel) >= 0.41
+%endif
 BuildRequires:  perl(Storable)
 BuildRequires:  perl(Sub::Quote)
 BuildRequires:  perl(Template) >= 2.20
@@ -100,7 +105,9 @@ Requires:       perl(JSON) >= 2.0
 Requires:       perl(overload)
 Requires:       perl(Package::Variant) >= 1.001001
 Requires:       perl(Parse::RecDescent) >= 1.967009
+%if %{with perl_SQL_Translator_enables_excel}
 Requires:       perl(Spreadsheet::ParseExcel) >= 0.41
+%endif
 Requires:       perl(Template) >= 2.20
 Requires:       perl(Test::More) >= 0.88
 Requires:       perl(Text::RecordParser) >= 0.02
@@ -120,7 +127,7 @@ SQL::Translator is a group of Perl modules that converts vendor-specific
 SQL table definitions into other formats, such as other vendor-specific
 SQL, ER diagrams, documentation (POD and HTML), XML, and Class::DBI
 classes.  The main focus of SQL::Translator is SQL, but parsers exist
-for other structured data formats, including Excel spreadsheets and
+for other structured data formats%{?with_perl_SQL_Translator_enables_excel:, including Excel spreadsheets} and
 arbitrarily delimited text files.  Through the separation of the code into
 parsers and producers with an object model in between, it’s possible to
 combine any parser with any producer, to plug in custom parsers or
@@ -143,6 +150,11 @@ sed -i -e '/^inc\//d' MANIFEST
 sed -i -e '1 s|^#!/usr/bin/env perl|#!%{__perl}|' script/*
 # Fix permission, CPAN RT#100532
 chmod -x lib/SQL/Translator/Parser/JSON.pm
+%if %{without perl_SQL_Translator_enables_excel}
+# Remove Excel support
+rm lib/SQL/Translator/Parser/Excel.pm
+sed -i -e '/^lib\/SQL\/Translator\/Parser\/Excel\.pm/d' MANIFEST
+%endif
 
 %build
 perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1

                 reply	other threads:[~2026-08-07 12:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178610687556.1.5042692909745213116.rpms-perl-SQL-Translator-47d8350b45da@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox