rpms/php-pear-DB-DataObject-FormBuilder/devel php-pear-DB-DataObject-FormBuilder.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Christopher Stone (xulchris) fedora-extras-commits at redhat.com
Tue Nov 21 14:39:30 UTC 2006


Author: xulchris

Update of /cvs/extras/rpms/php-pear-DB-DataObject-FormBuilder/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15687/devel

Modified Files:
	.cvsignore sources 
Added Files:
	php-pear-DB-DataObject-FormBuilder.spec 
Log Message:
auto-import php-pear-DB-DataObject-FormBuilder-1.0.0-0.1.RC5 on branch devel from php-pear-DB-DataObject-FormBuilder-1.0.0-0.1.RC5.src.rpm


--- NEW FILE php-pear-DB-DataObject-FormBuilder.spec ---
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%define pear_name DB_DataObject_FormBuilder
%define beta RC5

Name:           php-pear-DB-DataObject-FormBuilder
Version:        1.0.0
Release:        0.1.%{beta}%{?dist}
Summary:        Automatically build HTML_QuickForm objects

Group:          Development/Libraries
License:        PHP License
URL:            http://pear.php.net/package/DB_DataObject_FormBuilder
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) php-pear(DB_DataObject) php-pear(HTML_QuickForm)
Requires(hint): php-pear(Date) php-pear(HTML_Table)
Requires(post): %{__pear}
Requires(postun): %{__pear}
Provides:       php-pear(%{pear_name}) = %{version}

%description
DB_DataObject_FormBuilder will aid you in rapid application development using
the packages DB_DataObject and HTML_QuickForm. For having a quick but working
prototype of your application, simply model the database, run DataObject's
createTable script over it and write a script that passes one of the resulting
objects to the FormBuilder class. The FormBuilder will automatically generate
a simple but working HTML_QuickForm object that you can use to test your
application. It also provides a processing method that will automatically
detect if an insert() or update() command has to be executed after the form
has been submitted. If you have set up DataObject's links.ini file correctly,
it will also automatically detect if a table field is a foreign key and will
populate a selectbox with the linked table's entries. There are many optional
parameters that you can place in your DataObjects.ini or in the properties of
your derived classes, that you can use to fine-tune the form-generation,
gradually turning the prototypes into fully-featured forms, and you can take
control at any stage of the process.


%prep
%setup -q -c
[ -f package2.xml ] || mv package.xml package2.xml
mv package2.xml %{pear_name}-%{version}%{beta}/%{pear_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 %{pear_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 %{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,-)
%{pear_xmldir}/%{pear_name}.xml
%{pear_phpdir}/DB/DataObject/FormBuilder*


%changelog
* Sun Oct 29 2006 Christopher Stone <chris.stone at gmail.com> 1.0.0-0.1.RC5
- Initial Release


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/php-pear-DB-DataObject-FormBuilder/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	21 Nov 2006 14:38:41 -0000	1.1
+++ .cvsignore	21 Nov 2006 14:39:00 -0000	1.2
@@ -0,0 +1 @@
+DB_DataObject_FormBuilder-1.0.0RC5.tgz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/php-pear-DB-DataObject-FormBuilder/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	21 Nov 2006 14:38:41 -0000	1.1
+++ sources	21 Nov 2006 14:39:00 -0000	1.2
@@ -0,0 +1 @@
+0430207937449d635449389ae345854c  DB_DataObject_FormBuilder-1.0.0RC5.tgz




More information about the fedora-extras-commits mailing list