source: projects/casparbuster/pbconf/devel/cb/rpm/cb.spec @ 1491

Last change on this file since 1491 was 1491, checked in by bruno, 7 years ago
  • Improve cb dependencies for rpm
File size: 1.2 KB
Line 
1#
2# $Id$
3#
4%define perlvendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
5
6Summary:        PBSUMMARY
7
8Name:           PBREALPKG
9Version:        PBVER
10Release:        PBTAGPBSUF
11License:        PBLIC
12Group:          PBGRP
13Url:            PBURL
14Source:         PBREPO/PBSRC
15#PBPATCHSRC
16BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
17BuildArch:      noarch
18Requires:       perl >= 5.8.4,perl-ProjectBuilder,perl-Data-Dumper,perl-Net-SSH2,perl-Archive-Tar,perl-DBI,perl-DBD-SQLite
19
20%description
21PBDESC
22
23%prep
24%setup -q
25
26%build
27%{__perl} Makefile.PL INSTALLDIRS=vendor PBKEYWORD=${RPM_BUILD_ROOT}/PBFINALDIR CONFDIR=%{_sysconfdir}/cb MANDIR=%{_mandir}
28make
29
30%install
31%{__rm} -rf $RPM_BUILD_ROOT
32make DESTDIR=$RPM_BUILD_ROOT install
33find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -o -name .packlist -o -name '*.bs' -a -size 0 | xargs rm -f
34find ${RPM_BUILD_ROOT} -type d -depth | xargs rmdir --ignore-fail-on-non-empty
35
36%clean
37%{__rm} -rf $RPM_BUILD_ROOT
38
39%files
40%defattr(-,root,root)
41%doc AUTHORS INSTALL COPYING README
42
43%{perlvendorlib}/*
44%{_bindir}/*
45%{_sysconfdir}/cb
46%{_mandir}/man1/*
47%{_mandir}/man3/*
48%{_mandir}/man5/*
49
50%changelog
51PBLOG
52
Note: See TracBrowser for help on using the repository browser.