blob: d3d5a7403f0bc15c0b3b5626c783c080c80f206f (
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
|
Name: wcurl
Version: 2024.12.08
Epoch: 1
Release: %autorelease
Summary: A simple wrapper around curl to easily download files
License: Curl
BuildArch: noarch
URL: https://github.com/curl/%{name}
Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: bash
BuildRequires: curl
BuildRequires: shellcheck
BuildRequires: devscripts
BuildRequires: shunit2
Requires: bash
Requires: curl
%global _description %{expand:
a simple wrapper around curl to easily download files}
%description %{_description}
%package %{name}
Summary: %{summary}
%description %{name} %{_description}
%prep
%autosetup -p1 -n %{name}-%{version}
%{__mkdir_p} %{buildroot}/%{_mandir}/man1
%{__mkdir_p} %{buildroot}/%{_pkgdocdir}
chmod 644 %{name}.1
%build
%install
# install -pm0644 %{name}.1 %{buildroot}/%{_mandir}/man1/%{name}.1
# ln -s %{name}.1 %{_mandir}/man1/%{name}.1
# install -pm644 %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
# for obj in README.md CHANGELOG.md AUTHORS; do
# %%{__install} -Dp $obj %{buildroot}/%{_pkgdocdir}/$obj
# %%{__install} -p -t %{_pkgdocdir} $obj
# install -p %{_vpath_srcdir}/$obj %{_pkgdocdir}/$obj
# done
%check
# %%{_vpath_srcdir}/tests/tests.sh
%files %{name}
%doc README.md
%doc CHANGELOG.md
%doc AUTHORS
%doc %{name}.1
# %%doc %%{_mandir}/man1/%%{name}.1
%license LICENSE
%changelog
%autochangelog
|