forked from beanz/xpl-perl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xpl-perl.spec
54 lines (44 loc) · 1.5 KB
/
xpl-perl.spec
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
Summary: Modules for writing xPL applications in Perl
Name: xpl-perl
Version: 0.05
Release: 1
Copyright: Perl Licence (C) 2005, 2008 by Mark Hindess
Group: Applications/CPAN
Source0: xPL-Perl-%{version}.tar.gz
Url: http://www.xpl-perl.org.uk/
BuildRoot: %{_tmppath}/xpl-perl-buildroot/
BuildRequires: perl
Requires: perl
%description
These modules are intended to provide a framework for writing xPL
applications (see http://wiki.xplproject.org.uk/) in Perl. A number
of sample applications are also provided including a hub, a logging
client, a bridge and a command line message sender.
# Provide perl-specific find-{provides,requires}.
#%define __find_provides /usr/lib/rpm/find-provides.perl
#%define __find_requires /usr/lib/rpm/find-requires.perl
%prep
%setup -q -n xPL-Perl-%{version}
%build
CFLAGS="$RPM_OPT_FLAGS"
perl Makefile.PL DESTDIR=$RPM_BUILD_ROOT INSTALLDIRS=vendor
make
%clean
rm -rf $RPM_BUILD_ROOT
%install
rm -rf $RPM_BUILD_ROOT
make install
rm `find $RPM_BUILD_ROOT/usr -name "perllocal.pod" -print`|| true
rm `find $RPM_BUILD_ROOT/usr -name "\.packlist" -print` || true
[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
find $RPM_BUILD_ROOT -type f -print |
sed "s@^$RPM_BUILD_ROOT@@g" > xpl-perl-%{version}-filelist
if [ "$(cat xpl-perl-%{version}-filelist)X" = "X" ] ; then
echo "ERROR: EMPTY FILE LIST"
exit -1
fi
%files -f xpl-perl-%{version}-filelist
%defattr(-,root,root)
%changelog
* Mon Dec 12 2005 Mark Hindess <[email protected]>
- Initial spec file