-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconvert2rhel.spec
44 lines (35 loc) · 1.05 KB
/
convert2rhel.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
%global __python %{__python2}
Name: convert2rhel
Version: 420.0.1
Release: 1%{?dist}
Summary: RPM package to mock the behavior of original C2R for testing purposes
License: GPLv3+
BuildArch: noarch
BuildRequires: python2
Requires: python2
URL: https://github.com/oamg/c2r-mock-utility
Source0: https://github.com/oamg/c2r-mock-utility/release/%{name}-%{version}.tar.gz
%description
# Only for testing purposes
%prep
%setup -q
%build
# No setup.py file present
%install
rm -rf %{buildroot}%{python_sitelib}/data
# Create the /usr/share/convert2rhel/ directory for storing data files
install -d %{buildroot}%{_datadir}/%{name}/
cp -ra data/ \
%{buildroot}%{_datadir}/%{name}
install -m 755 -d %{buildroot}%{_bindir}/
cp -a convert2rhel.py \
%{buildroot}%{_bindir}/%{name}
chmod 755 %{buildroot}%{_bindir}/%{name}
%files
%{_bindir}/%{name}
%{_datadir}/%{name}/
%changelog
* Thu May 30 2024 Martin Litwora <[email protected]>
- Second build
* Mon Apr 16 2024 Martin Litwora <[email protected]>
- First initial build (huzzahh!)