]> git.pld-linux.org Git - packages/cpan2rpm.git/blame - cpan2rpm.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/cpan2rpm.git] / cpan2rpm.spec
CommitLineData
e84dd4e0
JB
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
71933f1e 5Summary: Create RPMS from CPAN modules
22f7a79e 6Summary(pl.UTF-8): Narzędzie tworzące pakiety RPM z modułów CPAN
71933f1e 7Name: cpan2rpm
3478a66b 8Version: 2.028
71933f1e 9Release: 1
1e7d3732 10License: GPL v2+
b0ded470 11Group: Development/Languages/Perl
e84dd4e0 12Source0: http://www.cpan.org/authors/id/E/EC/ECALDER/%{name}-%{version}.tar.gz
3478a66b 13# Source0-md5: 4f85e07dfa848e5b72791aed975e8bc4
10e89129 14Patch0: %{name}-make.patch
d7a71c3e 15URL: http://perl.arix.com/cpan2rpm/
e84dd4e0
JB
16BuildRequires: perl-devel >= 1:5.8.0
17BuildRequires: rpm-perlprov >= 4.1-13
18BuildArch: noarch
71933f1e 19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22cpan2rpm creates RPMs from CPAN packages, automating the locating,
23fetching, spec file creation and building of the package.
24
8ef14aaf
JR
25%description -l pl.UTF-8
26cpan2rpm tworzy pakiety RPM z pakietów CPAN, automatycznie je
27znajdując, ściągając, tworząc plik spec i budując pakiet.
fbd2da20 28
71933f1e 29%prep
a906abcc 30%setup -q
10e89129 31%patch0 -p1
71933f1e 32
33%build
e84dd4e0
JB
34%{__perl} Makefile.PL \
35 INSTALLDIRS=vendor
36
37# avoid running cpan2rpm and using network
38touch cpan2rpm.spec
39
71933f1e 40%{__make}
41
e84dd4e0
JB
42%{?with_tests:%{__make} test}
43
fbd2da20 44%install
71933f1e 45rm -rf $RPM_BUILD_ROOT
6ea7e821 46
e84dd4e0
JB
47%{__make} install \
48 DESTDIR=$RPM_BUILD_ROOT
71933f1e 49
fbd2da20 50%clean
71933f1e 51rm -rf $RPM_BUILD_ROOT
71933f1e 52
fbd2da20 53%files
71933f1e 54%defattr(644,root,root,755)
e84dd4e0 55%doc Changes README
fbd2da20
JB
56%attr(755,root,root) %{_bindir}/*
57%{_mandir}/man1/*
This page took 0.090859 seconds and 4 git commands to generate.