summaryrefslogtreecommitdiffstats
path: root/wcurl.spec
diff options
context:
space:
mode:
authorMohammadreza Hendiani <man2dev@fedoraproject.org>2025-01-31 12:52:43 +0330
committerMohammadreza Hendiani <man2dev@fedoraproject.org>2025-01-31 12:52:43 +0330
commit18d06876c030936fe876508bc54d743360bb80a9 (patch)
tree50ff5e4e0cd88107e19888566fe41210854c2a8e /wcurl.spec
downloadwcurl-18d06876c030936fe876508bc54d743360bb80a9.tar.gz
wcurl-18d06876c030936fe876508bc54d743360bb80a9.tar.xz
wcurl-18d06876c030936fe876508bc54d743360bb80a9.zip
initial rpm filesHEADrawhide
Diffstat (limited to 'wcurl.spec')
-rw-r--r--wcurl.spec60
1 files changed, 60 insertions, 0 deletions
diff --git a/wcurl.spec b/wcurl.spec
new file mode 100644
index 0000000..d3d5a74
--- /dev/null
+++ b/wcurl.spec
@@ -0,0 +1,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