Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37721433
en ru br
Репозитории ALT

Группа :: Development/Python3
Пакет: py2pack

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: py2pack-alt-spec-support.patch
Скачать


diff --git a/py2pack/templates/alt.spec b/py2pack/templates/alt.spec
new file mode 100644
index 0000000..1a30811
--- /dev/null
+++ b/py2pack/templates/alt.spec
@@ -0,0 +1,51 @@
+#
+# spec file for package python3-module-{{ name }}
+#
+# Copyright (c) {{ year }} {{ user_name }}.
+#
+
+Name:    python3-module-{{ name }}
+Version: {{ version }}
+Release: alt1
+Url:     {{ home_page }}
+Summary: {{ summary }}
+License: {{ license }}
+Group:   Development/Python3
+Source:  {{ source_url|replace(version, '%{version}') }}
+BuildRequires(pre): rpm-build-python3
+BuildRequires: python3-module-setuptools
+{%- if is_extension %}
+BuildRequires: python3-devel
+{%- else %}
+BuildArch: noarch
+{%- endif %}
+{%- for req in requires %}
+BuildRequires:  python3({{ req|replace('(','')|replace(')','') }})
+{%- endfor %}
+{%- for req in install_requires %}
+BuildRequires:  python3({{ req|replace('(','')|replace(')','') }})
+{%- endfor %}
+
+%description
+{{ description }}
+
+%prep
+%setup -q -n {{ name }}-%{version}
+
+%build
+%python3_build_debug
+
+%install
+%python3_install
+
+%files
+{%- if doc_files %}
+%doc {{ doc_files|join(" ") }}
+{%- endif %}
+{%- for script in scripts|default([], true) %}
+%_bindir/{{ script }}
+{%- endfor %}
+%python3_sitelibdir/*
+
+%changelog
+
diff --git a/test/test_template.py b/test/test_template.py
index 405a9c0..36d697c 100644
--- a/test/test_template.py
+++ b/test/test_template.py
@@ -41,7 +41,8 @@ username = pwd.getpwuid(os.getuid())[4]
 
 
 @pytest.mark.parametrize('template, fetch_tarball',
-                         [('fedora.spec', False),
+                         [('alt.spec', False),
+                          ('fedora.spec', False),
                           ('mageia.spec', False),
                           ('opensuse-legacy.spec', False),
                           ('opensuse.dsc', False),
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin