rpms/php-pear-Crypt-Blowfish/F-10 php-pear-Crypt-Blowfish.spec, NONE, 1.1 sources, 1.1, 1.2

Xavier Bachelot xavierb at fedoraproject.org
Tue Feb 24 23:59:54 UTC 2009


Author: xavierb

Update of /cvs/pkgs/rpms/php-pear-Crypt-Blowfish/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2362

Modified Files:
	sources 
Added Files:
	php-pear-Crypt-Blowfish.spec 
Log Message:
F-10 branch


--- NEW FILE php-pear-Crypt-Blowfish.spec ---
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%define pear_name Crypt_Blowfish
%define beta RC2

Name:           php-pear-Crypt-Blowfish
Version:        1.1.0
Release:        0.3.rc2%{?dist}
Summary:        Quick two-way blowfish encryption

Group:          Development/Libraries
License:        BSD
URL:            http://pear.php.net/package/Crypt_Blowfish
Source0:        http://pear.php.net/get/%{pear_name}-%{version}%{?beta}.tgz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  php-pear >= 1:1.4.9-1.2
Requires:       php-pear(PEAR)
Requires(post): %{__pear}
Requires(postun): %{__pear}
Provides:       php-pear(%{pear_name}) = %{version}


%description
This package allows you to perform two-way blowfish encryption on the fly using
only PHP. This package does not require the MCrypt PHP extension to work,
although it can make use of it if available.


%prep
%setup -q -c
[ -f package2.xml ] || mv package.xml package2.xml
mv package2.xml %{pear_name}-%{version}%{?beta}/%{name}.xml
cd %{pear_name}-%{version}%{?beta}


%build
cd %{pear_name}-%{version}%{?beta}
# Empty build section, most likely nothing required.


%install
cd %{pear_name}-%{version}%{?beta}
rm -rf $RPM_BUILD_ROOT docdir
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml


# Clean up unnecessary files
rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*

# Install XML package description
mkdir -p $RPM_BUILD_ROOT%{pear_xmldir}
install -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir}

%check
# For documentation purpose only
# After install, as root :
# cd /usr/share/pear/test/Crypt_Blowfish/tests
# pear run-tests -p Crypt_Blowfish
# Should return 
# 2 PASSED TESTS
# 0 SKIPPED TESTS


%clean
rm -rf $RPM_BUILD_ROOT


%post
%{__pear} install --nodeps --soft --force --register-only \
    %{pear_xmldir}/%{name}.xml >/dev/null || :

%postun
if [ $1 -eq 0 ] ; then
    %{__pear} uninstall --nodeps --ignore-errors --register-only \
        %{pear_name} >/dev/null || :
fi


%files
%defattr(-,root,root,-)
%{pear_xmldir}/%{name}.xml
%{pear_testdir}/%{pear_name}
%{pear_phpdir}/Crypt


%changelog
* Mon Feb 23 2009 Xavier Bachelot <xavier at bachelot.org> 1.1.0-0.3.rc2
- Remove cut and paste leftover.

* Sun Feb 22 2009 Xavier Bachelot <xavier at bachelot.org> 1.1.0-0.2.rc2
- Spec file clean up, follows new guidelines more closely.

* Mon Jan 26 2009 Xavier Bachelot <xavier at bachelot.org> 1.1.0-0.1.rc2
- Initial build.


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/php-pear-Crypt-Blowfish/F-10/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	24 Feb 2009 20:43:30 -0000	1.1
+++ sources	24 Feb 2009 23:59:24 -0000	1.2
@@ -0,0 +1 @@
+09f0e38a4d524ba4102db5d11b07ffe9  Crypt_Blowfish-1.1.0RC2.tgz




More information about the fedora-extras-commits mailing list