summaryrefslogtreecommitdiff
path: root/postgresql_autodoc.spec
blob: fcd5e61156580e0c90e135308f411dc6c533e166 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63


Summary:	postgresql_autodoc - Perl script for creating documentaion for PostgreSQL databases
Summary(pl.UTF-8):	postgresql_autodoc - skrypt Perla umożliwiający tworzenie dokumentacji baz PostgreSQL
Name:		postgresql_autodoc
Version:	1.41
Release:	1
License:	BSD-like
Group:		Applications/Databases
Source0:	http://www.rbt.ca/autodoc/binaries/%{name}-%{version}.tar.gz
# Source0-md5:	a23ae4a49bfd0c14375b3ea6e04cd5b9
Patch0:		%{name}-Makefile.patch
URL:		http://www.rbt.ca/autodoc/
BuildRequires:	perl-DBI
BuildRequires:	perl-DBD-Pg
BuildRequires:	perl-HTML-Template
BuildRequires:	perl-Term-ReadKey
BuildRequires:	perl-devel >= 1:5.8.0
BuildRequires:	rpm-perlprov >= 4.1-13
Requires:	perl-DBD-Pg
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
postgresql_autodoc is a utility which will run through PostgreSQL
system tables and returns HTML, Dot, Dia and DocBook XML which
describes the database.

The default output may be changed or new types may be created by
altering the Templates which control the text file formatting.

%description -l pl.UTF-8
postgresql_autodoc jest narzędziem potrafiącym przeanalizować tabele
systemowe PostgreSQL w celu utworzenia plików HTML, Dot, Dia i DocBook
XML opisujących analizowaną bazę danych.

Domyślna postać wyników może być zmieniana, a nowe typy plików
wynikowych mogą być tworzone poprzez zmiany w szablonach
kontrolujących proces formatowania plików wynikowych.

%prep
%setup -q -n %{name}
%patch0 -p0

%build
%{__make} PREFIX=%{_usr}

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/postgresql_autodoc}

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT \
	PREFIX=%{_usr}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/postgresql_autodoc
%{_datadir}/postgresql_autodoc
%{_mandir}/man1/postgresql_autodoc.1*