|
|
bbc5e26 |
# spec file for php-pear-Text-CAPTCHA
|
|
|
bbc5e26 |
#
|
|
|
2a4b750 |
# Copyright (c) 2013-2014 Remi Collet
|
|
|
bbc5e26 |
# License: CC-BY-SA
|
|
|
bbc5e26 |
# http://creativecommons.org/licenses/by-sa/3.0/
|
|
|
bbc5e26 |
#
|
|
|
bbc5e26 |
# Please, preserve the changelog entries
|
|
|
bbc5e26 |
#
|
|
|
54f45e4 |
%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
|
|
|
54f45e4 |
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
|
|
|
54f45e4 |
%global pear_name Text_CAPTCHA
|
|
|
54f45e4 |
|
|
|
54f45e4 |
Name: php-pear-Text-CAPTCHA
|
|
|
2a4b750 |
Version: 1.0.1
|
|
|
49bd303 |
Release: 6%{?dist}
|
|
|
54f45e4 |
Summary: Generation of CAPTCHAs
|
|
|
54f45e4 |
|
|
|
54f45e4 |
Group: Development/Libraries
|
|
|
54f45e4 |
License: BSD
|
|
|
54f45e4 |
URL: http://pear.php.net/package/Text_CAPTCHA
|
|
|
bbc5e26 |
# remove tests which use non-free stuff (fonts)
|
|
|
bbc5e26 |
# pear download Text_CAPTCHA-%{version}
|
|
|
bbc5e26 |
# ./strip.sh %{version}
|
|
|
bbc5e26 |
Source0: %{pear_name}-%{version}-strip.tgz
|
|
|
bbc5e26 |
Source1: strip.sh
|
|
|
54f45e4 |
|
|
|
54f45e4 |
BuildArch: noarch
|
|
|
54f45e4 |
BuildRequires: php-pear(PEAR)
|
|
|
54f45e4 |
|
|
|
54f45e4 |
Requires(post): %{__pear}
|
|
|
54f45e4 |
Requires(postun): %{__pear}
|
|
|
54f45e4 |
Requires: php-gd
|
|
|
54f45e4 |
Requires: php-pear(PEAR)
|
|
|
bbc5e26 |
Requires: php-pear(Text_Password) >= 1.1.1
|
|
|
54f45e4 |
# Optional
|
|
|
54f45e4 |
Requires: php-pear(Numbers_Words)
|
|
|
54f45e4 |
Requires: php-pear(Text_Figlet)
|
|
|
bbc5e26 |
Requires: php-pear(Image_Text) >= 0.7.0
|
|
|
54f45e4 |
|
|
|
54f45e4 |
Provides: php-pear(%{pear_name}) = %{version}
|
|
|
54f45e4 |
|
|
|
54f45e4 |
%description
|
|
|
54f45e4 |
Implementation of CAPTCHAs (completely automated public Turing test to tell
|
|
|
54f45e4 |
computers and humans apart)
|
|
|
54f45e4 |
|
|
|
54f45e4 |
|
|
|
54f45e4 |
%prep
|
|
|
54f45e4 |
%setup -q -c
|
|
|
54f45e4 |
|
|
|
54f45e4 |
cd %{pear_name}-%{version}
|
|
|
bbc5e26 |
mv ../package.xml %{name}.xml
|
|
|
54f45e4 |
|
|
|
54f45e4 |
|
|
|
54f45e4 |
%build
|
|
|
54f45e4 |
cd %{pear_name}-%{version}
|
|
|
54f45e4 |
# Empty build section, most likely nothing required.
|
|
|
54f45e4 |
|
|
|
54f45e4 |
|
|
|
54f45e4 |
%install
|
|
|
54f45e4 |
cd %{pear_name}-%{version}
|
|
|
54f45e4 |
%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml
|
|
|
54f45e4 |
|
|
|
54f45e4 |
# Clean up unnecessary files
|
|
|
54f45e4 |
rm -rf %{buildroot}%{pear_metadir}/.??*
|
|
|
54f45e4 |
|
|
|
54f45e4 |
# Install XML package description
|
|
|
54f45e4 |
mkdir -p %{buildroot}%{pear_xmldir}
|
|
|
54f45e4 |
install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
|
|
|
54f45e4 |
|
|
|
54f45e4 |
|
|
|
54f45e4 |
%post
|
|
|
54f45e4 |
%{__pear} install --nodeps --soft --force --register-only \
|
|
|
54f45e4 |
%{pear_xmldir}/%{name}.xml >/dev/null || :
|
|
|
54f45e4 |
|
|
|
54f45e4 |
%postun
|
|
|
54f45e4 |
if [ $1 -eq 0 ] ; then
|
|
|
54f45e4 |
%{__pear} uninstall --nodeps --ignore-errors --register-only \
|
|
|
54f45e4 |
pear.php.net/%{pear_name} >/dev/null || :
|
|
|
54f45e4 |
fi
|
|
|
54f45e4 |
|
|
|
54f45e4 |
|
|
|
54f45e4 |
%files
|
|
|
54f45e4 |
%doc %{pear_docdir}/%{pear_name}
|
|
|
54f45e4 |
%{pear_xmldir}/%{name}.xml
|
|
|
54f45e4 |
%{pear_phpdir}/Text/CAPTCHA
|
|
|
54f45e4 |
%{pear_phpdir}/Text/CAPTCHA.php
|
|
|
54f45e4 |
|
|
|
54f45e4 |
|
|
|
54f45e4 |
%changelog
|
|
|
49bd303 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-6
|
|
|
49bd303 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
49bd303 |
|
|
|
798e847 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-5
|
|
|
798e847 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
798e847 |
|
|
|
582e3e8 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-4
|
|
|
582e3e8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
582e3e8 |
|
|
|
dc434da |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-3
|
|
|
dc434da |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
dc434da |
|
|
|
8da58b2 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
|
|
|
8da58b2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
8da58b2 |
|
|
|
2a4b750 |
* Mon Feb 17 2014 Remi Collet <remi@fedoraproject.org> - 1.0.1-1
|
|
|
2a4b750 |
- Update to 1.0.1 (stable) - no change since 0.5.0
|
|
|
2a4b750 |
|
|
|
bbc5e26 |
* Wed Aug 07 2013 Remi Collet <remi@fedoraproject.org> - 0.5.0-1
|
|
|
2a4b750 |
- Update to 0.5.0 (beta)
|
|
|
bbc5e26 |
- strip sources from non-free stuff (fonts)
|
|
|
bbc5e26 |
|
|
|
35757e1 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.6-2
|
|
|
35757e1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
35757e1 |
|
|
|
008b97c |
* Mon Mar 18 2013 Remi Collet <remi@fedoraproject.org> - 0.4.6-1
|
|
|
008b97c |
- Version 0.4.6 (alpha) - API 0.4.0 (alpha)
|
|
|
008b97c |
|
|
|
5a28373 |
* Sat Jan 26 2013 Remi Collet <remi@fedoraproject.org> - 0.4.5-1
|
|
|
5a28373 |
- Version 0.4.5 (alpha) - API 0.4.0 (alpha) - no change
|
|
|
5a28373 |
|
|
|
031c986 |
* Fri Jan 25 2013 Remi Collet <remi@fedoraproject.org> - 0.4.4-1
|
|
|
031c986 |
- Version 0.4.4 (alpha) - API 0.4.0 (alpha)
|
|
|
031c986 |
- LICENSE is now provided by upstream
|
|
|
031c986 |
|
|
|
54f45e4 |
* Wed Jan 16 2013 Remi Collet <remi@fedoraproject.org> - 0.4.3-1
|
|
|
54f45e4 |
- Initial package
|