|
|
5812f62 |
# remirepo/fedora spec file for php-pear-Crypt-CHAP
|
|
|
5812f62 |
#
|
|
|
5812f62 |
# Copyright (c) 2010-2015 Remi Collet
|
|
|
5812f62 |
# Copyright (c) 2006-2009 Christopher Stone
|
|
|
5812f62 |
#
|
|
|
5812f62 |
# License: MIT
|
|
|
5812f62 |
# http://opensource.org/licenses/MIT
|
|
|
5812f62 |
#
|
|
|
5812f62 |
# Please, preserve the changelog entries
|
|
|
5812f62 |
#
|
|
Remi Collet |
7b1ca28 |
%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
|
|
|
5812f62 |
%{!?__pear: %global __pear %{_bindir}/pear}
|
|
|
ecdaa41 |
%global pear_name Crypt_CHAP
|
|
xulchris |
e9e318f |
|
|
xulchris |
e9e318f |
Name: php-pear-Crypt-CHAP
|
|
|
41b294f |
Version: 1.5.0
|
|
|
ea54368 |
Release: 15%{?dist}
|
|
xulchris |
e9e318f |
Summary: Class to generate CHAP packets
|
|
xulchris |
e9e318f |
|
|
xulchris |
e9e318f |
Group: Development/Languages
|
|
xulchris |
e9e318f |
License: BSD
|
|
xulchris |
e9e318f |
URL: http://pear.php.net/package/Crypt_CHAP
|
|
xulchris |
e9e318f |
Source0: http://pear.php.net/get/%{pear_name}-%{version}.tgz
|
|
xulchris |
e9e318f |
|
|
xulchris |
e9e318f |
BuildArch: noarch
|
|
|
5812f62 |
BuildRequires: php-pear
|
|
|
5812f62 |
BuildRequires: php-mcrypt
|
|
|
41b294f |
|
|
|
41b294f |
Requires: php-pear(PEAR)
|
|
|
5812f62 |
Requires: php-mcrypt
|
|
xulchris |
e9e318f |
Requires(post): %{__pear}
|
|
xulchris |
e9e318f |
Requires(postun): %{__pear}
|
|
|
5812f62 |
|
|
xulchris |
e9e318f |
Provides: php-pear(%{pear_name}) = %{version}
|
|
xulchris |
e9e318f |
|
|
|
41b294f |
|
|
xulchris |
e9e318f |
%description
|
|
|
ecdaa41 |
This package provides Classes for generating CHAP packets.
|
|
|
ecdaa41 |
Currently these types of CHAP are supported:
|
|
|
ecdaa41 |
- CHAP-MD5,
|
|
|
ecdaa41 |
- MS-CHAPv1,
|
|
|
ecdaa41 |
- MS-CHAPv2.
|
|
xulchris |
e9e318f |
|
|
xulchris |
e9e318f |
|
|
xulchris |
e9e318f |
%prep
|
|
xulchris |
e9e318f |
%setup -qc
|
|
xulchris |
e9e318f |
cd %{pear_name}-%{version}
|
|
|
ecdaa41 |
# package.xml is V2
|
|
|
ecdaa41 |
mv ../package.xml %{name}.xml
|
|
xulchris |
e9e318f |
|
|
xulchris |
e9e318f |
|
|
xulchris |
e9e318f |
%build
|
|
xulchris |
e9e318f |
cd %{pear_name}-%{version}
|
|
xulchris |
e9e318f |
# Empty build section, most likely nothing required.
|
|
xulchris |
e9e318f |
|
|
xulchris |
e9e318f |
|
|
xulchris |
e9e318f |
%install
|
|
xulchris |
e9e318f |
cd %{pear_name}-%{version}
|
|
xulchris |
e9e318f |
rm -rf $RPM_BUILD_ROOT docdir
|
|
Remi Collet |
7b1ca28 |
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml
|
|
xulchris |
e9e318f |
|
|
xulchris |
e9e318f |
|
|
xulchris |
e9e318f |
# Clean up unnecessary files
|
|
Remi Collet |
7b1ca28 |
rm -rf $RPM_BUILD_ROOT%{pear_metadir}/.??*
|
|
xulchris |
e9e318f |
|
|
xulchris |
e9e318f |
# Install XML package description
|
|
xulchris |
e9e318f |
mkdir -p $RPM_BUILD_ROOT%{pear_xmldir}
|
|
|
a0eb866 |
install -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir}
|
|
xulchris |
e9e318f |
|
|
xulchris |
e9e318f |
|
|
xulchris |
e9e318f |
|
|
|
41b294f |
%check
|
|
|
41b294f |
cd %{pear_name}-%{version}
|
|
Remi Collet |
7b1ca28 |
%{__pear} run-tests \
|
|
|
41b294f |
-i "-d include_path=%{buildroot}%{pear_phpdir}:%{pear_phpdir}" \
|
|
|
41b294f |
tests
|
|
|
41b294f |
|
|
|
41b294f |
|
|
xulchris |
e9e318f |
%post
|
|
xulchris |
e9e318f |
%{__pear} install --nodeps --soft --force --register-only \
|
|
|
a0eb866 |
%{pear_xmldir}/%{name}.xml >/dev/null || :
|
|
xulchris |
e9e318f |
|
|
xulchris |
e9e318f |
%postun
|
|
xulchris |
e9e318f |
if [ $1 -eq 0 ] ; then
|
|
xulchris |
e9e318f |
%{__pear} uninstall --nodeps --ignore-errors --register-only \
|
|
xulchris |
e9e318f |
%{pear_name} >/dev/null || :
|
|
xulchris |
e9e318f |
fi
|
|
xulchris |
e9e318f |
|
|
xulchris |
e9e318f |
|
|
xulchris |
e9e318f |
%files
|
|
|
a0eb866 |
%{pear_xmldir}/%{name}.xml
|
|
xulchris |
e9e318f |
%{pear_testdir}/%{pear_name}
|
|
xulchris |
e9e318f |
%{pear_phpdir}/Crypt
|
|
xulchris |
e9e318f |
|
|
xulchris |
e9e318f |
|
|
xulchris |
e9e318f |
%changelog
|
|
|
ea54368 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-15
|
|
|
ea54368 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
ea54368 |
|
|
|
57c3185 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-14
|
|
|
57c3185 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
57c3185 |
|
|
|
0192031 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-13
|
|
|
0192031 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
0192031 |
|
|
|
4486fe1 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-12
|
|
|
4486fe1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
4486fe1 |
|
|
|
6cf884c |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-11
|
|
|
6cf884c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
6cf884c |
|
|
|
5812f62 |
* Fri Jun 19 2015 Remi Collet <remi@fedoraproject.org> - 1.5.0-10
|
|
|
5812f62 |
- missing BR on php-mcrypt
|
|
|
5812f62 |
|
|
|
13fe68a |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-10
|
|
|
13fe68a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
13fe68a |
|
|
|
d8a45ec |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-9
|
|
|
d8a45ec |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
d8a45ec |
|
|
|
8dfc0c4 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-8
|
|
|
8dfc0c4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
8dfc0c4 |
|
|
Remi Collet |
7b1ca28 |
* Tue Feb 19 2013 Remi Collet <remi@fedoraproject.org> - 1.5.0-7
|
|
Remi Collet |
7b1ca28 |
- fix metadata location
|
|
Remi Collet |
7b1ca28 |
|
|
|
3b9d812 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-6
|
|
|
3b9d812 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
3b9d812 |
|
|
|
0b1a5fe |
* Tue Aug 14 2012 Remi Collet <remi@fedoraproject.org> - 1.5.0-5
|
|
|
0b1a5fe |
- rebuilt for new pear_testdir
|
|
|
0b1a5fe |
|
|
|
78e7c0d |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-4
|
|
|
78e7c0d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
78e7c0d |
|
|
|
f02a1f1 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-3
|
|
|
f02a1f1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
f02a1f1 |
|
|
|
ec443f6 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-2
|
|
|
ec443f6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
ec443f6 |
|
|
|
41b294f |
* Sun Sep 19 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.5.0-1
|
|
|
41b294f |
- upstream 1.5.0 with patches merged
|
|
|
41b294f |
- run tests during %%check
|
|
|
41b294f |
|
|
|
5656155 |
* Fri Aug 27 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.0.2-3
|
|
|
5656155 |
- add patch for deprecated mhash extension
|
|
|
5656155 |
Upstream bug is http://pear.php.net/bugs/17828
|
|
|
5656155 |
|
|
|
ecdaa41 |
* Thu Aug 26 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.0.2-2
|
|
|
ecdaa41 |
- clean define
|
|
|
ecdaa41 |
- set date.timezone during build
|
|
|
6b7c6c0 |
- review desc. (remove ref to mhash)
|
|
|
ecdaa41 |
|
|
xulchris |
096cc8a |
* Sun Aug 30 2009 Christopher Stone <chris.stone@gmail.com> 1.0.2-1
|
|
xulchris |
096cc8a |
- Upstream sync
|
|
xulchris |
096cc8a |
|
|
|
8288829 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-4
|
|
|
8288829 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
8288829 |
|
|
|
a0eb866 |
* Mon Jul 13 2009 Remi Collet <Fedora@FamilleCollet.com> - 1.0.1-3
|
|
|
a0eb866 |
- remove mhash dependency (optional, and not provided by php 5.3.0)
|
|
|
a0eb866 |
- rename Crypt_CHAP.xml to php-pear-Crypt-CHAP.xml
|
|
|
a0eb866 |
|
|
|
31a71eb |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
|
|
|
31a71eb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
31a71eb |
|
|
xulchris |
dadda6f |
* Wed Mar 14 2007 Christopher Stone <chris.stone@gmail.com> 1.0.1-1
|
|
xulchris |
dadda6f |
- Upstream sync
|
|
xulchris |
dadda6f |
- Remove no longer needed patch
|
|
xulchris |
dadda6f |
|
|
xulchris |
e9e318f |
* Tue Mar 13 2007 Christopher Stone <chris.stone@gmail.com> 1.0.0-2
|
|
xulchris |
e9e318f |
- Apply patch to fix warnings/errors on test scripts (bz #222597)
|
|
xulchris |
e9e318f |
|
|
xulchris |
e9e318f |
* Sun Jan 14 2007 Christopher Stone <chris.stone@gmail.com> 1.0.0-1
|
|
xulchris |
e9e318f |
- Initial Fedora release
|