-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvc3-release.spec
79 lines (61 loc) · 1.65 KB
/
vc3-release.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
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
#spec file for package vc3-release
#
# Copyright (c) 2011 Jonn R. Hover <[email protected]>
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# please send bugfixes or comments to [email protected]
#
#
#
Name: vc3-release
Summary: Yum release package for VC3 Project
Version: 0.9
Release: 7
BuildArch: noarch
License: GPL
Vendor: http://virtualclusters.org/
Packager: John R. Hover <[email protected]>
Group: Scientific/Engineering
Requires: yum
Provides: vc3-release
Source0: vc3-release-%{version}.tgz
BuildRoot: %{_tmppath}/vc3-release-build
%description
Yum release package for VC3 Project.
%prep
%setup -q
%build
%install
rm -rf %\{buildroot]
mkdir -p %{buildroot}/etc/yum.repos.d
cp vc3-production.repo %{buildroot}/etc/yum.repos.d/
cp vc3-development.repo %{buildroot}/etc/yum.repos.d/
cp vc3-external.repo %{buildroot}/etc/yum.repos.d/
mkdir -p %{buildroot}/etc/pki/rpm-gpg/
cp RPM-GPG-KEY-vc3.asc %{buildroot}/etc/pki/rpm-gpg/
%clean
rm -rf %{buildroot}
%pre
#mkdir -p /usr/share/projectname
#mkdir -p /etc/projectname
%post
%preun
%postun
#rmdir /usr/share/projectname
%files
%defattr(755,root,root,-)
#/usr/bin/projectbin.sh
%defattr(-,root,root,-)
#/usr/share/projectname/projectfile
/etc/pki/rpm-gpg/RPM-GPG-KEY-vc3.asc
%defattr(-,root,root,-)
%config(noreplace) /etc/yum.repos.d/vc3-development.repo
%config(noreplace) /etc/yum.repos.d/vc3-production.repo
%config(noreplace) /etc/yum.repos.d/vc3-external.repo
# secret files
%defattr(644,root,root,-)
#/root/.projectname/project.cfg
%changelog
* Fri Jan 27 2017 - jhover (at) bnl.gov
- Initial RPM-ization