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