rpms/php-pear-HTML-QuickForm-advmultiselect/F-7 php-pear-HTML-QuickForm-advmultiselect.spec, NONE, 1.1 sources, 1.1, 1.2

Remi Collet (remi) fedora-extras-commits at redhat.com
Thu Sep 13 16:54:00 UTC 2007


Author: remi

Update of /cvs/extras/rpms/php-pear-HTML-QuickForm-advmultiselect/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3012

Modified Files:
	sources 
Added Files:
	php-pear-HTML-QuickForm-advmultiselect.spec 
Log Message:
new package


--- NEW FILE php-pear-HTML-QuickForm-advmultiselect.spec ---
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%define pear_name HTML_QuickForm_advmultiselect

Name:           php-pear-HTML-QuickForm-advmultiselect
Version:        1.4.0
Release:        1%{?dist}
Summary:        Element for HTML_QuickForm that emulate a multi-select

Group:          Development/Libraries
License:        BSD
URL:            http://pear.php.net/package/HTML_QuickForm_advmultiselect
Source0:        http://pear.php.net/get/%{pear_name}-%{version}.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) >= 1.4.3, php-pear(HTML_QuickForm) > 3.2.4
Requires(post): %{__pear}
Requires(postun): %{__pear}
Provides:       php-pear(%{pear_name}) = %{version}

%description
The HTML_QuickForm_advmultiselect package adds an element to the
HTML_QuickForm package that is two select boxes next to each other
emulating a multi-select.


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


%build
# Empty build section


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

# Move documentation
mv $RPM_BUILD_ROOT%{pear_docdir}/%{pear_name} ../docdir

# Fix the documentation
sed -i -e 's/\r//' ../docdir/docs/TDG/*.{htc,html,css} \
                   ../docdir/examples/*.{html,php}

# 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 %{pear_name}.xml $RPM_BUILD_ROOT%{pear_xmldir}


%clean
rm -rf $RPM_BUILD_ROOT


%post
%{__pear} install --nodeps --soft --force --register-only \
    %{pear_xmldir}/%{pear_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,-)
%doc docdir/*
%{pear_xmldir}/%{pear_name}.xml
%{pear_datadir}/%{pear_name}
%{pear_phpdir}/HTML/QuickForm/advmultiselect.php


%changelog
* Tue Aug 21 2007 Remi Collet <Fedora at FamilleCollet.com> 1.4.0-1
- Take ownership for this, update to 1.4.0
- Change licence from PHP to BSD

* Thu Mar 29 2007 Sebastien Prud'homme <sebastien.prudhomme at gmail.com> 1.3.1-1
- Initial Release


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/php-pear-HTML-QuickForm-advmultiselect/F-7/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	12 Sep 2007 16:24:48 -0000	1.1
+++ sources	13 Sep 2007 16:53:26 -0000	1.2
@@ -0,0 +1 @@
+0a240714c786f4916e5e6f481ab8052e  HTML_QuickForm_advmultiselect-1.4.0.tgz




More information about the fedora-extras-commits mailing list