[packages/pastebin-cl] Use 20201008 snap
arekm
arekm at pld-linux.org
Sun Aug 23 15:11:56 CEST 2026
commit b7955a105868e80212920460d7b99a4b249e014f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Aug 23 15:11:41 2026 +0200
Use 20201008 snap
pastebin-cl.spec | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/pastebin-cl.spec b/pastebin-cl.spec
index fe574a7..8447b0f 100644
--- a/pastebin-cl.spec
+++ b/pastebin-cl.spec
@@ -2,12 +2,17 @@ Summary: Command line pastebin
Summary(pl.UTF-8): Klient pastebin działający z linii poleceń
Name: pastebin-cl
Version: 0.6
-Release: 1
+%define gitref 0e5b13d6c337d0b9e2baa56511d8e20c7a0ecda6
+%define snap 20201008
+%define rel 1
+Release: 1.%{snap}.%{rel}
License: GPL v2+
Group: Applications
-Source0: https://github.com/tupton/pastebin-cl/zipball/0.6#/%{name}-%{version}.zip
-# Source0-md5: 9f638e89a6b1a8e66395615a11234c03
+# last tag is 0.6 (2011); only master carries the https switch pastebin.com now forces
+Source0: https://github.com/tupton/pastebin-cl/archive/%{gitref}/%{name}-%{snap}.tar.gz
+# Source0-md5: ca5c347ebb99fc0b90e54f3e77ed41a8
URL: https://github.com/tupton/pastebin-cl
+BuildRequires: sed >= 4.0
Requires: python-modules
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -15,11 +20,13 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
A utility to paste to pastebin from the command line.
-%description -l pl
+%description -l pl.UTF-8
Narzędzie do wklejania do pastebin z linii poleceń.
%prep
-%setup -q -n tupton-%{name}-dedeadf
+%setup -q -n %{name}-%{gitref}
+
+%{__sed} -i -e '1s,^#!.*python,#!%{__python},' pastebin.py
%build
@@ -34,4 +41,5 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
+%doc README.md
%attr(755,root,root) %{_bindir}/pastebin
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pastebin-cl.git/commitdiff/b7955a105868e80212920460d7b99a4b249e014f
More information about the pld-cvs-commit
mailing list