debian/0000755000000000000000000000000011646055702007174 5ustar debian/control0000644000000000000000000000346411646055702010606 0ustar Source: libdbix-dbstag-perl Section: perl Priority: optional Maintainer: Debian Perl Group Uploaders: Olivier Sallou Build-Depends: debhelper (>= 8) Build-Depends-Indep: perl, libdata-stag-perl, libdbi-perl, libdbix-dbschema-perl, libparse-recdescent-perl, libxml-perl Standards-Version: 3.9.2 Homepage: http://search.cpan.org/dist/DBIx-DBStag/ Vcs-Git: git://git.debian.org/pkg-perl/packages/libdbix-dbstag-perl.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libdbix-dbstag-perl.git;a=tree Package: libdbix-dbstag-perl Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, libdata-stag-perl, libdbd-pg-perl, libdbi-perl, libdbix-dbschema-perl, libparse-recdescent-perl, libxml-perl Description: module providing relational database to hierarchical mapping The module DBIx::DBStag is for mapping from databases to Stag objects (Structured Tags - see the Data::Stag manpage), which can also be represented as XML. It has two main uses: . Querying This module can take the results of any SQL query and decompose the flattened results into a tree data structure which reflects the foreign keys in the underlying relational schema. It does this by looking at the SQL query and introspecting the database schema, rather than requiring metadata or an object model. . In this respect, the module works just like a regular the DBI manpage handle, with some extra methods provided. . Storing Data DBStag objects can store any tree-like datastructure (such as XML documents) into a database using normalized schema that reflects the structure of the tree being stored. This is done using little or no metadata. . XML can also be imported, and a relational schema automatically generated. debian/clean0000644000000000000000000000001411646055702010174 0ustar t/db.config debian/copyright0000644000000000000000000000176111646055702011134 0ustar Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174 Source: http://search.cpan.org/dist/DBIx-DBStag/ Upstream-Name: DBIx-DBStag Files: * Copyright: 2004, Chris Mungall License: Artistic or GPL-1+ Files: debian/* Copyright: 2011, Olivier Sallou License: Artistic or GPL-1+ License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. . On Debian systems, the complete text of version 1 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'. debian/watch0000644000000000000000000000016311646055702010225 0ustar version=3 http://search.cpan.org/dist/DBIx-DBStag/ .*/DBIx-DBStag-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ debian/patches/0000755000000000000000000000000011646055702010623 5ustar debian/patches/fix-man-whatis0000644000000000000000000000303511646055702013403 0ustar Subject: fix the what-is section of man pages Author: Olivier Sallou Last-Upadted: 10-10-2011 Description: Fix what-is section of man pages, some files do not have descriptions with script name. --- a/DBIx/DBStag/Constraint.pm +++ b/DBIx/DBStag/Constraint.pm @@ -118,7 +118,7 @@ =head1 NAME - DBIx::DBStag::Constraint - +DBIx::DBStag::Constraint - recursive structure for representing query constraints =head1 SYNOPSIS --- a/scripts/stag-autoddl.pl +++ b/scripts/stag-autoddl.pl @@ -2,7 +2,7 @@ =head1 NAME -stag-autoddl.pl +stag-autoddl.pl - wrapper for the Data::Stag modules =head1 SYNOPSIS @@ -14,7 +14,7 @@ script wrapper for the Data::Stag modules -=over ARGUMENTS +=over =item -help|h --- a/scripts/stag-autotemplate.pl +++ b/scripts/stag-autotemplate.pl @@ -2,7 +2,7 @@ =head1 NAME - stag-autotemplate.pl +stag-autotemplate.pl - Generates Stag SQL Templates files =head1 SYNOPSIS --- a/scripts/stag-storenode.pl +++ b/scripts/stag-storenode.pl @@ -146,7 +146,7 @@ =head1 NAME -stag-storenode.pl +stag-storenode.pl - script is for storing data in database =head1 SYNOPSIS --- a/scripts/selectall_html.pl +++ b/scripts/selectall_html.pl @@ -2,7 +2,7 @@ =head1 NAME -selectall_html.pl +selectall_html.pl - select all elements from database =head1 SYNOPSIS --- a/scripts/selectall_xml.pl +++ b/scripts/selectall_xml.pl @@ -333,7 +333,7 @@ =head1 NAME -selectall_xml.pl +selectall_xml.pl - Query all elements from database with an XML output =head1 SYNOPSIS debian/patches/series0000644000000000000000000000003411646055702012035 0ustar fix-man-whatis fix_spelling debian/patches/fix_spelling0000644000000000000000000000344511646055702013237 0ustar Author: Olivier Sallou Subject: Fix some spelling errors Last-Updated: 14-10-2011 Description: Remove spelling errors from man pages --- a/DBIx/DBStag.pm +++ b/DBIx/DBStag.pm @@ -4048,7 +4048,7 @@ the API level. The default algorithm is to nest each relation element under the -relation element preceeding it in the FROM clause; for instance: +relation element preceding it in the FROM clause; for instance: SELECT * FROM a NATURAL JOIN b NATURAL JOIN c @@ -4084,7 +4084,7 @@ Now b and c are siblings in the tree. The algorithm is similar to before: nest each relation element under the relation element -preceeding it; or, if the preceeding item in the FROM clause is a +preceding it; or, if the preceding item in the FROM clause is a bracketed structure, nest it under the first relational element in the bracketed structure. --- a/scripts/selectall_xml.pl +++ b/scripts/selectall_xml.pl @@ -398,7 +398,7 @@ =item DBSTAG_TEMPLATE_DIRS -list of directories (seperated by B<:>s) to be searched when templates +list of directories (separated by B<:>s) to be searched when templates are requested =back @@ -462,7 +462,7 @@ sometimes it is preferable to return the results as a table rather than xml or a similar nested structure. specifying -rows will fetch a -table, one line per row, and columns seperated by tabs +table, one line per row, and columns separated by tabs =item -pre SQL --- a/scripts/stag-storenode.pl +++ b/scripts/stag-storenode.pl @@ -351,7 +351,7 @@ stag-storenode.pl -u movie -d 'dbi:Pg:mydb' data.mog.xml -You generally dont need extra metadata here; everything can be +You generally don't need extra metadata here; everything can be infered by introspecting the database. The -u|unit switch controls when transactions are committed debian/compat0000644000000000000000000000000211646055702010372 0ustar 8 debian/README.source0000644000000000000000000000012211646055702011346 0ustar Tests are disabled because they need a valid Chado database in Postgresql to run. debian/changelog0000644000000000000000000000025211646055702011045 0ustar libdbix-dbstag-perl (0.12-1) unstable; urgency=low * Initial Release (Closes: #644272). -- Olivier Sallou Fri, 14 Oct 2011 11:30:36 +0200 debian/source/0000755000000000000000000000000011646055702010474 5ustar debian/source/format0000644000000000000000000000001411646055702011702 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000312311646055702010253 0ustar #!/usr/bin/make -f %: dh $@ override_dh_auto_test: # Skip tests as they try to connect to database override_dh_auto_install: dh_auto_install rename 's/selectall/stag-selectall/' debian/libdbix-dbstag-perl/usr/bin/* rename 's/selectall/stag-selectall/' debian/libdbix-dbstag-perl/usr/share/man/man1/* rename 's/\.pl//' debian/libdbix-dbstag-perl/usr/share/man/man1/*.pl.1p rename 's/ubiq/stag-ubiq/' debian/libdbix-dbstag-perl/usr/bin/* rename 's/\.pl//' debian/libdbix-dbstag-perl/usr/bin/*.pl sed -i 's/ubiq\.cgi/stag-ubiq/g' debian/libdbix-dbstag-perl/usr/bin/stag-ubiq.cgi rm -f debian/libdbix-dbstag-perl/usr/bin/*.cgi # Script not useful as template2scripts not embedded per makefile rm -f debian/libdbix-dbstag-perl/usr/bin/stag-template2bin # fix man pages, rename scripts without extensions find debian/libdbix-dbstag-perl/usr/share/man/man1 -type f | xargs sed -i 's/selectall_html\.pl/stag-selectall_html/g' find debian/libdbix-dbstag-perl/usr/share/man/man1 -type f | xargs sed -i 's/selectall_xml\.pl/stag-selectall_xml/g' find debian/libdbix-dbstag-perl/usr/share/man/man1 -type f | xargs sed -i 's/stag-autoddl\.pl/stag-autoddl/g' find debian/libdbix-dbstag-perl/usr/share/man/man1 -type f | xargs sed -i 's/stag-mogrify\.pl/stag-mogrify/g' find debian/libdbix-dbstag-perl/usr/share/man/man1 -type f | xargs sed -i 's/stag-autoddl\.pl/stag-autoddl/g' find debian/libdbix-dbstag-perl/usr/share/man/man1 -type f | xargs sed -i 's/stag-storenode\.pl/stag-storenode/g' find debian/libdbix-dbstag-perl/usr/share/man/man1 -type f | xargs sed -i 's/stag-autoschema\.pl/stag-autoschema/g'