-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlsb-appchk-perl.spec.sed
More file actions
114 lines (91 loc) · 3.44 KB
/
Copy pathlsb-appchk-perl.spec.sed
File metadata and controls
114 lines (91 loc) · 3.44 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# %{ver}, %{rel}, %{lsbversion} are provided by the Makefile
%define ver @VERSION@
%define rel @RELEASE@
%define lsbversion @LSBVERSION@
%define basedir /opt/lsb
Summary: LSB Perl Application Checker
Name: lsb-appchk-perl
Version: %{ver}
Release: %{rel}
License: GPL
Group: Development/Tools
Source: %{name}-%{version}.tar.gz
Source1: perldeps.pl
Source2: COPYING.perldeps.pl
Source3: lsb-perl-modules.list
Patch0: perldeps-patch-for-lsb.patch
Patch1: perldeps-bug-2006.patch
URL: http://www.linuxbase.org/test
BuildRoot: %{_tmppath}/%{name}-root
AutoReqProv: no
BuildArch: noarch
%description
This is the official package version of the LSB Perl Application Test.
Dependency checking uses perldeps.pl from the rpm-build package, written
by Chip Turner <cturner@redhat.com>.
#==================================================
%prep
%setup -q
#==================================================
%build
cp %{SOURCE1} .
patch -p0 -b -z .lsb-usage < %{PATCH0}
patch -p0 -b -z .bug-2006 < %{PATCH1}
# (sb) set the default version we'll test against (from the Makefile)
sed -i 's|my $lsb_version = "4.0"|my $lsb_version = "%{lsbversion}"|g' source/lsbappchk.pl
# (sb) and the application version
sed -i 's|@BUILDVERSION@|%{ver}|g' source/lsbappchk.pl
#==================================================
%install
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}%{basedir}/bin
mkdir -p ${RPM_BUILD_ROOT}%{basedir}/share/appchk
cp -p source/lsbappchk.pl ${RPM_BUILD_ROOT}%{basedir}/bin
cp -p perldeps.pl ${RPM_BUILD_ROOT}%{basedir}/share/appchk
cp -p %{SOURCE3} ${RPM_BUILD_ROOT}%{basedir}/share/appchk
# VERSION file for the journal
cat > VERSION.lsbappchk.pl << EOF
%{name} %{version}-%{rel} (noarch)
EOF
cp VERSION.lsbappchk.pl ${RPM_BUILD_ROOT}%{basedir}/share/appchk
# License files
install -d ${RPM_BUILD_ROOT}%{basedir}/doc/%{name}
cp %{SOURCE2} ${RPM_BUILD_ROOT}%{basedir}/doc/%{name}
cp source/COPYING ${RPM_BUILD_ROOT}%{basedir}/doc/%{name}
# man page
install -d ${RPM_BUILD_ROOT}%{basedir}/man/man1
cp doc/lsbappchk.pl.1 ${RPM_BUILD_ROOT}%{basedir}/man/man1
#==================================================
%clean
if [ ! -z "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != "/" ]; then
rm -rf ${RPM_BUILD_ROOT}
fi
#==================================================
%files
%defattr(-,root,root)
/opt/lsb/bin/lsbappchk.pl
%dir /opt/lsb/share/appchk
/opt/lsb/share/appchk/*
%dir /opt/lsb/doc/%{name}
/opt/lsb/doc/%{name}/*
/opt/lsb/man/man1/lsbappchk.pl.1
#==================================================
%changelog
* Fri Jan 07 2011 Stew Benedict <stewb@linux-foundation.org>
- handle deprecated modules (bug 3096)
* Fri Dec 19 2008 Stew Benedict <stewb@linux-foundation.org>
- add manpage
* Wed Jul 02 2008 Stew Benedict <stewb@linux-foundation.org>
- lose /opt/lsb/lib to co-exist with new multiversion sdk
* Tue Jun 03 2008 Stew Benedict <stewb@linux-foundation.org>
- add multiversion support (bug 2097)
* Mon Apr 14 2008 Stew Benedict <stewb@linux-foundation.org>
- patch perldeps.pl for bug 2006 (false positives from here docs, P1)
* Fri Feb 15 2008 Stew Benedict <stewb@linux-foundation.org>
- We generate lsb-perl-modules.list from the specdb now
* Mon Dec 03 2007 Stew Benedict <stewb@linux-foundation.org>
- Add license files for perldeps.pl and lsbappchk.pl
* Sat Dec 1 2007 Mats Wichmann <mats@linux-foundation.org>
- renamed package to lsb-appchk-perl from lsbappchk-perl (convention)
* Wed Jun 20 2007 Stew Benedict <stewb@linux-foundation.org>
- initial packaging