summaryrefslogtreecommitdiff
path: root/perl-C-Scan.spec
blob: 59b339ed9f57443cdd9b234859aaaf892ddc0476 (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
%include	/usr/lib/rpm/macros.perl
Summary:	C-Scan perl module
Summary(pl):	Moduł perla C-Scan
Name:		perl-C-Scan
Version:	0.51
Release:	3
Copyright:	GPL
Group:		Development/Languages/Perl
Group(pl):	Programowanie/Języki/Perl
Source:		ftp://ftp.perl.org/pub/CPAN/modules/by-module/C/C-Scan-%{version}.tar.gz
BuildRequires:	rpm-perlprov >= 3.0.3-16
BuildRequires:	perl >= 5.005_03-14
BuildRequires:	perl-Data-Flow
%requires_eq	perl
Requires:	%{perl_sitearch}
BuildRoot:	/tmp/%{name}-%{version}-root

%description
C-Scan - scan C language files for easily recognized constructs.

%description -l pl
Moduł perla C-Scan.

%prep
%setup -q -n C-Scan-%{version}

%build
perl Makefile.PL
make

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

(
  cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/C/Scan
  sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
  mv .packlist.new .packlist
)

gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
        Changes

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc Changes.gz

%{perl_sitelib}/C/Scan.pm
%{perl_sitearch}/auto/C/Scan

%{_mandir}/man3/*