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

7b9ac7
# spec file for php-horde-Horde-Imap-Client
7b9ac7
#
8ff9e5
# Copyright (c) 2012-2015 Remi Collet
7b9ac7
# License: CC-BY-SA
7b9ac7
# http://creativecommons.org/licenses/by-sa/3.0/
7b9ac7
#
7b9ac7
# Please, preserve the changelog entries
7b9ac7
#
53bf59
%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
a38c9f
%{!?__pear:       %global __pear       %{_bindir}/pear}
53bf59
%global pear_name    Horde_Imap_Client
53bf59
%global pear_channel pear.horde.org
53bf59
53bf59
Name:           php-horde-Horde-Imap-Client
b1f854
Version:        2.26.1
53bf59
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
53bf59
# To run unit tests
ab5cc7
BuildRequires:  php-pear(%{pear_channel}/Horde_Test) >= 2.2.7
444ee7
BuildRequires:  php-pear(%{pear_channel}/Horde_Stream) >= 1.4.0
95078c
BuildRequires:  php-pear(%{pear_channel}/Horde_Mime) >= 2.5.2
8c8ab8
BuildRequires:  php-pear(%{pear_channel}/Horde_Cache) >= 2.0.0
ab5cc7
BuildRequires:  php-pear(%{pear_channel}/Horde_Pack) >= 1.0.0
53bf59
53bf59
Requires(post): %{__pear}
53bf59
Requires(postun): %{__pear}
33b4f6
# From package.xml, required
53bf59
Requires:       php(language) >= 5.3.0
53bf59
Requires:       php-hash
3a26d5
Requires:       php-intl
e5b3ce
Requires:       php-json
e5b3ce
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
95078c
Requires:       php-pear(%{pear_channel}/Horde_Mime) >= 2.5.2
4c4125
Requires:       php-pear(%{pear_channel}/Horde_Mime) <  3.0.0
e5b3ce
Requires:       php-pear(%{pear_channel}/Horde_Secret) >= 2.0.0
e5b3ce
Requires:       php-pear(%{pear_channel}/Horde_Secret) <  3.0.0
33b4f6
Requires:       php-pear(%{pear_channel}/Horde_Socket_Client) >= 1.1.0
33b4f6
Requires:       php-pear(%{pear_channel}/Horde_Socket_Client) <  2.0.0
444ee7
Requires:       php-pear(%{pear_channel}/Horde_Stream) >= 1.4.0
4c4125
Requires:       php-pear(%{pear_channel}/Horde_Stream) <  2.0.0
e5b3ce
Requires:       php-pear(%{pear_channel}/Horde_Stream_Filter) >= 2.0.0
e5b3ce
Requires:       php-pear(%{pear_channel}/Horde_Stream_Filter) <  3.0.0
b6d517
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
33b4f6
# 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
8c8ab8
Requires:       php-pear(%{pear_channel}/Horde_Db) >= 2.0.0
4c4125
Requires:       php-pear(%{pear_channel}/Horde_Db) <  3.0.0
33b4f6
Requires:       php-pear(%{pear_channel}/Horde_Pack) >= 1.0.0
33b4f6
Requires:       php-pear(%{pear_channel}/Horde_Pack) <  2.0.0
117acb
#Requires:       php-pear(%{pear_channel}/Horde_Stringprep) >= 1.0.0
117acb
#Requires:       php-pear(%{pear_channel}/Horde_Stringprep) <  2.0.0
1a9891
# From phpcompatinfo report for version 2.19.4
e5b3ce
Requires:       php-date
e5b3ce
Requires:       php-openssl
e5b3ce
Requires:       php-pcre
e5b3ce
Requires:       php-spl
8c8ab8
# Optional and implicilyt required :
444ee7
#   Horde_Compress_Fast, Horde_HashTable, Horde_Mongo, mongo, Horde_Support
53bf59
53bf59
Provides:       php-pear(%{pear_channel}/%{pear_name}) = %{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
933cca
sed -e '/%{pear_name}\.po/d' \
933cca
    -e '/%{pear_name}\.mo/s/md5sum=.*name=/name=/' \
53bf59
    ../package.xml >%{name}.xml
b7ce5d
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
53bf59
cd %{pear_name}-%{version}/test/$(echo %{pear_name} | sed -e s:_:/:g)
d29fae
%if 0%{?fedora} < 21 && 0%{?rhel} < 7
1eb11f
# ignore test results with old PHPUnit
1eb11f
phpunit . || exit 0
d29fae
%else
1eb11f
phpunit .
d29fae
%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
b1f854
* Tue Jan 27 2015 Remi Collet <remi@fedoraproject.org> - 2.26.1-1
b1f854
- Update to 2.26.1
b1f854
8ff9e5
* Wed Jan 07 2015 Remi Collet <remi@fedoraproject.org> - 2.26.0-1
8ff9e5
- Update to 2.26.0
8ff9e5
95078c
* Wed Dec 03 2014 Remi Collet <remi@fedoraproject.org> - 2.25.6-1
95078c
- Update to 2.25.6
95078c
- raise dependency on Horde_Mime >= 2.5.2
95078c
1eb11f
* Tue Nov 25 2014 Remi Collet <remi@fedoraproject.org> - 2.25.5-1
1eb11f
- Update to 2.25.5
1eb11f
933cca
* Sun Nov 23 2014 Remi Collet <remi@fedoraproject.org> - 2.25.4-1
933cca
- Update to 2.25.4
933cca
- raise dependency on Horde_Mime >= 2.5.0
933cca
b6d517
* Tue Nov 11 2014 Remi Collet <remi@fedoraproject.org> - 2.25.3-1
b6d517
- Update to 2.25.3
b6d517
- raise dependency on Horde_Translation >= 2.2.0
b6d517
117acb
* Tue Oct 14 2014 Remi Collet <remi@fedoraproject.org> - 2.25.2-1
117acb
- Update to 2.25.2
117acb
27eaba
* Wed Sep 17 2014 Remi Collet <remi@fedoraproject.org> - 2.25.1-1
27eaba
- Update to 2.25.1
27eaba
3a26d5
* Thu Sep 04 2014 Remi Collet <remi@fedoraproject.org> - 2.25.0-1
3a26d5
- Update to 2.25.0
3a26d5
- add dependency on php-intl
3a26d5
e58d88
* Tue Aug 12 2014 Remi Collet <remi@fedoraproject.org> - 2.24.2-1
e58d88
- Update to 2.24.2
e58d88
d0931c
* Mon Aug 11 2014 Remi Collet <remi@fedoraproject.org> - 2.24.1-1
d0931c
- Update to 2.24.1
d0931c
b54aa5
* Tue Aug 05 2014 Remi Collet <remi@fedoraproject.org> - 2.24.0-1
b54aa5
- Update to 2.24.0
b54aa5
b7ce5d
* Wed Jul 09 2014 Remi Collet <remi@fedoraproject.org> - 2.23.2-1
b7ce5d
- Update to 2.23.2
b7ce5d
8bb7cc
* Wed Jun 18 2014 Remi Collet <remi@fedoraproject.org> - 2.23.1-1
8bb7cc
- Update to 2.23.1
8bb7cc
0b54eb
* Tue Jun 17 2014 Remi Collet <remi@fedoraproject.org> - 2.23.0-1
0b54eb
- Update to 2.23.0
0b54eb
aeabcd
* Sat Jun 07 2014 Remi Collet <remi@fedoraproject.org> - 2.22.0-1
aeabcd
- Update to 2.22.0
aeabcd
f50082
* Wed Jun 04 2014 Remi Collet <remi@fedoraproject.org> - 2.21.0-1
f50082
- Update to 2.21.0
f50082
71b90f
* Thu May 22 2014 Remi Collet <remi@fedoraproject.org> - 2.20.0-1
71b90f
- Update to 2.20.0
71b90f
9829a0
* Wed May 14 2014 Remi Collet <remi@fedoraproject.org> - 2.19.6-1
9829a0
- Update to 2.19.6
9829a0
518f86
* Sat May 03 2014 Remi Collet <remi@fedoraproject.org> - 2.19.5-1
518f86
- Update to 2.19.5
518f86
1a9891
* Thu Apr 24 2014 Remi Collet <remi@fedoraproject.org> - 2.19.4-1
1a9891
- Update to 2.19.4
1a9891
be3c58
* Wed Apr 23 2014 Remi Collet <remi@fedoraproject.org> - 2.19.3-1
be3c58
- Update to 2.19.3
be3c58
8ff950
* Thu Apr 03 2014 Remi Collet <remi@fedoraproject.org> - 2.19.2-1
8ff950
- Update to 2.19.2
8ff950
941bd4
* Mon Mar 17 2014 Remi Collet <remi@fedoraproject.org> - 2.19.1-1
941bd4
- Update to 2.19.1
941bd4
ab5cc7
* Tue Mar 11 2014 Remi Collet <remi@fedoraproject.org> - 2.19.0-1
ab5cc7
- Update to 2.19.0
ab5cc7
- raise dependencies: Horde_Test 2.2.7, Horde_Mime 2.3.0
ab5cc7
- add BR on Horde_Pack
ab5cc7
bcaa40
* Tue Mar 04 2014 Remi Collet <remi@fedoraproject.org> - 2.18.6-1
bcaa40
- Update to 2.18.6
bcaa40
b8a046
* Tue Feb 25 2014 Remi Collet <remi@fedoraproject.org> - 2.18.3-1
b8a046
- Update to 2.18.3
b8a046
d81ae9
* Fri Feb 14 2014 Remi Collet <remi@fedoraproject.org> - 2.18.1-1
d81ae9
- Update to 2.18.1
d81ae9
444ee7
* Tue Feb 11 2014 Remi Collet <remi@fedoraproject.org> - 2.18.0-1
444ee7
- Update to 2.18.0
444ee7
- Raise dependencies: Horde_Stream >= 1.4.0, Horde_Translation >= 2.1.0
444ee7
a38c9f
* Wed Jan 22 2014 Remi Collet <remi@fedoraproject.org> - 2.17.1-1
a38c9f
- Update to 2.17.1
a38c9f
33b4f6
* Sat Jan 18 2014 Remi Collet <remi@fedoraproject.org> - 2.17.0-1
33b4f6
- Update to 2.17.0
33b4f6
- add dependency: Horde_Pack >= 1.0.0
33b4f6
- add dependency: Horde_Socket_Client >= 1.1.0
33b4f6
e5b3ce
* Sat Oct 12 2013 Remi Collet <remi@fedoraproject.org> - 2.15.5-1
e5b3ce
- Update to 2.15.5
e5b3ce
- Horde_Secret, Horde_Stream_Filter and json are now mandatory
e5b3ce
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