Skip to content

Commit 762d9be

Browse files
authored
Fix mise specfile (#1)
* Try to fix mise specfile * remove bin dir * Use Copilot to see if it can fix mise.spec * test autosetup * test * works locally with fedpkg
1 parent e3c99f8 commit 762d9be

File tree

1 file changed

+16
-27
lines changed

1 file changed

+16
-27
lines changed

specs/mise.spec

+16-27
Original file line numberDiff line numberDiff line change
@@ -6,50 +6,39 @@ Release: 1%{?dist}
66
Summary: dev tools, env vars, task runner
77

88
License: MIT
9-
# https://github.com/jdx/mise/releases/download/v2024.11.4/mise-v2024.11.4-linux-x64-musl.tar.gz
109
URL: https://github.com/jdx/mise
1110
Source: %{url}/releases/download/v%{version}/%{name}-v%{version}-linux-x64-musl.tar.gz
12-
#Source1: https://raw.githubusercontent.com/jdx/mise/v%{version}/docs/MANPAGE.md
13-
14-
BuildRequires: pandoc
11+
Source1: https://raw.githubusercontent.com/jdx/mise/v%{version}/README.md
12+
Source2: https://raw.githubusercontent.com/jdx/mise/v%{version}/completions/mise.bash
13+
Source3: https://raw.githubusercontent.com/jdx/mise/v%{version}/completions/mise.fish
1514

1615
%description
1716
mise (pronounced "meez") or "mise-en-place" is a development environment setup tool. The name refers to a French culinary phrase that roughly translates to "setup" or "put in place". The idea is that before one begins cooking, they should have all their utensils and ingredients ready to go in their place.
18-
mise does the same for your projects. Using its .mise.toml config file, you'll have a consistent way to setup and interact with your projects no matter what language they're written in.
17+
mise does the same for your projects. Using its mise.toml config file, you'll have a consistent way to setup and interact with your projects no matter what language they're written in.
1918
Its functionality is grouped into 3 categories described below.
2019
mise installs and manages dev tools/runtimes like node, python, or terraform both simplifying installing these tools and allowing you to specify which version of these tools to use in different projects. mise supports hundreds of dev tools.
2120
mise manages environment variables letting you specify configuration like AWS_ACCESS_KEY_ID that may differ between projects. It can also be used to automatically activate a Python virtualenv when entering projects too.
2221
mise is a task runner that can be used to share common tasks within a project among developers and make things like running tasks on file changes easy.
2322

2423
%prep
25-
# This source file doesn't have a high level directory, so create one
26-
%autosetup -c
27-
# Get the manpage in the build dir
28-
#cp %{SOURCE1} .
24+
%autosetup -n mise
2925

30-
#%build
31-
# Generate shell completions
32-
#./%{name} setup --generate-completion bash > %{name}.bash
33-
#./%{name} setup --generate-completion zsh > _%{name}
34-
#./%{name} setup --generate-completion fish > %{name}.fish
26+
cp %{SOURCE1} CONFIGURATION.md
27+
cp %{SOURCE2} .
28+
cp %{SOURCE3} .
3529

36-
# Generate manpage (https://eddieantonio.ca/blog/2015/12/18/authoring-manpages-in-markdown-with-pandoc/)
37-
#pandoc --standalone --to man MANPAGE.md | gzip -c > %{name}.1.gz
30+
%build
3831

3932
%install
40-
install -p -D %{name} %{buildroot}%{_bindir}/%{name}
33+
# Ensure the source binary is in the expected location
34+
install -p -D bin/%{name} %{buildroot}%{_bindir}/%{name}
4135

4236
# Shell completions
43-
#install -pvD -m 0644 %{name}.bash %{buildroot}%{bash_completions_dir}/%{name}
44-
#install -pvD -m 0644 _%{name} %{buildroot}%{zsh_completions_dir}/_%{name}
45-
#install -pvD -m 0644 %{name}.fish %{buildroot}%{fish_completions_dir}/%{name}.fish
46-
47-
# Man page
48-
#install -pvD -m 0644 %{name}.1.gz %{buildroot}%{_mandir}/man1/%{name}.1.gz
37+
install -pvD -m 0644 %{name}.bash %{buildroot}%{bash_completions_dir}/%{name}
38+
install -pvD -m 0644 %{name}.fish %{buildroot}%{fish_completions_dir}/%{name}.fish
4939

5040
%files
41+
%doc CONFIGURATION.md
5142
%{_bindir}/%{name}
52-
#%{bash_completions_dir}/%{name}
53-
#%{zsh_completions_dir}/_%{name}
54-
#%{fish_completions_dir}/%{name}.fish
55-
#%{_mandir}/man1/%{name}.1.gz
43+
%{bash_completions_dir}/%{name}
44+
%{fish_completions_dir}/%{name}.fish

0 commit comments

Comments
 (0)