-
Notifications
You must be signed in to change notification settings - Fork 1
/
gendersllnl.spec.in
72 lines (63 loc) · 2.29 KB
/
gendersllnl.spec.in
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
Name: @PACKAGE@
Version: @VERSION@
Release: 1
Summary: LLNL site specific genders libraries
Group: System Environment/Base
License: GPL
Source: %{name}-%{version}.tar.gz
Requires: genders >= 1.2
BuildRequires: genders >= 1.2
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRoot: %{_tmppath}/%{name}-%{version}
%description
Gendersllnl is a set of Lawrence Livermore National Laboratory (LLNL)
site specific genders libraries. The libraries contain API functions
specifically for LLNL tools.
%package dist
Summary: LLNL file distribution tools
Group: System Environment/Base
Requires: pdsh >= 2.0-0.pre18
Requires: rdist
%description dist
Sets of file distribution tools used specifically by LLNL. The tools
will most likely not work by default in a non-LLNL environment.
%{!?_with_perl_extensions: %{!?_without_perl_extensions: %define _with_perl_extensions --with-perl-extensions}}
# choose vendor arch by default
%{!?_with_perl_site_arch: %{!?_with_perl_vendor_arch: %define _with_perl_vendor_arch --with-perl-vendor-arch}}
%prep
%setup -q -n %{name}-%{version}
%build
%configure --program-prefix=%{?_program_prefix:%{_program_prefix}} \
--with-perl-destdir="$RPM_BUILD_ROOT" \
%{?_with_perl_extensions} \
%{?_without_perl_extensions} \
%{?_with_perl_site_arch} \
%{?_without_perl_site_arch} \
%{?_with_perl_vendor_arch} \
%{?_without_perl_vendor_arch}
make
%install
rm -rf $RPM_BUILD_ROOT
DESTDIR="$RPM_BUILD_ROOT" make install
%files
%defattr(-,root,root)
%doc README ChangeLog COPYING NEWS DISCLAIMER DISCLAIMER.UC
# It doesn't matter if the user chooses a 32bit or 64bit target. The
# packaging must work off whatever Perl is installed.
%if %{?_with_perl_site_arch:1}%{!?_with_perl_site_arch:0}
%define _perldir %(perl -e 'use Config; $T=$Config{installsitearch}; $P=$Config{siteprefix}; $T=~/$P\\/(.*)/; print "%{_prefix}/$1\\n"')
%endif
%if %{?_with_perl_vendor_arch:1}%{!?_with_perl_vendor_arch:0}
%define _perldir %(perl -e 'use Config; $T=$Config{installvendorarch}; $P=$Config{vendorprefix}; $T=~/$P\\/(.*)/; print "%{_prefix}/$1\\n"')
%endif
%{_mandir}/man3/*
%{_includedir}/*
%{_libdir}/libgendersllnl.*
%if %{?_with_perl_extensions:1}%{!?_with_perl_extensions:0}
%{_perldir}/*
%endif
%files dist
%defattr(-,root,root)
%doc dist/TUTORIAL dist/Distfile.sample
%{_mandir}/man1/*
%{_bindir}/*