forked from davidvossel/phd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phd.spec.in
68 lines (53 loc) · 1.59 KB
/
phd.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
%global specversion 1
%global upstream_version HEAD
%global upstream_prefix phd
# Use a different versioning scheme
%bcond_with pre_release
%if %{with pre_release}
%global phd_release 0.%{specversion}.%{upstream_version}.git
%else
%global phd_release %{specversion}
%endif
Name: phd
Version: 0.1.0
Release: %{phd_release}%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist}
Summary: The study and application of the Pacemaker arts.
Group: System Environment/Libraries
License: LGPLv2+
URL: https://github.com/davidvossel/phd
Source0: %{upstream_prefix}-%{upstream_version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: autoconf automake libtool
%description
phd deploys pacemaker scenarios on a set of cluster nodes.
%prep
%setup -q -n %{upstream_prefix}-%{upstream_version}
# Force the local time
#
# 'git' sets the file date to the date of the last commit.
# This can result in files having been created in the future
# when building on machines in timezones 'behind' the one the
# commit occurred in - which seriously confuses 'make'
find . -exec touch \{\} \;
%build
./autogen.sh
%configure
make
%check
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
%clean
rm -rf $RPM_BUILD_ROOT
%post
%postun
%files
%defattr(-,root,root,-)
%{_sbindir}/phd_exec
%{_libexecdir}/phd/lib/*
%{_libexecdir}/phd/scenarios/*
%{_libexecdir}/phd/environment/*
%{_sysconfdir}/phd/*
%changelog
* Wed Dec 11 2013 David Vossel <dvossel@redhat.com> - 0.1.0-1
- Initial make rpm support