]> git.pld-linux.org Git - packages/perl-SQL-Translator.git/blame - perl-SQL-Translator.spec
- up to 0.11018
[packages/perl-SQL-Translator.git] / perl-SQL-Translator.spec
CommitLineData
96297016 1#
2# Conditional build:
4821c3c7 3%bcond_without tests # do not perform "make test"
96297016 4#
5%include /usr/lib/rpm/macros.perl
6%define pdir SQL
7%define pnam Translator
8Summary: SQL::Translator - manipulate structure data definitions (database schemas)
8f8eea90 9Summary(pl.UTF-8): SQL::Translator - manipulowanie definicjami struktur danych (schematami baz danych)
96297016 10Name: perl-SQL-Translator
b9f6a343 11Version: 0.11018
a0b0a5ae 12Release: 1
96297016 13License: GPL v2
14Group: Development/Languages/Perl
a1b0b1b4 15Source0: http://www.cpan.org/modules/by-module/SQL/%{pdir}-%{pnam}-%{version}.tar.gz
b9f6a343 16# Source0-md5: 03db60b963836ba2d264f33d585dffb3
a1b0b1b4
JB
17URL: http://search.cpan.org/dist/SQL-Translator/
18BuildRequires: perl-Module-Build
96297016 19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21%if %{with tests}
4b05d196 22BuildRequires: perl(File::ShareDir) >= 1
96297016 23BuildRequires: perl-Class-Base
4db917b3 24BuildRequires: perl-Class-Data-Inheritable >= 0.02
25BuildRequires: perl-Class-MakeMethods
72aee933
JB
26BuildRequires: perl-DBI
27BuildRequires: perl-GD
28BuildRequires: perl-GraphViz
4db917b3 29BuildRequires: perl-Log-Log4perl
4b05d196 30BuildRequires: perl-Parse-RecDescent >= 1.962.002
96297016 31BuildRequires: perl-Pod-Parser
4db917b3 32BuildRequires: perl-Spreadsheet-ParseExcel >= 0.2602
33BuildRequires: perl-Template-Toolkit >= 2.10
34BuildRequires: perl-Template-Toolkit-Plugin-Date
72aee933
JB
35BuildRequires: perl-Test-Differences
36BuildRequires: perl-Test-Exception
4db917b3 37BuildRequires: perl-Test-Simple >= 0.60
38BuildRequires: perl-Text-RecordParser >= 0.02
39BuildRequires: perl-XML-Writer >= 0.500
40BuildRequires: perl-XML-XPath >= 1.13
41BuildRequires: perl-YAML >= 0.39
96297016 42%endif
43BuildArch: noarch
44BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
c968f408 46# stupid rpm... should invoke perl.req for all files at once
47%define _noautoreq 'perl(SQL::Translator.*)'
48
96297016 49%description
50SQL::Translator is a group of Perl modules that manipulate structure
809b4e95 51data definitions (mostly database schemas) in interesting ways, such
52as converting among different dialects of CREATE syntax (e.g.,
53MySQL-to-Oracle), visualizations of schemas (pseudo-ER diagrams
54GraphViz or GD), automatic code generation (using Class::DBI),
55converting non-RDBMS files to SQL schemas (xSV text files, Excel
56spreadsheets), serializing parsed schemas (via Storable, YAML and
57XML), creating documentation (HTML and POD), and more. We also have
58the ability to talk directly to a database through DBI to query for
59the structures of several databases.
96297016 60
6d36e81b
JR
61%description -l pl.UTF-8
62SQL::Translator to grupa modułów Perla obrabiających definicje danych
63struktur (głównie schematów baz danych) na ciekawe sposoby, takie jak
64konwersja między różnymi dialektami składni CREATE (np. MySQL do
65Oracle), wizualizacja schematów (diagramy pseudo-ER, GraphViz i
66GD), automatyczne generowanie kodu (przy użyciu Class::DBI), konwersja
67plików nie będących relacyjnymi bazami danych do schematów SQL (pliki
68tekstowe xSV, arkusze Excela), serializacja przetworzonych schematów
36bdf325 69(poprzez Storable, YAML i XML), tworzenie dokumentacji (HTML i POD)
6d36e81b
JR
70itd. Istnieje także możliwość bezpośredniej komunikacji z bazą danych
71poprzez DBI w celu odpytania o struktury różnych baz.
96297016 72
73%prep
74%setup -q -n %{pdir}-%{pnam}-%{version}
75
76%build
4b05d196 77%{__perl} Makefile.PL \
96297016 78 installdirs=vendor \
79 destdir=$RPM_BUILD_ROOT
4b05d196 80%{__make}
96297016 81
4b05d196 82%{?with_tests:%{__make} test}
96297016 83
84%install
85rm -rf $RPM_BUILD_ROOT
86
4b05d196 87%{__make} install
96297016 88
89%clean
90rm -rf $RPM_BUILD_ROOT
91
92%files
93%defattr(644,root,root,755)
c968f408 94%doc AUTHORS BUGS Changes README
96297016 95%attr(755,root,root) %{_bindir}/*
96%{perl_vendorlib}/SQL/*.pm
97%{perl_vendorlib}/SQL/Translator
7ed0f55e 98%{perl_vendorlib}/Test/SQL
96297016 99%{_mandir}/man?/*
This page took 0.072897 seconds and 4 git commands to generate.