@@ -14,13 +14,13 @@ Prefix: /usr
1414
1515# Use CentOS SCL python27 (https://www.softwarecollections.org/en/scls/rhscl/python27/) on CentOS 6 (RHEL6 untested)
1616# On build host: 'yum install python27-python python27-python-devel python27-python-virtualenv gcc'
17- %{?el6:Requires: python27-python >= 2.7 }
18- %{?el6:BuildRequires: python27-python >= 2.7 python27-python-devel python27-python-virtualenv gcc}
17+ %{?el6:Requires: python27-python}
18+ %{?el6:BuildRequires: python27-python python27-python-devel python27-python-virtualenv gcc}
1919
2020# Use base python/virtualenv, which should be 2.7 on CentOS/RHEL 7
2121# On build host: 'yum install python python-devel python-virtualenv gcc'
2222%{?el7:Requires: python >= 2.7}
23- %{?el7:BuildRequires: python >= 2.7 python-devel python-virtualenv gcc}
23+ %{?el7:BuildRequires: python >= 2.7 python-devel >= 2.7 python-virtualenv gcc}
2424
2525
2626%description
3636
3737
3838%install
39- mkdir -p %{buildroot }/usr /share/%{bin_name }
40- install -m 0644 conf/example.yml %{buildroot }/usr /share/%{bin_name }/%{bin_name }.example.yml
41- install -m 0644 LICENSE %{buildroot }/usr /share/%{bin_name }/LICENSE
42- install -m 0644 README.md %{buildroot }/usr /share/%{bin_name }/README.md
39+ mkdir -p %{buildroot }%{ prefix } /share/%{bin_name }
40+ install -m 0644 conf/example.yml %{buildroot }%{ prefix } /share/%{bin_name }/%{bin_name }.example.yml
41+ install -m 0644 LICENSE %{buildroot }%{ prefix } /share/%{bin_name }/LICENSE
42+ install -m 0644 README.md %{buildroot }%{ prefix } /share/%{bin_name }/README.md
4343
4444make PREFIX= %{prefix } DESTDIR= %{buildroot } install
4545
4646
4747%files
4848%{prefix }/bin/%{bin_name }
49- /usr /share/%{bin_name }/LICENSE
50- /usr /share/%{bin_name }/README.md
51- /usr /share/%{bin_name }/%{bin_name }.example.yml
49+ %{ prefix } /share/%{bin_name }/LICENSE
50+ %{ prefix } /share/%{bin_name }/README.md
51+ %{ prefix } /share/%{bin_name }/%{bin_name }.example.yml
5252
5353
5454%changelog
0 commit comments