Blame php-horde-Horde-Imap-Client.spec

7e9181
# remirepo/fedora spec file for php-horde-Horde-Imap-Client
7b9ac7
#
Remi Collet b50b32
# Copyright (c) 2012-2016 Remi Collet
7b9ac7
# License: CC-BY-SA
37aad8
# http://creativecommons.org/licenses/by-sa/4.0/
7b9ac7
#
7b9ac7
# Please, preserve the changelog entries
7b9ac7
#
271bb0
%{!?__pear:       %global __pear       %{_bindir}/pear}
53bf59
%global pear_name    Horde_Imap_Client
53bf59
%global pear_channel pear.horde.org
c86954
%global with_tests   %{?_without_tests:0}%{!?_without_tests:1}
53bf59
53bf59
Name:           php-horde-Horde-Imap-Client
57b651
Version:        2.29.8
Remi Collet b50b32
Release:        1%{?dist}
53bf59
Summary:        Horde IMAP abstraction interface
53bf59
53bf59
Group:          Development/Libraries
53bf59
License:        LGPLv2
53bf59
URL:            http://pear.horde.org
53bf59
Source0:        http://%{pear_channel}/get/%{pear_name}-%{version}.tgz
53bf59
53bf59
BuildArch:      noarch
53bf59
BuildRequires:  php(language) >= 5.3.0
53bf59
BuildRequires:  php-pear(PEAR) >= 1.7.0
53bf59
BuildRequires:  php-channel(%{pear_channel})
53bf59
BuildRequires:  gettext
c86954
%if %{with_tests}
53bf59
# To run unit tests
4f97f8
BuildRequires:  php-pear(%{pear_channel}/Horde_Test) >= 2.2.7
e938ea
BuildRequires:  php-pear(%{pear_channel}/Horde_Stream) >= 1.4.0
fc5fc0
BuildRequires:  php-pear(%{pear_channel}/Horde_Mime) >= 2.5.2
8c8ab8
BuildRequires:  php-pear(%{pear_channel}/Horde_Cache) >= 2.0.0
4f97f8
BuildRequires:  php-pear(%{pear_channel}/Horde_Pack) >= 1.0.0
7e9181
BuildRequires:  php-pear(%{pear_channel}/Horde_Crypt_Blowfish) >= 1.1.0
7e9181
BuildRequires:  php-pear(%{pear_channel}/Horde_Stringprep) >= 1.0.0
c86954
%endif
53bf59
53bf59
Requires(post): %{__pear}
53bf59
Requires(postun): %{__pear}
65eb81
# From package.xml, required
53bf59
Requires:       php(language) >= 5.3.0
53bf59
Requires:       php-hash
d05a59
Requires:       php-intl
04b694
Requires:       php-json
cbd998
Requires:       php-pear(PEAR) >= 1.7.0
53bf59
Requires:       php-channel(%{pear_channel})
53bf59
Requires:       php-pear(%{pear_channel}/Horde_Exception) >= 2.0.0
4c4125
Requires:       php-pear(%{pear_channel}/Horde_Exception) <  3.0.0
53bf59
Requires:       php-pear(%{pear_channel}/Horde_Mail) >= 2.0.0
4c4125
Requires:       php-pear(%{pear_channel}/Horde_Mail) <  3.0.0
fc5fc0
Requires:       php-pear(%{pear_channel}/Horde_Mime) >= 2.5.2
4c4125
Requires:       php-pear(%{pear_channel}/Horde_Mime) <  3.0.0
04b694
Requires:       php-pear(%{pear_channel}/Horde_Secret) >= 2.0.0
04b694
Requires:       php-pear(%{pear_channel}/Horde_Secret) <  3.0.0
c86954
Requires:       php-pear(%{pear_channel}/Horde_Socket_Client) >= 2.0.0
c86954
Requires:       php-pear(%{pear_channel}/Horde_Socket_Client) <  3
e938ea
Requires:       php-pear(%{pear_channel}/Horde_Stream) >= 1.4.0
4c4125
Requires:       php-pear(%{pear_channel}/Horde_Stream) <  2.0.0
04b694
Requires:       php-pear(%{pear_channel}/Horde_Stream_Filter) >= 2.0.0
04b694
Requires:       php-pear(%{pear_channel}/Horde_Stream_Filter) <  3.0.0
bbbc3d
Requires:       php-pear(%{pear_channel}/Horde_Translation) >= 2.2.0
c4d619
Requires:       php-pear(%{pear_channel}/Horde_Translation) <  3.0.0
53bf59
Requires:       php-pear(%{pear_channel}/Horde_Util) >= 2.0.0
4c4125
Requires:       php-pear(%{pear_channel}/Horde_Util) <  3.0.0
65eb81
# From package.xml, optional
53bf59
Requires:       php-mbstring
53bf59
Requires:       php-pear(%{pear_channel}/Horde_Cache) >= 2.0.0
4c4125
Requires:       php-pear(%{pear_channel}/Horde_Cache) <  3.0.0
Remi Collet b50b32
Requires:       php-pear(%{pear_channel}/Horde_Db) >= 2.2.0
4c4125
Requires:       php-pear(%{pear_channel}/Horde_Db) <  3.0.0
65eb81
Requires:       php-pear(%{pear_channel}/Horde_Pack) >= 1.0.0
65eb81
Requires:       php-pear(%{pear_channel}/Horde_Pack) <  2.0.0
7e9181
Requires:       php-pear(%{pear_channel}/Horde_Stringprep) >= 1.0.0
7e9181
Requires:       php-pear(%{pear_channel}/Horde_Stringprep) <  2.0.0
01d87f
# From phpcompatinfo report for version 2.19.4
cbd998
Requires:       php-date
cbd998
Requires:       php-openssl
cbd998
Requires:       php-pcre
cbd998
Requires:       php-spl
8c8ab8
# Optional and implicilyt required :
e938ea
#   Horde_Compress_Fast, Horde_HashTable, Horde_Mongo, mongo, Horde_Support
7e9181
#   Horde_Crypt_Blowfish
53bf59
53bf59
Provides:       php-pear(%{pear_channel}/%{pear_name}) = %{version}
c86954
Provides:       php-composer(horde/horde-imap-client) = %{version}
53bf59
53bf59
53bf59
%description
53bf59
An abstracted API interface to various IMAP4rev1 (RFC 3501) backend
53bf59
drivers.
53bf59
53bf59
53bf59
%prep
53bf59
%setup -q -c
53bf59
cd %{pear_name}-%{version}
53bf59
53bf59
# Don't install .po and .pot files
53bf59
# Remove checksum for .mo, as we regenerate them
5c4d6c
sed -e '/%{pear_name}\.po/d' \
5c4d6c
    -e '/%{pear_name}\.mo/s/md5sum=.*name=/name=/' \
53bf59
    ../package.xml >%{name}.xml
9b542c
touch -r ../package.xml %{name}.xml
53bf59
53bf59
53bf59
%build
53bf59
cd %{pear_name}-%{version}
53bf59
53bf59
# Regenerate the locales
53bf59
for po in $(find locale -name \*.po)
53bf59
do
53bf59
   msgfmt $po -o $(dirname $po)/$(basename $po .po).mo
53bf59
done
53bf59
53bf59
53bf59
%install
53bf59
cd %{pear_name}-%{version}
53bf59
%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml
53bf59
53bf59
# Clean up unnecessary files
53bf59
rm -rf %{buildroot}%{pear_metadir}/.??*
53bf59
53bf59
# Install XML package description
53bf59
mkdir -p %{buildroot}%{pear_xmldir}
53bf59
install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
53bf59
53bf59
# Locales
53bf59
for loc in locale/{??,??_??}
53bf59
do
53bf59
    lang=$(basename $loc)
53bf59
    test -d $loc && echo "%%lang(${lang%_*}) %{pear_datadir}/%{pear_name}/$loc"
53bf59
done | tee ../%{pear_name}.lang
53bf59
53bf59
53bf59
%check
c86954
%if %{with_tests}
7e9181
export LANG=fr_FR.utf8
53bf59
cd %{pear_name}-%{version}/test/$(echo %{pear_name} | sed -e s:_:/:g)
e478ce
e478ce
if %{_bindir}/phpunit --atleast-version 4.8; then
e478ce
   %{_bindir}/phpunit --verbose .
e478ce
else
e478ce
   : PHPUnit is too old for this package
e478ce
fi
c86954
%else
c86954
: bootstrap build with test suite disabled
c86954
%endif
53bf59
53bf59
53bf59
%post
53bf59
%{__pear} install --nodeps --soft --force --register-only \
53bf59
    %{pear_xmldir}/%{name}.xml >/dev/null || :
53bf59
53bf59
%postun
53bf59
if [ $1 -eq 0 ] ; then
53bf59
    %{__pear} uninstall --nodeps --ignore-errors --register-only \
53bf59
        %{pear_channel}/%{pear_name} >/dev/null || :
53bf59
fi
53bf59
53bf59
53bf59
%files -f %{pear_name}.lang
53bf59
%doc %{pear_docdir}/%{pear_name}
53bf59
%{pear_xmldir}/%{name}.xml
53bf59
%dir %{pear_phpdir}/Horde/Imap
53bf59
%{pear_phpdir}/Horde/Imap/Client
53bf59
%{pear_phpdir}/Horde/Imap/Client.php
53bf59
%{pear_testdir}/%{pear_name}
53bf59
%dir %{pear_datadir}/%{pear_name}
53bf59
%dir %{pear_datadir}/%{pear_name}/locale
8c8ab8
%{pear_datadir}/%{pear_name}/migration
53bf59
53bf59
53bf59
%changelog
57b651
* Sat Jul 02 2016 Remi Collet <remi@fedoraproject.org> - 2.29.8-1
57b651
- Update to 2.29.8
57b651
e478ce
* Thu Jun 02 2016 Remi Collet <remi@fedoraproject.org> - 2.29.7-1
e478ce
- Update to 2.29.7
e478ce
ec7c9e
* Mon Mar 21 2016 Remi Collet <remi@fedoraproject.org> - 2.29.6-1
ec7c9e
- Update to 2.29.6
ec7c9e
Remi Collet b50b32
* Mon Feb  8 2016 Remi Collet <remi@fedoraproject.org> - 2.29.5-1
Remi Collet b50b32
- Update to 2.29.5
Remi Collet b50b32
- PHP 7 compatible version
Remi Collet b50b32
501819
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.29.4-2
501819
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
501819
3c951f
* Wed Nov 25 2015 Remi Collet <remi@fedoraproject.org> - 2.29.4-1
3c951f
- Update to 2.29.4
3c951f
f60a39
* Tue Sep 08 2015 Remi Collet <remi@fedoraproject.org> - 2.29.3-1
f60a39
- Update to 2.29.3
f60a39
0b3de6
* Wed Sep 02 2015 Remi Collet <remi@fedoraproject.org> - 2.29.2-1
0b3de6
- Update to 2.29.2
0b3de6
f25c99
* Wed Jul 15 2015 Remi Collet <remi@fedoraproject.org> - 2.29.1-1
f25c99
- Update to 2.29.1
f25c99
7e9181
* Mon Jun 22 2015 Remi Collet <remi@fedoraproject.org> - 2.29.0-1
7e9181
- Update to 2.29.0
7e9181
- add BR on Horde_Crypt_Blowfish and Horde_Stringprep
7e9181
- add optional dependency on Horde_Stringprep
7e9181
92f616
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.28.1-2
92f616
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
92f616
918938
* Wed May 13 2015 Remi Collet <remi@fedoraproject.org> - 2.28.1-1
918938
- Update to 2.28.1
918938
37aad8
* Tue Apr 28 2015 Remi Collet <remi@fedoraproject.org> - 2.28.0-1
37aad8
- Update to 2.28.0
37aad8
c86954
* Tue Mar 10 2015 Remi Collet <remi@fedoraproject.org> - 2.27.0-1
c86954
- Update to 2.27.0
c86954
- add provides php-composer(horde/horde-imap-client)
c86954
- raise dependency on Horde_Socket_Client > 2
c86954
5e14d8
* Tue Jan 27 2015 Remi Collet <remi@fedoraproject.org> - 2.26.1-1
5e14d8
- Update to 2.26.1
5e14d8
0b604a
* Tue Jan 13 2015 Remi Collet <remi@fedoraproject.org> - 2.26.0-2
0b604a
- add upstream for stream change in php
0b604a
25f17b
* Wed Jan 07 2015 Remi Collet <remi@fedoraproject.org> - 2.26.0-1
25f17b
- Update to 2.26.0
25f17b
fc5fc0
* Wed Dec 03 2014 Remi Collet <remi@fedoraproject.org> - 2.25.6-1
fc5fc0
- Update to 2.25.6
fc5fc0
- raise dependency on Horde_Mime >= 2.5.2
fc5fc0
b6e618
* Tue Nov 25 2014 Remi Collet <remi@fedoraproject.org> - 2.25.5-1
b6e618
- Update to 2.25.5
b6e618
5c4d6c
* Sun Nov 23 2014 Remi Collet <remi@fedoraproject.org> - 2.25.4-1
5c4d6c
- Update to 2.25.4
5c4d6c
- raise dependency on Horde_Mime >= 2.5.0
5c4d6c
bbbc3d
* Tue Nov 11 2014 Remi Collet <remi@fedoraproject.org> - 2.25.3-1
bbbc3d
- Update to 2.25.3
bbbc3d
- raise dependency on Horde_Translation >= 2.2.0
bbbc3d
c1731d
* Tue Oct 14 2014 Remi Collet <remi@fedoraproject.org> - 2.25.2-1
c1731d
- Update to 2.25.2
c1731d
95e2b6
* Wed Sep 17 2014 Remi Collet <remi@fedoraproject.org> - 2.25.1-1
95e2b6
- Update to 2.25.1
95e2b6
d05a59
* Thu Sep 04 2014 Remi Collet <remi@fedoraproject.org> - 2.25.0-1
d05a59
- Update to 2.25.0
d05a59
- add dependency on php-intl
d05a59
583439
* Tue Aug 12 2014 Remi Collet <remi@fedoraproject.org> - 2.24.2-1
583439
- Update to 2.24.2
583439
5f4365
* Mon Aug 11 2014 Remi Collet <remi@fedoraproject.org> - 2.24.1-1
5f4365
- Update to 2.24.1
5f4365
e58779
* Tue Aug 05 2014 Remi Collet <remi@fedoraproject.org> - 2.24.0-1
e58779
- Update to 2.24.0
e58779
9b542c
* Wed Jul 09 2014 Remi Collet <remi@fedoraproject.org> - 2.23.2-1
9b542c
- Update to 2.23.2
9b542c
cce515
* Wed Jun 18 2014 Remi Collet <remi@fedoraproject.org> - 2.23.1-1
cce515
- Update to 2.23.1
cce515
e62954
* Tue Jun 17 2014 Remi Collet <remi@fedoraproject.org> - 2.23.0-1
e62954
- Update to 2.23.0
e62954
0c878f
* Sat Jun 07 2014 Remi Collet <remi@fedoraproject.org> - 2.22.0-1
0c878f
- Update to 2.22.0
0c878f
14da8c
* Wed Jun 04 2014 Remi Collet <remi@fedoraproject.org> - 2.21.0-1
14da8c
- Update to 2.21.0
14da8c
4297d9
* Thu May 22 2014 Remi Collet <remi@fedoraproject.org> - 2.20.0-1
4297d9
- Update to 2.20.0
4297d9
0c17a1
* Wed May 14 2014 Remi Collet <remi@fedoraproject.org> - 2.19.6-1
0c17a1
- Update to 2.19.6
0c17a1
b5359c
* Sat May 03 2014 Remi Collet <remi@fedoraproject.org> - 2.19.5-1
b5359c
- Update to 2.19.5
b5359c
01d87f
* Thu Apr 24 2014 Remi Collet <remi@fedoraproject.org> - 2.19.4-1
01d87f
- Update to 2.19.4
01d87f
3c1c07
* Wed Apr 23 2014 Remi Collet <remi@fedoraproject.org> - 2.19.3-1
3c1c07
- Update to 2.19.3
3c1c07
e4bcfa
* Thu Apr 03 2014 Remi Collet <remi@fedoraproject.org> - 2.19.2-1
e4bcfa
- Update to 2.19.2
e4bcfa
1d9257
* Mon Mar 17 2014 Remi Collet <remi@fedoraproject.org> - 2.19.1-1
1d9257
- Update to 2.19.1
1d9257
4f97f8
* Tue Mar 11 2014 Remi Collet <remi@fedoraproject.org> - 2.19.0-1
4f97f8
- Update to 2.19.0
4f97f8
- raise dependencies: Horde_Test 2.2.7, Horde_Mime 2.3.0
4f97f8
- add BR on Horde_Pack
4f97f8
669256
* Tue Mar 04 2014 Remi Collet <remi@fedoraproject.org> - 2.18.6-1
669256
- Update to 2.18.6
669256
9df408
* Tue Feb 25 2014 Remi Collet <remi@fedoraproject.org> - 2.18.3-1
9df408
- Update to 2.18.3
9df408
b4ebab
* Fri Feb 14 2014 Remi Collet <remi@fedoraproject.org> - 2.18.1-1
b4ebab
- Update to 2.18.1
b4ebab
e938ea
* Tue Feb 11 2014 Remi Collet <remi@fedoraproject.org> - 2.18.0-1
e938ea
- Update to 2.18.0
e938ea
- Raise dependencies: Horde_Stream >= 1.4.0, Horde_Translation >= 2.1.0
e938ea
271bb0
* Wed Jan 22 2014 Remi Collet <remi@fedoraproject.org> - 2.17.1-1
271bb0
- Update to 2.17.1
271bb0
65eb81
* Sat Jan 18 2014 Remi Collet <remi@fedoraproject.org> - 2.17.0-1
65eb81
- Update to 2.17.0
65eb81
- add dependency: Horde_Pack >= 1.0.0
65eb81
- add dependency: Horde_Socket_Client >= 1.1.0
65eb81
a1b954
* Sat Oct 12 2013 Remi Collet <remi@fedoraproject.org> - 2.15.5-1
a1b954
- Update to 2.15.5
a1b954
11b592
* Thu Oct 10 2013 Remi Collet <remi@fedoraproject.org> - 2.15.4-1
11b592
- Update to 2.15.4
11b592
cbd998
* Tue Sep 17 2013 Remi Collet <remi@fedoraproject.org> - 2.15.3-1
cbd998
- Update to 2.15.3
cbd998
184c78
* Mon Sep 16 2013 Remi Collet <remi@fedoraproject.org> - 2.15.2-1
184c78
- Update to 2.15.2
184c78
b808d4
* Sun Sep 08 2013 Remi Collet <remi@fedoraproject.org> - 2.15.0-1
b808d4
- Update to 2.15.0
b808d4
e1f9a9
* Mon Aug 26 2013 Remi Collet <remi@fedoraproject.org> - 2.14.0-1
e1f9a9
- Update to 2.14.0
e1f9a9
8f74b5
* Wed Aug 21 2013 Remi Collet <remi@fedoraproject.org> - 2.13.1-1
8f74b5
- Update to 2.13.1
8f74b5
1149e0
* Tue Aug 20 2013 Remi Collet <remi@fedoraproject.org> - 2.13.0-1
1149e0
- Update to 2.13.0
1149e0
04b694
* Thu Jul 25 2013 Remi Collet <remi@fedoraproject.org> - 2.12.0-1
04b694
- Update to 2.12.0
04b694
- Horde_Secret, Horde_Stream_Filter and json are now mandatory
04b694
7b9ac7
* Wed Jun 19 2013 Remi Collet <remi@fedoraproject.org> - 2.11.6-1
7b9ac7
- Update to 2.11.6
7b9ac7
c4d619
* Fri May 31 2013 Remi Collet <remi@fedoraproject.org> - 2.11.2-1
c4d619
- Update to 2.11.2
c4d619
- add mising requires on Horde_Translation
c4d619
4c4125
* Tue May 21 2013 Remi Collet <remi@fedoraproject.org> - 2.10.1-1
4c4125
- Update to 2.10.1
4c4125
- switch from Conflicts >= max to Requires < max
4c4125
8c8ab8
* Sat May 04 2013 Remi Collet <remi@fedoraproject.org> - 2.9.0-1
8c8ab8
- Update to 2.9.0
8c8ab8
- drop optional requires imap
8c8ab8
- add optional dependency on Horde_Db
8c8ab8
c1e6a4
* Fri Apr 19 2013 Remi Collet <remi@fedoraproject.org> - 2.8.2-1
c1e6a4
- Update to 2.8.2
c1e6a4
53bf59
* Fri Mar 29 2013 Remi Collet <remi@fedoraproject.org> - 2.8.1-1
53bf59
- Update to 2.8.1
53bf59
53bf59
* Wed Mar 27 2013 Remi Collet <remi@fedoraproject.org> - 2.8.0-1
53bf59
- Update to 2.8.0
53bf59
53bf59
* Sat Mar 09 2013 Remi Collet <remi@fedoraproject.org> - 2.7.2-1
53bf59
- Update to 2.7.2
53bf59
53bf59
* Wed Mar 06 2013 Remi Collet <remi@fedoraproject.org> - 2.7.1-1
53bf59
- Update to 2.7.1
53bf59
53bf59
* Tue Feb 26 2013 Remi Collet <remi@fedoraproject.org> - 2.7.0-1
53bf59
- Update to 2.7.0
53bf59
53bf59
* Sat Feb 09 2013 Remi Collet <remi@fedoraproject.org> - 2.6.0-1
53bf59
- Update to 2.6.0
53bf59
53bf59
* Wed Jan 23 2013 Remi Collet <remi@fedoraproject.org> - 2.5.0-1
53bf59
- Update to 2.5.0
53bf59
53bf59
* Sat Jan  5 2013 Remi Collet <remi@fedoraproject.org> - 2.4.2-1
53bf59
- Update to 2.4.2
53bf59
53bf59
* Fri Dec 21 2012 Remi Collet <remi@fedoraproject.org> - 2.4.1-1
53bf59
- Update to 2.4.1
53bf59
53bf59
* Tue Dec 18 2012 Remi Collet <remi@fedoraproject.org> - 2.4.0-1
53bf59
- Update to 2.4.0
53bf59
53bf59
* Sat Dec  8 2012 Remi Collet <remi@fedoraproject.org> - 2.3.2-1
53bf59
- Update to 2.3.2
53bf59
53bf59
* Tue Dec  4 2012 Remi Collet <remi@fedoraproject.org> - 2.3.0-1
53bf59
- Update to 2.3.0
53bf59
53bf59
* Wed Nov 28 2012 Remi Collet <remi@fedoraproject.org> - 2.2.3-1
53bf59
- Update to 2.2.3
53bf59
53bf59
* Tue Nov 27 2012 Remi Collet <remi@fedoraproject.org> - 2.2.2-1
53bf59
- Update to 2.2.2
53bf59
- review locale management
53bf59
53bf59
* Thu Nov 22 2012 Remi Collet <remi@fedoraproject.org> - 2.2.1-1
53bf59
- Update to 2.2.1
53bf59
53bf59
* Mon Nov 19 2012 Remi Collet <remi@fedoraproject.org> - 2.2.0-1
53bf59
- Update to 2.2.0
53bf59
53bf59
* Mon Nov 12 2012 Remi Collet <remi@fedoraproject.org> - 2.1.6-1
53bf59
- Update to 2.1.6
53bf59
53bf59
* Wed Nov  7 2012 Remi Collet <remi@fedoraproject.org> - 2.1.5-1
53bf59
- Update to 2.1.5
53bf59
53bf59
* Tue Nov  6 2012 Remi Collet <remi@fedoraproject.org> - 2.1.3-1
53bf59
- Update to 2.1.3
53bf59
53bf59
* Sun Nov  4 2012 Remi Collet <remi@fedoraproject.org> - 2.1.1-1
53bf59
- Update to 2.1.1
53bf59
53bf59
* Sat Nov  3 2012 Remi Collet <remi@fedoraproject.org> - 2.0.0-1
53bf59
- Update to 2.0.0
53bf59