summaryrefslogtreecommitdiff
path: root/hydra.spec
blob: 5bbf2ce3f91f9c3f9d2ee70ebe945abb791793e6 (plain)
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
%global _empty_manifest_terminate_build 0
%global _unpackaged_files_terminate_build 0

# using global macro to speed up the spec editing
%global pkg_name hydra
%global version 1.3.2
%global pkg_summary %{expand:Hydra is a framework for elegantly configuring complex applications.}
%global pkg_desc %{expand:%{pkg_summary}}
%global open_license MIT

Name:           %{pkg_name}
Version:        %{version}
Release:        1
Summary:        %{pkg_summary}
License:        %{open_license}

# the url and source0 url here
URL:            https://hydra.cc/
Source0:        https://github.com/facebookresearch/hydra/archive/refs/tags/v%{version}.tar.gz#/hydra-%{version}.tar.gz

# build requires
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-pip
BuildRequires:	python3-wheel
BuildRequires:  python3-hatchling
BuildRequires:	python3-setuptools_scm
BuildRequires:  python3-pytorch

# higharchy desc
%description
%{pkg_summary}

# sub pkg section 1
%package -n python3-%{pkg_name}
Summary: %{pkg_summary}

%description -n python3-%{pkg_name}
%{pkg_desc}

# pkg section: help     optional
# %package -n help
# Summary: docs for the transformers
# Provides: python3-transformers-doc
# %description -n help
# description for the doc of the python3-transformers

# the name here should match the name of the dir of the source code zip
# which got from the .tar.gz unzipped
%prep
%autosetup -p1 -n hydra-%{version}

# using python poject build, supplied by setup.py or pyproject.toml
%build
%pyproject_build

# using python project install, supplied by setup.py or pyproject.toml
%install
%pyproject_install

# point out the files here
%files -n python3-%{pkg_name}
%doc *.md
%license LICENSE*
%{python3_sitelib}/{pkg_name}*


%changelog
* Mon Apr 15 2024 youser<1328699220@qq.com>
- pkg init