- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Parse-Dia-SQL.git] / perl-Parse-Dia-SQL.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Parse
6 %define pnam    Dia-SQL
7 Summary:        Parse::Dia::SQL - Convert Dia class diagrams into SQL
8 #Summary(pl.UTF-8):     
9 Name:           perl-Parse-Dia-SQL
10 Version:        0.20
11 Release:        1
12 License:        GPL
13 Group:          Development/Languages/Perl
14 Source0:        http://search.cpan.org/CPAN/authors/id/A/AF/AFF/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  6aed27ee22c012ccb47a211465432cac
16 URL:            http://search.cpan.org/dist/Parse-Dia-SQL/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl-Log-Log4perl
21 BuildRequires:  perl-Test-Exception
22 BuildRequires:  perl-Text-Table
23 BuildRequires:  perl-XML-DOM
24 BuildRequires:  perl-XML-Parser
25 %endif
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 Parse::Dia::SQL converts Dia class diagrams into SQL.
31
32 # %description -l pl.UTF-8
33 # TODO
34
35 %prep
36 %setup -q -n %{pdir}-%{pnam}-%{version}
37
38 %build
39 %{__perl} Makefile.PL \
40         INSTALLDIRS=vendor
41 %{__make}
42
43 %{?with_tests:%{__make} test}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %{__make} pure_install \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %attr(755,root,root) %{_bindir}/*
57 %doc AUTHORS Changes README TODO
58 %{perl_vendorlib}/Parse/Dia
59 %{_mandir}/man?/*
This page took 0.177777 seconds and 4 git commands to generate.