forked from sarugaku/shellingham
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git clean -xdf tar zcvf ../python-shellingham_1.5.0.orig.tar.gz --exclude=.git . debuild -uc -us cp python-shellingham.spec ../python-shellingham_1.5.0-1.spec mv ../python*-shellingham*1.5.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/sarugaku-shellingham-1.5.0/ rm -rf ../python*-shellingham*1.5.0*.* See sarugaku#62 Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
- Loading branch information
Showing
13 changed files
with
161 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,5 @@ dist | |
# Testing | ||
.tox | ||
.pytest_cache | ||
|
||
.pybuild/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
*.substvars | ||
*debhelper* | ||
.debhelper | ||
files | ||
python3-shellingham | ||
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
python-shellingham (100:1.5.0-1) UNRELEASED; urgency=medium | ||
|
||
* https://github.com/sarugaku/shellingham/releases/tag/1.5.0 | ||
|
||
-- Wong Hoi Sing Edison <hswong3i@gmail.com> Thu, 04 Aug 2022 11:00:09 +0800 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Source: python-shellingham | ||
Section: python | ||
Priority: optional | ||
Standards-Version: 4.5.0 | ||
Maintainer: Wong Hoi Sing Edison <hswong3i@gmail.com> | ||
Homepage: https://github.com/sarugaku/shellingham/tags | ||
Vcs-Browser: https://github.com/alvistack/sarugaku-shellingham | ||
Vcs-Git: https://github.com/alvistack/sarugaku-shellingham.git | ||
Build-Depends: | ||
debhelper, | ||
debhelper-compat (= 10), | ||
dh-python, | ||
fdupes, | ||
python3-dev, | ||
python3-setuptools, | ||
|
||
Package: python3-shellingham | ||
Architecture: all | ||
Description: Tool to detect surrounding Shell | ||
Shellingham detects what shell the current Python executable is running | ||
in. | ||
Depends: | ||
${misc:Depends}, | ||
${shlibs:Depends}, | ||
${python3:Depends}, | ||
python3, |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
usr/lib/python*/*-packages/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
python3-shellingham: copyright-without-copyright-notice | ||
python3-shellingham: initial-upload-closes-no-bugs | ||
python3-shellingham: no-manual-page | ||
python3-shellingham: zero-byte-file-in-doc-directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/make -f | ||
|
||
SHELL := /bin/bash | ||
|
||
override_dh_auto_install: | ||
dh_auto_install --destdir=debian/tmp | ||
find debian/tmp/usr/lib/python*/*-packages -type f -name '*.pyc' -exec rm -rf {} \; | ||
fdupes -qnrps debian/tmp/usr/lib/python*/*-packages | ||
|
||
override_dh_auto_test: | ||
|
||
override_dh_auto_clean: | ||
|
||
%: | ||
dh $@ --buildsystem=pybuild --with python3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.0 (quilt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
python-shellingham source: no-debian-changes | ||
python-shellingham source: source-contains-prebuilt-windows-binary | ||
python-shellingham source: source-package-encodes-python-version |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
%global debug_package %{nil} | ||
|
||
Name: python-shellingham | ||
Epoch: 100 | ||
Version: 1.5.0 | ||
Release: 1%{?dist} | ||
BuildArch: noarch | ||
Summary: Tool to detect surrounding Shell | ||
License: ISC | ||
URL: https://github.com/sarugaku/shellingham/tags | ||
Source0: %{name}_%{version}.orig.tar.gz | ||
BuildRequires: fdupes | ||
BuildRequires: python-rpm-macros | ||
BuildRequires: python3-devel | ||
BuildRequires: python3-setuptools | ||
|
||
%description | ||
Shellingham detects what shell the current Python executable is running | ||
in. | ||
|
||
%prep | ||
%autosetup -T -c -n %{name}_%{version}-%{release} | ||
tar -zx -f %{S:0} --strip-components=1 -C . | ||
|
||
%build | ||
%py3_build | ||
|
||
%install | ||
%py3_install | ||
find %{buildroot}%{python3_sitelib} -type f -name '*.pyc' -exec rm -rf {} \; | ||
fdupes -qnrps %{buildroot}%{python3_sitelib} | ||
|
||
%check | ||
|
||
%if 0%{?suse_version} > 1500 | ||
%package -n python%{python3_version_nodots}-shellingham | ||
Summary: Tool to detect surrounding Shell | ||
Requires: python3 | ||
Provides: python3-shellingham = %{epoch}:%{version}-%{release} | ||
Provides: python3dist(shellingham) = %{epoch}:%{version}-%{release} | ||
Provides: python%{python3_version}-shellingham = %{epoch}:%{version}-%{release} | ||
Provides: python%{python3_version}dist(shellingham) = %{epoch}:%{version}-%{release} | ||
Provides: python%{python3_version_nodots}-shellingham = %{epoch}:%{version}-%{release} | ||
Provides: python%{python3_version_nodots}dist(shellingham) = %{epoch}:%{version}-%{release} | ||
|
||
%description -n python%{python3_version_nodots}-shellingham | ||
Shellingham detects what shell the current Python executable is running | ||
in. | ||
|
||
%files -n python%{python3_version_nodots}-shellingham | ||
%license LICENSE | ||
%{python3_sitelib}/* | ||
%endif | ||
|
||
%if !(0%{?suse_version} > 1500) | ||
%package -n python3-shellingham | ||
Summary: Tool to detect surrounding Shell | ||
Requires: python3 | ||
Provides: python3-shellingham = %{epoch}:%{version}-%{release} | ||
Provides: python3dist(shellingham) = %{epoch}:%{version}-%{release} | ||
Provides: python%{python3_version}-shellingham = %{epoch}:%{version}-%{release} | ||
Provides: python%{python3_version}dist(shellingham) = %{epoch}:%{version}-%{release} | ||
Provides: python%{python3_version_nodots}-shellingham = %{epoch}:%{version}-%{release} | ||
Provides: python%{python3_version_nodots}dist(shellingham) = %{epoch}:%{version}-%{release} | ||
|
||
%description -n python3-shellingham | ||
Shellingham detects what shell the current Python executable is running | ||
in. | ||
|
||
%files -n python3-shellingham | ||
%license LICENSE | ||
%{python3_sitelib}/* | ||
%endif | ||
|
||
%changelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters