Skip to content

Commit f79d530

Browse files
committed
alvistack/1.0.0
rm -rf .pybuild debian/python3-string-utils debian/tmp tar zcvf ../python-string-utils_1.0.0.orig.tar.gz --exclude=.git . debuild -uc -us cp python-string-utils.spec ../python-string-utils_1.0.0-1.spec mv ../python*-string-utils*1.0.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/daveoncode-python-string-utils-1.0.0/ rm -rf ../python*-string-utils*1.0.0*.* Signed-off-by: Wong Hoi Sing Edison <[email protected]>
1 parent d903db3 commit f79d530

File tree

11 files changed

+144
-2
lines changed

11 files changed

+144
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ prettify(' unprettified string ,, like this one,will be"prettified" .it\' s awes
243243

244244
**asciify**: Converts all non-ascii chars contained in a string into the closest possible ascii representation
245245
~~~~
246-
asciify('èéùúòóäåëýñÅÀÁÇÌÍÑÓË')
246+
asciify('eeuuooaaeynAAACIINOE')
247247
# returns 'eeuuooaaeynAAACIINOE' (string is deliberately dumb in order to show char conversion)
248248
~~~~
249249

debian/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*.substvars
2+
*debhelper*
3+
.debhelper
4+
files
5+
python3-string-utils
6+
tmp

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
python-string-utils (100:1.0.0-1) UNRELEASED; urgency=medium
2+
3+
* https://github.com/daveoncode/python-string-utils/releases/tag/v1.0.0
4+
5+
-- Wong Hoi Sing Edison <[email protected]> Sat, 04 Sep 2021 13:02:32 +0800

debian/control

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Source: python-string-utils
2+
Section: python
3+
Priority: optional
4+
Standards-Version: 4.5.0
5+
Maintainer: Wong Hoi Sing Edison <[email protected]>
6+
Homepage: https://github.com/daveoncode/python-string-utils
7+
Vcs-Browser: https://github.com/alvistack/daveoncode-python-string-utils
8+
Vcs-Git: https://github.com/alvistack/daveoncode-python-string-utils.git
9+
Build-Depends:
10+
debhelper,
11+
debhelper-compat (= 10),
12+
dh-python,
13+
fdupes,
14+
python3-all,
15+
python3-dev,
16+
python3-setuptools,
17+
18+
Package: python3-string-utils
19+
Architecture: all
20+
Description: Handy library to validate, manipulate and generate strings
21+
A python module containing utility functions for strings.
22+
Depends:
23+
${misc:Depends},
24+
${shlibs:Depends},
25+
${python3:Depends},
26+
python3,

debian/copyright

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
python3-string-utils: copyright-without-copyright-notice
2+
python3-string-utils: initial-upload-closes-no-bugs
3+
python3-string-utils: no-manual-page
4+
python3-string-utils: zero-byte-file-in-doc-directory

debian/rules

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/make -f
2+
3+
SHELL := /bin/bash
4+
5+
override_dh_auto_install:
6+
dh_auto_install
7+
rm -rf debian/python3-string-utils/usr/README
8+
find debian/python3-string-utils/usr/lib/python*/*-packages -type f -name '*.pyc' -exec rm -rf {} \;
9+
fdupes -s debian/python3-string-utils/usr/lib/python*/*-packages
10+
11+
override_dh_auto_test:
12+
13+
override_dh_auto_clean:
14+
15+
%:
16+
dh $@ --buildsystem=pybuild --with python3

debian/source/format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (quilt)

debian/source/lintian-overrides

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python-string-utils source: no-debian-changes
2+
python-string-utils source: source-contains-prebuilt-windows-binary
3+
python-string-utils source: source-package-encodes-python-version

python-string-utils.spec

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
%global debug_package %{nil}
2+
3+
Name: python-string-utils
4+
Epoch: 100
5+
Version: 1.0.0
6+
Release: 1%{?dist}
7+
BuildArch: noarch
8+
Summary: Handy library to validate, manipulate and generate strings
9+
License: MIT
10+
URL: https://github.com/daveoncode/python-string-utils
11+
Source0: %{name}_%{version}.orig.tar.gz
12+
BuildRequires: fdupes
13+
BuildRequires: python-rpm-macros
14+
BuildRequires: python3-devel
15+
BuildRequires: python3-setuptools
16+
17+
%description
18+
A python module containing utility functions for strings.
19+
20+
%if 0%{?suse_version} > 1500
21+
%package -n python%{python3_version_nodots}-string-utils
22+
Summary: Handy library to validate, manipulate and generate strings
23+
Requires: python3
24+
Provides: python3-string-utils = %{epoch}:%{version}-%{release}
25+
Provides: python3dist(string-utils) = %{epoch}:%{version}-%{release}
26+
Provides: python%{python3_version}-string-utils = %{epoch}:%{version}-%{release}
27+
Provides: python%{python3_version}dist(string-utils) = %{epoch}:%{version}-%{release}
28+
Provides: python%{python3_version_nodots}-string-utils = %{epoch}:%{version}-%{release}
29+
Provides: python%{python3_version_nodots}dist(string-utils) = %{epoch}:%{version}-%{release}
30+
Conflicts: python3-string-utils < %{epoch}:%{version}-%{release}
31+
32+
%description -n python%{python3_version_nodots}-string-utils
33+
A python module containing utility functions for strings.
34+
%endif
35+
36+
%if !(0%{?suse_version} > 1500)
37+
%package -n python3-string-utils
38+
Summary: Handy library to validate, manipulate and generate strings
39+
Requires: python3
40+
Provides: python3-string-utils = %{epoch}:%{version}-%{release}
41+
Provides: python3dist(string-utils) = %{epoch}:%{version}-%{release}
42+
Provides: python%{python3_version}-string-utils = %{epoch}:%{version}-%{release}
43+
Provides: python%{python3_version}dist(string-utils) = %{epoch}:%{version}-%{release}
44+
Provides: python%{python3_version_nodots}-string-utils = %{epoch}:%{version}-%{release}
45+
Provides: python%{python3_version_nodots}dist(string-utils) = %{epoch}:%{version}-%{release}
46+
Conflicts: python3-string-utils < %{epoch}:%{version}-%{release}
47+
48+
%description -n python3-string-utils
49+
A python module containing utility functions for strings.
50+
%endif
51+
52+
%prep
53+
%autosetup -T -c -n %{name}_%{version}-%{release}
54+
tar -zx -f %{S:0} --strip-components=1 -C .
55+
56+
%build
57+
%py3_build
58+
59+
%install
60+
%py3_install
61+
rm -rf %{buildroot}%{_prefix}/README
62+
find %{buildroot}%{python3_sitelib} -type f -name '*.pyc' -exec rm -rf {} \;
63+
%fdupes -s %{buildroot}%{python3_sitelib}
64+
65+
%check
66+
67+
%if 0%{?suse_version} > 1500
68+
%files -n python%{python3_version_nodots}-string-utils
69+
%license LICENSE
70+
%{python3_sitelib}/python_string_utils*
71+
%{python3_sitelib}/string_utils*
72+
%endif
73+
74+
%if !(0%{?suse_version} > 1500)
75+
%files -n python3-string-utils
76+
%license LICENSE
77+
%{python3_sitelib}/python_string_utils*
78+
%{python3_sitelib}/string_utils*
79+
%endif
80+
81+
%changelog

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
packages=['string_utils'],
2626
data_files=[('README', ['README.md'])],
2727
python_requires='>=3.5',
28-
setup_requires=['wheel'],
28+
setup_requires=[],
2929
)

0 commit comments

Comments
 (0)