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