Remi Collet fe5401a
%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
xulchris 4343f4f
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
17b1848
%global pear_name File_Passwd
xulchris 4343f4f
xulchris 4343f4f
Name:           php-pear-File-Passwd
xulchris 27ce6de
Version:        1.1.7
630f5f2
Release:        12%{?dist}
xulchris 4343f4f
Summary:        Manipulate many kinds of password files
xulchris 4343f4f
xulchris 4343f4f
Group:          Development/Languages
xulchris 16492cd
License:        PHP
xulchris 4343f4f
URL:            http://pear.php.net/package/File_Passwd
xulchris 4343f4f
Source0:        http://pear.php.net/get/%{pear_name}-%{version}.tgz
xulchris 4343f4f
17b1848
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
xulchris 4343f4f
BuildArch:      noarch
17b1848
Remi Collet fe5401a
BuildRequires:  php-pear
xulchris 4343f4f
Requires:       php-pear(PEAR)
xulchris 4343f4f
Requires(post): %{__pear}
xulchris 4343f4f
Requires(postun): %{__pear}
xulchris 4343f4f
Provides:       php-pear(%{pear_name}) = %{version}
xulchris 4343f4f
xulchris 4343f4f
Requires: php-pear(Crypt_CHAP) >= 1.0.0
17b1848
xulchris 4343f4f
xulchris 4343f4f
%description
xulchris 4343f4f
Provides methods to manipulate and authenticate against standard Unix,
xulchris 4343f4f
SMB server, AuthUser (.htpasswd), AuthDigest (.htdigest), CVS pserver
xulchris 4343f4f
and custom formatted password files.
xulchris 4343f4f
xulchris 4343f4f
xulchris 4343f4f
%prep
xulchris 4343f4f
%setup -qc
xulchris 4343f4f
cd %{pear_name}-%{version}
17b1848
# package.xml is V2
17b1848
mv ../package.xml %{name}.xml
xulchris 4343f4f
xulchris 4343f4f
xulchris 4343f4f
%build
xulchris 4343f4f
cd %{pear_name}-%{version}
xulchris 4343f4f
# Empty build section, most likely nothing required.
xulchris 4343f4f
xulchris 4343f4f
xulchris 4343f4f
%install
Remi Collet fe5401a
rm -rf $RPM_BUILD_ROOT
xulchris 4343f4f
cd %{pear_name}-%{version}
Remi Collet fe5401a
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml
xulchris 4343f4f
xulchris 4343f4f
# Clean up unnecessary files
Remi Collet fe5401a
rm -rf $RPM_BUILD_ROOT%{pear_metadir}/.??*
xulchris 4343f4f
xulchris 4343f4f
# Install XML package description
xulchris 4343f4f
install -d $RPM_BUILD_ROOT%{pear_xmldir}
17b1848
install -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir}
xulchris 4343f4f
xulchris 4343f4f
xulchris 4343f4f
%clean
xulchris 4343f4f
rm -rf $RPM_BUILD_ROOT
xulchris 4343f4f
xulchris 4343f4f
xulchris 4343f4f
%post
xulchris 4343f4f
%{__pear} install --nodeps --soft --force --register-only \
17b1848
    %{pear_xmldir}/%{name}.xml >/dev/null || :
xulchris 4343f4f
xulchris 4343f4f
%postun
xulchris 4343f4f
if [ $1 -eq 0 ] ; then
xulchris 4343f4f
    %{__pear} uninstall --nodeps --ignore-errors --register-only \
xulchris 4343f4f
        %{pear_name} >/dev/null || :
xulchris 4343f4f
fi
xulchris 4343f4f
xulchris 4343f4f
xulchris 4343f4f
%files
xulchris 4343f4f
%defattr(-,root,root,-)
17b1848
%{pear_xmldir}/%{name}.xml
xulchris 4343f4f
%{pear_testdir}/%{pear_name}
xulchris 4343f4f
%dir %{pear_phpdir}/File
xulchris 4343f4f
%{pear_phpdir}/File/Passwd*
xulchris 4343f4f
xulchris 4343f4f
xulchris 4343f4f
%changelog
630f5f2
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.7-12
630f5f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
630f5f2
915d3ec
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.7-11
915d3ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
915d3ec
3e6be38
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.7-10
3e6be38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3e6be38
f2e1c5d
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.7-9
f2e1c5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f2e1c5d
Remi Collet fe5401a
* Tue Feb 19 2013 Remi Collet <remi@fedoraproject.org> - 1.1.7-8
Remi Collet fe5401a
- fix metadata location
Remi Collet fe5401a
dc8bf97
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.7-7
dc8bf97
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
dc8bf97
90afb22
* Tue Aug 14 2012 Remi Collet <remi@fedoraproject.org> - 1.1.7-6
90afb22
- rebuilt for new pear_testdir
90afb22
7771bc5
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.7-5
7771bc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7771bc5
a7a80b0
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.7-4
a7a80b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a7a80b0
2ec5bdc
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.7-3
2ec5bdc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2ec5bdc
17b1848
* Thu Aug 26 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.1.7-2
17b1848
- clean define
17b1848
- remove LICENSE (not provided by upstream)
17b1848
- rename File_Passwd.xml to php-pear-File-Passwd.xml
17b1848
- set date.timezone during build
17b1848
xulchris 27ce6de
* Sat Sep 05 2009 Christopher Stone <chris.stone@gmail.com> 1.1.7-1
xulchris 27ce6de
- Upstream sync
xulchris 27ce6de
adaf857
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-5
adaf857
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
adaf857
4021844
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-4
4021844
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
4021844
xulchris 16492cd
* Sat Jun 14 2008 Christopher Stone <chris.stone@gmail.com> 1.1.6-3
xulchris 16492cd
- Rebuild for vendor tag (bz #451361)
xulchris 16492cd
xulchris 4343f4f
* Sun May 13 2007 Christopher Stone <chris.stone@gmail.com> 1.1.6-2
xulchris 4343f4f
- Include samba extension as default for Fedora
xulchris 4343f4f
- Exclude samba extension from Enterprise Linux
xulchris 4343f4f
xulchris 4343f4f
* Tue Mar 13 2007 Christopher Stone <chris.stone@gmail.com> 1.1.6-1
xulchris 4343f4f
- Initial Fedora release