3 %bcond_without tests # do not perform "make test"
6 %define pnam SchemaView-Plus
7 %include /usr/lib/rpm/macros.perl
8 Summary: SchemaView-Plus - drawing database schemas
9 Summary(pl.UTF-8): SchemaView-Plus - rysowanie schematów baz danych
10 Name: perl-SchemaView-Plus
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pnam}-%{version}.tar.gz
17 # Source0-md5: 12bf54544099f03fb0ab3285732c5c45
18 URL: http://search.cpan.org/dist/Math-SchemaView-Plus/
19 BuildRequires: perl(Tk::ProgressBar)
20 BuildRequires: perl-DBI >= 1.12
21 BuildRequires: perl-Tk >= 800.014
22 BuildRequires: perl-Tk-FontDialog
23 BuildRequires: perl-Tk-MListbox
24 BuildRequires: perl-XML-Dumper >= 0.4
25 BuildRequires: perl-XML-Parser
26 BuildRequires: perl-devel >= 1:5.8.0
27 BuildRequires: rpm-perlprov >= 4.1-13
28 Requires: perl-DBI >= 1.12
29 Requires: perl-Tk >= 800.014
30 Requires: perl-XML-Dumper >= 0.4
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 SchemaView Plus is a GUI for retrieve, drawing and printing database
36 schema. Schema can be retrieved using DBIx::SystemCatalog (currently
37 supported basically all current DBD drivers, some better support for
38 PostgreSQL and quite well support for Oracle). Program uses XML for
39 storing and retrieving data in text files. You can write any filters
40 to modify these XML files for add new functionality based on your
41 projects (e.g. dropping off some relationships etc.). You can specify
42 one filename on command line for autoloading it after GUI start up.
43 Schema can be printed to PostScript file.
45 %description -l pl.UTF-8
46 SchemaView Plus to GUI do odtwarzania, rysowania i drukowania
47 schematów baz danych. Schematy mogą być pozyskiwane przy użyciu
48 DBIx::SystemCatalog (aktualnie z podstawową obsługą wszystkich
49 sterowników DBD, lepszą obsługą dla PostgreSQL-a i nieco lepszą dla
50 Oracle'a). Program używa XML-a do zapisywania i odczytywania danych z
51 plików tekstowych. Można pisać dowolne filtry do modyfikowania tych
52 plików XML do dodawania nowej funkcjonalności opartej na własnych
53 projektach (np. porzucanie części relacji). Można podać jeden plik z
54 linii poleceń w celu automatycznego wczytania go po starcie GUI.
55 Schemat można wydrukować do pliku PostScript.
58 %setup -q -n %{pnam}-%{version}
61 %{__perl} Makefile.PL \
65 %{?with_tests:%{__make} test}
68 rm -rf $RPM_BUILD_ROOT
71 DESTDIR=$RPM_BUILD_ROOT
74 rm -rf $RPM_BUILD_ROOT
77 %defattr(644,root,root,755)
78 %doc Changes README eg/example.svp
79 %attr(755,root,root) %{_bindir}/svplus
80 %{perl_vendorlib}/DBIx/SystemCatalog*
81 %{perl_vendorlib}/Data/*.pm
82 %{perl_vendorlib}/Hints
83 %{perl_vendorlib}/Logo
84 %{perl_vendorlib}/Math/Project.pm
85 %{perl_vendorlib}/PostScript/Poster.pm
86 %{perl_vendorlib}/Print
87 %{perl_vendorlib}/Hints.pm