|
|
4cce7c2 |
# remirepo/fedora spec file for php-swiftmailer6
|
|
|
4cce7c2 |
#
|
|
|
8dbab21 |
# Copyright (c) 2016-2018 Remi Collet
|
|
|
4cce7c2 |
# License: CC-BY-SA
|
|
|
4cce7c2 |
# http://creativecommons.org/licenses/by-sa/4.0/
|
|
|
4cce7c2 |
#
|
|
|
4cce7c2 |
# Please preserve changelog entries
|
|
|
4cce7c2 |
#
|
|
|
9e7e446 |
%global gh_commit 8ddcb66ac10c392d3beb54829eef8ac1438595f4
|
|
|
4cce7c2 |
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
|
|
4cce7c2 |
%global gh_owner swiftmailer
|
|
|
4cce7c2 |
%global gh_project swiftmailer
|
|
|
4cce7c2 |
# don't change major version used in package name
|
|
|
4cce7c2 |
%global major 6
|
|
|
4cce7c2 |
%global with_tests 0%{!?_without_tests:1}
|
|
|
4cce7c2 |
%global php_home %{_datadir}/php
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
Name: php-%{gh_project}%{major}
|
|
|
9e7e446 |
Version: 6.1.3
|
|
|
6390579 |
Release: 2%{?dist}
|
|
|
4cce7c2 |
Summary: Free Feature-rich PHP Mailer
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
License: MIT
|
|
|
4cce7c2 |
URL: https://swiftmailer.symfony.com/
|
|
|
4cce7c2 |
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
BuildArch: noarch
|
|
|
4cce7c2 |
%if %{with_tests}
|
|
|
4cce7c2 |
BuildRequires: php(language) >= 7.0.0
|
|
|
5cd67c3 |
BuildRequires: (php-composer(egulias/email-validator) >= 2.0 with php-composer(egulias/email-validator) < 3)
|
|
|
5cd67c3 |
BuildRequires: php-intl
|
|
|
4cce7c2 |
BuildRequires: php-reflection
|
|
|
4cce7c2 |
BuildRequires: php-simplexml
|
|
|
4cce7c2 |
BuildRequires: php-bcmath
|
|
|
4cce7c2 |
BuildRequires: php-date
|
|
|
5cd67c3 |
BuildRequires: php-filter
|
|
|
4cce7c2 |
BuildRequires: php-hash
|
|
|
4cce7c2 |
BuildRequires: php-iconv
|
|
|
4cce7c2 |
BuildRequires: php-mbstring
|
|
|
4cce7c2 |
BuildRequires: php-mhash
|
|
|
4cce7c2 |
BuildRequires: php-openssl
|
|
|
4cce7c2 |
BuildRequires: php-pcre
|
|
|
4cce7c2 |
BuildRequires: php-spl
|
|
|
4cce7c2 |
BuildRequires: phpunit6
|
|
|
4cce7c2 |
BuildRequires: php-fedora-autoloader-devel
|
|
|
4cce7c2 |
# From composer.json, "require-dev": {
|
|
|
4cce7c2 |
# "mockery/mockery": "~0.9.1",
|
|
|
4cce7c2 |
# "symfony/phpunit-bridge": "~3.3@dev"
|
|
|
5cd67c3 |
BuildRequires: (php-composer(mockery/mockery) >= 0.9.1 with php-composer(mockery/mockery) < 1)
|
|
|
5cd67c3 |
BuildRequires: (php-composer(symfony/phpunit-bridge) >= 3.2 with php-composer(symfony/phpunit-bridge) < 4)
|
|
|
4cce7c2 |
%endif
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
# From composer.json, "require": {
|
|
|
4cce7c2 |
# "php": ">=7.0.0",
|
|
|
4cce7c2 |
# "egulias/email-validator": "~2.0"
|
|
|
4cce7c2 |
Requires: php(language) >= 7.0.0
|
|
|
5cd67c3 |
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
|
|
|
5cd67c3 |
Requires: (php-composer(egulias/email-validator) >= 2.0 with php-composer(egulias/email-validator) < 3)
|
|
|
5cd67c3 |
%endif
|
|
|
8dbab21 |
# From composer.json, "suggest": {
|
|
|
8dbab21 |
# "ext-intl": "Needed to support internationalized email addresses",
|
|
|
8dbab21 |
# "true/punycode": "Needed to support internationalized email addresses, if ext-intl is not installed"
|
|
|
8dbab21 |
Requires: php-intl
|
|
|
8dbab21 |
# from phpcompatinfo report on version 6.1.1
|
|
|
4cce7c2 |
Requires: php-reflection
|
|
|
4cce7c2 |
Requires: php-simplexml
|
|
|
4cce7c2 |
Requires: php-bcmath
|
|
|
4cce7c2 |
Requires: php-date
|
|
|
5cd67c3 |
Requires: php-filter
|
|
|
4cce7c2 |
Requires: php-hash
|
|
|
4cce7c2 |
Requires: php-iconv
|
|
|
4cce7c2 |
Requires: php-mbstring
|
|
|
4cce7c2 |
Requires: php-mhash
|
|
|
4cce7c2 |
Requires: php-openssl
|
|
|
4cce7c2 |
Requires: php-pcre
|
|
|
4cce7c2 |
Requires: php-spl
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
Provides: php-composer(%{gh_owner}/%{gh_project}) = %{version}
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
%description
|
|
|
4cce7c2 |
Swift Mailer integrates into any web app written in PHP, offering a
|
|
|
4cce7c2 |
flexible and elegant object-oriented approach to sending emails with
|
|
|
4cce7c2 |
a multitude of features.
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
Autoloader: %{php_home}/Swift%{major}/autoload.php
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
%prep
|
|
|
4cce7c2 |
%setup -q -n %{gh_project}-%{gh_commit}
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
cat << 'EOF' | tee lib/autoload.php
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
/* Autoloader for %{name} and its' dependencies */
|
|
|
4cce7c2 |
require_once '%{php_home}/Egulias/EmailValidator2/autoload.php';
|
|
|
4cce7c2 |
require_once __DIR__ . '/swift_required.php';
|
|
|
4cce7c2 |
EOF
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
%build
|
|
|
4cce7c2 |
# Empty build section, most likely nothing required.
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
%install
|
|
|
4cce7c2 |
mkdir -p %{buildroot}/%{php_home}/Swift%{major}
|
|
|
4cce7c2 |
cp -p lib/*.php %{buildroot}/%{php_home}/Swift%{major}/
|
|
|
4cce7c2 |
cp -pr lib/classes %{buildroot}/%{php_home}/Swift%{major}/
|
|
|
4cce7c2 |
cp -pr lib/dependency_maps %{buildroot}/%{php_home}/Swift%{major}/
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
%check
|
|
|
4cce7c2 |
%if %{with_tests}
|
|
|
4cce7c2 |
: Use installed tree and autoloader
|
|
|
4cce7c2 |
mkdir vendor
|
|
|
4cce7c2 |
%{_bindir}/phpab --format fedora --output vendor/autoload.php tests
|
|
|
4cce7c2 |
cat << 'EOF' | tee -a vendor/autoload.php
|
|
|
4cce7c2 |
require_once '%{buildroot}/%{php_home}/Swift%{major}/autoload.php';
|
|
|
4cce7c2 |
require_once '%{php_home}/Mockery/autoload.php';
|
|
|
4cce7c2 |
\Fedora\Autoloader\Autoload::addPsr4('Symfony\\Bridge\\PhpUnit\\', '%{php_home}/Symfony3/Bridge/PhpUnit');
|
|
|
4cce7c2 |
EOF
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
: Avoid duplicated classes
|
|
|
4cce7c2 |
find tests -name \*.php -exec sed -e '/swift_required/d' -i {} \;
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
TMPDIR=$(mktemp -d $PWD/rpmtests-XXXXXXXX)
|
|
|
4cce7c2 |
cat << EOF | tee tests/acceptance.conf.php
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
define('SWIFT_TMP_DIR', '$TMPDIR');
|
|
|
4cce7c2 |
EOF
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
: Run upstream test suite
|
|
|
4cce7c2 |
ret=0
|
|
|
5cd67c3 |
for cmd in php php70 php71 php72 php73; do
|
|
|
4cce7c2 |
if which $cmd; then
|
|
|
4cce7c2 |
$cmd %{_bindir}/phpunit6 --exclude smoke --verbose || ret=1
|
|
|
4cce7c2 |
fi
|
|
|
4cce7c2 |
done
|
|
|
4cce7c2 |
rm -r $TMPDIR
|
|
|
4cce7c2 |
exit $ret
|
|
|
4cce7c2 |
%endif
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
%files
|
|
|
4cce7c2 |
%{!?_licensedir:%global license %%doc}
|
|
|
4cce7c2 |
%license LICENSE
|
|
|
4cce7c2 |
%doc CHANGES README
|
|
|
4cce7c2 |
%doc doc
|
|
|
4cce7c2 |
%doc composer.json
|
|
|
4cce7c2 |
%{php_home}/Swift%{major}
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
%changelog
|
|
|
6390579 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.1.3-2
|
|
|
6390579 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
6390579 |
|
|
|
9e7e446 |
* Tue Sep 11 2018 Remi Collet <remi@remirepo.net> - 6.1.3-1
|
|
|
9e7e446 |
- update to 6.1.3
|
|
|
9e7e446 |
|
|
|
8dbab21 |
* Fri Jul 13 2018 Remi Collet <remi@remirepo.net> - 6.1.2-1
|
|
|
8dbab21 |
- update to 6.1.2
|
|
|
8dbab21 |
|
|
|
6d8219a |
* Wed Jul 4 2018 Remi Collet <remi@remirepo.net> - 6.1.1-1
|
|
|
6d8219a |
- update to 6.1.1
|
|
|
6d8219a |
|
|
|
5cd67c3 |
* Tue Jul 3 2018 Remi Collet <remi@remirepo.net> - 6.1.0-1
|
|
|
5cd67c3 |
- update to 6.1.0
|
|
|
5cd67c3 |
- add dependency on intl extension
|
|
|
5cd67c3 |
- use range dependencies
|
|
|
5cd67c3 |
|
|
|
4240019 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.2-2
|
|
|
4240019 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
4240019 |
|
|
|
4cce7c2 |
* Wed Oct 4 2017 Remi Collet <remi@remirepo.net> - 6.0.2-1
|
|
|
4cce7c2 |
- Update to 6.0.2
|
|
|
4cce7c2 |
- rename to php-swiftmailer6
|
|
|
4cce7c2 |
- raise dependency on PHP 7.0
|
|
|
4cce7c2 |
- add dependency on egulias/email-validator 2.0
|
|
|
4cce7c2 |
- use phpunit6 for test suite
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
* Wed Oct 4 2017 Remi Collet <remi@remirepo.net> - 5.4.8-3
|
|
|
4cce7c2 |
- drop unneeded dependency on php-mcrypt
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
* Wed May 10 2017 Remi Collet <remi@remirepo.net> - 5.4.8-1
|
|
|
4cce7c2 |
- Update to 5.4.8
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
* Fri Apr 21 2017 Remi Collet <remi@remirepo.net> - 5.4.7-1
|
|
|
4cce7c2 |
- Update to 5.4.7
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
* Mon Feb 13 2017 Remi Collet <remi@fedoraproject.org> - 5.4.6-1
|
|
|
4cce7c2 |
- update to 5.4.6
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
* Thu Dec 29 2016 Remi Collet <remi@fedoraproject.org> - 5.4.5-1
|
|
|
4cce7c2 |
- update to 5.4.5
|
|
|
4cce7c2 |
- fix Remote Code Execution CVE-2016-10074
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
* Thu Nov 24 2016 Remi Collet <remi@fedoraproject.org> - 5.4.4-1
|
|
|
4cce7c2 |
- update to 5.4.4
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
* Fri Jul 8 2016 Remi Collet <remi@fedoraproject.org> - 5.4.3-1
|
|
|
4cce7c2 |
- update to 5.4.3
|
|
|
4cce7c2 |
- drop patch merged upstream
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
* Tue Jun 14 2016 Remi Collet <remi@fedoraproject.org> - 5.4.2-2
|
|
|
4cce7c2 |
- add patch to allow mockery 0.9.x
|
|
|
4cce7c2 |
open https://github.com/swiftmailer/swiftmailer/pull/769
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
* Mon May 2 2016 Remi Collet <remi@fedoraproject.org> - 5.4.2-1
|
|
|
4cce7c2 |
- update to 5.4.2
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
* Fri Mar 25 2016 Remi Collet <remi@fedoraproject.org> - 5.4.1-2
|
|
|
4cce7c2 |
- rebuild for remi repository
|
|
|
4cce7c2 |
|
|
|
4cce7c2 |
* Fri Oct 16 2015 Remi Collet <remi@fedoraproject.org> - 5.4.1-1
|
|
|
4cce7c2 |
- initial rpm, version 5.4.1
|
|
|
4cce7c2 |
- sources from github, pear channel is dead
|
|
|
4cce7c2 |
|