Group :: Desenvolvimento/Outros
RPM: pear-Tree
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define pear_name Tree
Name: pear-Tree
Version: 0.3.7
Release: alt1
Summary: Generic tree management, currently supports DB and XML as data sources
License: PHP License
Group: Development/Other
Url: http://pear.php.net/package/Tree
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: http://pear.php.net/get/Tree-%version.tar.bz2
BuildArchitectures: noarch
Requires: pear-core
BuildRequires: pear-core rpm-build-pear
%description
Provides methods to read and manipulate trees, which are stored in the DB
or an XML file. The trees can be stored in the DB either as nested trees.
Or as simple trees ('brain dead method'), which use parentId-like
structure.
Currently XML data can only be read from a file and accessed.
The package offers a big number of methods to access and manipulate trees.
For example methods like: getRoot, getChild[ren[Ids]], getParent[s[Ids]],
getPath[ById] and many more.
There are two ways of retreiving the data from the place where they
are stored, one is by reading the entire tree into the memory - the
Memory way. The other is reading the tree nodes as needed (very useful
in combination with huge trees and the nested set model). The package
is designed that way that it is possible to convert/copy tree data from
either structure to another (from XML into DB).
%prep
%setup -c
%build
%pear_build
%install
%pear_install_std
%post
%register_pear_module
%preun
%unregister_pear_module
%files
%doc LICENSE CHANGELOG
%pear_dir/Tree/
%pear_testdir/Tree/
%pear_docdir/%pear_name/
%pear_xmldir/%pear_name.xml
%changelog
…
Todas as alterações você pod ver aqui
Name: pear-Tree
Version: 0.3.7
Release: alt1
Summary: Generic tree management, currently supports DB and XML as data sources
License: PHP License
Group: Development/Other
Url: http://pear.php.net/package/Tree
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: http://pear.php.net/get/Tree-%version.tar.bz2
BuildArchitectures: noarch
Requires: pear-core
BuildRequires: pear-core rpm-build-pear
%description
Provides methods to read and manipulate trees, which are stored in the DB
or an XML file. The trees can be stored in the DB either as nested trees.
Or as simple trees ('brain dead method'), which use parentId-like
structure.
Currently XML data can only be read from a file and accessed.
The package offers a big number of methods to access and manipulate trees.
For example methods like: getRoot, getChild[ren[Ids]], getParent[s[Ids]],
getPath[ById] and many more.
There are two ways of retreiving the data from the place where they
are stored, one is by reading the entire tree into the memory - the
Memory way. The other is reading the tree nodes as needed (very useful
in combination with huge trees and the nested set model). The package
is designed that way that it is possible to convert/copy tree data from
either structure to another (from XML into DB).
%prep
%setup -c
%build
%pear_build
%install
%pear_install_std
%post
%register_pear_module
%preun
%unregister_pear_module
%files
%doc LICENSE CHANGELOG
%pear_dir/Tree/
%pear_testdir/Tree/
%pear_docdir/%pear_name/
%pear_xmldir/%pear_name.xml
%changelog
…
Todas as alterações você pod ver aqui