|
1 | | -%global binaries_py_version %{python3_version} |
2 | 1 | %global owner Commonjava |
3 | | -%global project charon |
| 2 | +%global modulename charon |
| 3 | + |
| 4 | +%global charon_version 1.1.2 |
| 5 | +%global sdist_tar_name %{modulename}-%{charon_version} |
| 6 | + |
| 7 | +%global python3_pkgversion 3 |
| 8 | + |
| 9 | +Name: %{modulename} |
| 10 | +Summary: Charon CLI |
| 11 | +Version: %{charon_version} |
| 12 | +Release: 1%{?dist} |
| 13 | +URL: https://github.com/%{owner}/%{modulename} |
| 14 | +Source0: %{url}/archive/%{charon_version}.tar.gz |
| 15 | +Provides: %{modulename} = %{version}-%{release} |
| 16 | + |
| 17 | +Group: Development/Tools |
| 18 | +License: APLv2 |
| 19 | + |
| 20 | +# Build Requirements |
| 21 | +BuildArch: x86_64 |
| 22 | + |
| 23 | +BuildRequires: python%{python3_pkgversion}-setuptools |
| 24 | +BuildRequires: python%{python3_pkgversion}-devel |
| 25 | + |
| 26 | +Requires: python%{python3_pkgversion}-boto3 |
| 27 | +Requires: python%{python3_pkgversion}-botocore |
| 28 | +Requires: python%{python3_pkgversion}-jinja2 |
| 29 | +Requires: python%{python3_pkgversion}-markupsafe |
| 30 | +Requires: python%{python3_pkgversion}-dateutil |
| 31 | +Requires: python%{python3_pkgversion}-six |
| 32 | +Requires: python%{python3_pkgversion}-jmespath |
| 33 | +Requires: python%{python3_pkgversion}-urllib3 |
| 34 | +Requires: python%{python3_pkgversion}-s3transfer |
| 35 | +Requires: python%{python3_pkgversion}-click |
| 36 | +Requires: python%{python3_pkgversion}-requests |
| 37 | +Requires: python%{python3_pkgversion}-idna |
| 38 | +Requires: python%{python3_pkgversion}-chardet |
| 39 | +Requires: python%{python3_pkgversion}-cryptography |
| 40 | +Requires: python%{python3_pkgversion}-cffi |
| 41 | +Requires: python%{python3_pkgversion}-pycparser |
| 42 | +Requires: python%{python3_pkgversion}-certifi |
| 43 | +Requires: python%{python3_pkgversion}-pyOpenSSL |
| 44 | +Requires: python%{python3_pkgversion}-ruamel-yaml |
| 45 | +Requires: python%{python3_pkgversion}-defusedxml |
| 46 | +Requires: python%{python3_pkgversion}-semantic-version |
| 47 | +Requires: python%{python3_pkgversion}-subresource-integrity |
| 48 | +Requires: python%{python3_pkgversion}-jsonschema |
| 49 | +Requires: python%{python3_pkgversion}-importlib-metadata |
| 50 | +Requires: python%{python3_pkgversion}-zipp |
| 51 | +Requires: python%{python3_pkgversion}-attrs |
| 52 | +Requires: python%{python3_pkgversion}-pyrsistent |
4 | 53 |
|
5 | | -Name: %{project} |
6 | | -Version: 1.0.0 |
7 | | -Release: 1%{?dist} |
8 | | - |
9 | | -Summary: Charon CLI |
10 | | -Group: Development/Tools |
11 | | -License: APLv2 |
12 | | -URL: https://github.com/%{owner}/%{project} |
13 | | -Source0: https://github.com/%{owner}/%{project}/archive/%{version}.tar.gz |
14 | | - |
15 | | -BuildArch: noarch |
16 | | - |
17 | | -Requires: python3-charon = %{version}-%{release} |
18 | | -Requires: git >= 1.7.10 |
19 | | - |
20 | | -BuildRequires: python3-devel |
21 | | -BuildRequires: python3-setuptools |
22 | 54 |
|
23 | 55 | %description |
24 | 56 | Simple Python tool with command line interface for charon init, |
25 | 57 | upload, delete, gen and ls functions. |
26 | 58 |
|
27 | | -%package -n python3-charon |
28 | | -Summary: Python 3 CHARON library |
29 | | -Group: Development/Tools |
30 | | -License: APLv2 |
31 | | -Requires: python3-requests |
32 | | -Requires: python3-setuptools |
33 | | -Requires: python3-rpm |
34 | | -%{?python_provide:%python_provide python3-charon} |
35 | | - |
36 | | -%description -n python3-charon |
37 | | -Simple Python 3 library for CHARON functions. |
38 | | - |
39 | 59 | %prep |
40 | | -%setup -q |
| 60 | +%autosetup -p1 -n %{sdist_tar_name} |
41 | 61 |
|
42 | 62 | %build |
43 | 63 | %py3_build |
44 | 64 |
|
45 | 65 |
|
46 | 66 | %install |
| 67 | +export LANG=en_US.UTF-8 LANGUAGE=en_US.en LC_ALL=en_US.UTF-8 |
47 | 68 | %py3_install |
48 | | -mv %{buildroot}%{_bindir}/charon %{buildroot}%{_bindir}/charon-%{python3_version} |
49 | | -ln -s %{_bindir}/charon-%{python3_version} %{buildroot}%{_bindir}/charon-3 |
50 | | - |
51 | | -ln -s %{_bindir}/charon-%{binaries_py_version} %{buildroot}%{_bindir}/charon |
52 | | - |
53 | | -# ship charon in form of tarball so it can be installed within build image |
54 | | -mkdir -p %{buildroot}/%{_datadir}/%{name}/ |
55 | | -cp -a %{sources} %{buildroot}/%{_datadir}/%{name}/charon.tar.gz |
56 | | - |
57 | | -# setup docs |
58 | | -#mkdir -p %{buildroot}%{_mandir}/man1 |
59 | | -#cp -a docs/manpage/charon.1 %{buildroot}%{_mandir}/man1/ |
60 | 69 |
|
61 | 70 |
|
62 | 71 | %files |
| 72 | +%defattr(-,root,root) |
63 | 73 | %doc README.md |
64 | | -#%{_mandir}/man1/charon.1* |
| 74 | +%{_bindir}/%{modulename}* |
| 75 | +%{python3_sitelib}/* |
65 | 76 | %{!?_licensedir:%global license %doc} |
66 | 77 | %license LICENSE |
67 | | -%{_bindir}/charon |
68 | | - |
69 | | -%files -n python3-charon |
70 | | -%doc README.md |
71 | | -%{!?_licensedir:%global license %doc} |
72 | | -%license LICENSE |
73 | | -%{_bindir}/charon-%{python3_version} |
74 | | -%{_bindir}/charon-3 |
75 | | -#%{_mandir}/man1/charon.1* |
76 | | -%dir %{python3_sitelib}/charon |
77 | | -%dir %{python3_sitelib}/charon/__pycache__ |
78 | | -%{python3_sitelib}/charon/*.* |
79 | | -%{python3_sitelib}/charon/cmd |
80 | | -%{python3_sitelib}/charon/pkgs |
81 | | -%{python3_sitelib}/charon/utils |
82 | | -%{python3_sitelib}/charon/__pycache__/*.py* |
83 | | -%{python3_sitelib}/charon_*.egg-info |
84 | | -%dir %{_datadir}/%{name} |
85 | | -# ship charon in form of tarball so it can be installed within build image |
86 | | -%{_datadir}/%{name}/charon.tar.gz |
87 | 78 |
|
88 | 79 |
|
89 | 80 | %changelog |
| 81 | +* Tue Sep 20 2022 Harsh Modi <[email protected]> |
| 82 | +- 1.1.2 release |
| 83 | +- add configuration schema and validation |
| 84 | +- allow specifying multiple target buckets |
| 85 | + |
| 86 | +* Thu Aug 25 2022 Harsh Modi <[email protected]> |
| 87 | +- 1.1.1 release |
0 commit comments