public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Igor Gnatenko <ignatenko@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-translationstring] epel10: Update to 1.3; Modernize spec
Date: Wed, 08 Jul 2026 22:59:44 GMT	[thread overview]
Message-ID: <178355158483.1.12537697669056436041.rpms-python-translationstring-60847719a582@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-translationstring
            Branch : epel10
            Commit : 60847719a582701cc332d624dd3c63ab602fba63
            Author : Igor Gnatenko <ignatenko@redhat.com>
            Date   : 2016-05-10T14:10:28+02:00
            Stats  : +60/-73 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-translationstring/c/60847719a582701cc332d624dd3c63ab602fba63?branch=epel10

            Log:
            Update to 1.3; Modernize spec

Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>

---
diff --git a/.gitignore b/.gitignore
index bd160f6..cb58be9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /translationstring-0.3.tar.gz
 /translationstring-1.1.tar.gz
+/translationstring-1.3.tar.gz

diff --git a/python-translationstring.spec b/python-translationstring.spec
index af5feed..64185dd 100644
--- a/python-translationstring.spec
+++ b/python-translationstring.spec
@@ -1,113 +1,99 @@
-%if 0%{?fedora} > 12
-%global with_python3 1
+%if 0%{?rhel} && 0%{?rhel} <= 7
+%bcond_with python3
+%else
+%bcond_without python3
 %endif
 
 %global modname translationstring
 
-Name:           python-translationstring
-Version:        1.1
-Release:        12%{?dist}
-Summary:        Utility library for i18n relied on by various Repoze packages
+Name:           python-%{modname}
+Version:        1.3
+Release:        1%{?dist}
+Summary:        Library used for internationalization (i18n) duties related to translation
 
-Group:          Development/Libraries
 License:        BSD
 URL:            http://pypi.python.org/pypi/translationstring
-Source0:        http://pypi.python.org/packages/source/t/translationstring/%{modname}-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source0:        https://github.com/Pylons/translationstring/archive/%{version}/%{modname}-%{version}.tar.gz
+
 BuildArch:      noarch
 
+%global _description \
+A library used by various Pylons Project packages for\
+internationalization (i18n) duties related to translation.\
+\
+This package provides a translation string class, a translation string factory\
+class, translation and pluralization primitives, and a utility that helps\
+Chameleon templates use translation facilities of this package. It does not\
+depend on Babel, but its translation and pluralization services are meant to\
+work best when provided with an instance of the babel.support.Translations class.
+
+%description %{_description}
+
+%package -n python2-%{modname}
+Summary:        %{summary}
+%{?python_provide:%python_provide python2-%{modname}}
 BuildRequires:  python2-devel
-BuildRequires:  python-setuptools
+BuildRequires:  python2-setuptools
 
-%if 0%{?with_python3}
-BuildRequires:  python3-devel
-BuildRequires:  python3-setuptools
-%endif
+%description -n python2-%{modname} %{_description}
 
+Python 2 version.
 
-%description
-A library used by various `Repoze <http://repoze.org>`_ packages for
-internationalization (i18n) duties related to translation.
+%if %{with python3}
+%package -n python3-%{modname}
+Summary:        %{summary}
+%{?python_provide:%python_provide python3-%{modname}}
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
 
-This package provides a *translation string* class, a *translation string
-factory* class, translation and pluralization primitives, and a utility that
-helps `Chameleon <http://chameleon.repoze.org>`_ templates use translation
-facilities of this package.  It does not depend on `Babel
-<http://babel.edgewall.org>`_, but its translation and pluralization services
-are meant to work best when provided with an instance of the
-``babel.support.Translations`` class.
+%description -n python3-%{modname} %{_description}
 
-%if 0%{?with_python3}
-%package -n python3-translationstring
-Summary:        Utility library for i18n relied on by various Repoze packages
-Group:          Development/Libraries
-
-%description -n python3-translationstring
-A library used by various `Repoze <http://repoze.org>`_ packages for
-internationalization (i18n) duties related to translation.
-
-This package provides a *translation string* class, a *translation string
-factory* class, translation and pluralization primitives, and a utility that
-helps `Chameleon <http://chameleon.repoze.org>`_ templates use translation
-facilities of this package.  It does not depend on `Babel
-<http://babel.edgewall.org>`_, but its translation and pluralization services
-are meant to work best when provided with an instance of the
-``babel.support.Translations`` class.
+Python 3 version.
 %endif
 
 %prep
 %setup -q -n %{modname}-%{version}
 
-# Remove bundled egg info if it exists.
-rm -rf %{modname}.egg-info
-
-%if 0%{?with_python3}
-rm -rf %{py3dir}
-cp -a . %{py3dir}
-%endif
-
-
 %build
-%{__python} setup.py build
+%py2_build
 
-%if 0%{?with_python3}
-pushd %{py3dir}
-%{__python3} setup.py build
-popd
+%if %{with python3}
+%py3_build
 %endif
 
 %install
-%if 0%{?with_python3}
-pushd %{py3dir}
-%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
-popd
-%endif
+%py2_install
 
-%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+%if %{with python3}
+%py3_install
+%endif
 
 %check
+%{__python2} setup.py test
+
 %if 0%{?with_python3}
-pushd %{py3dir}
 %{__python3} setup.py test
-popd
 %endif
 
-%{__python} setup.py test
-
-%files
-%doc README.txt LICENSE.txt
-%{python_sitelib}/%{modname}/
-%{python_sitelib}/%{modname}-%{version}*.egg-info
+%files -n python2-%{modname}
+%license LICENSE.txt
+%doc README.rst changes.rst
+%{python2_sitelib}/%{modname}/
+%{python2_sitelib}/%{modname}-*.egg-info/
 
 %if 0%{?with_python3}
-%files -n python3-translationstring
-%doc README.txt LICENSE.txt
+%files -n python3-%{modname}
+%license LICENSE.txt
+%doc README.rst changes.rst
 %{python3_sitelib}/%{modname}/
-%{python3_sitelib}/%{modname}-%{version}*.egg-info
+%{python3_sitelib}/%{modname}-*.egg-info/
 %endif
 
-
 %changelog
+* Tue May 10 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.3-1
+- Modernize spec
+- Update to 1.3
+
 * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
 

diff --git a/sources b/sources
index a0f5ae9..58c0f0c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-0979b46d8f0f852810c8ec4be5c26cf2  translationstring-1.1.tar.gz
+086ee66d378b0f5893fadac776f2d9fe  translationstring-1.3.tar.gz

                 reply	other threads:[~2026-07-08 22:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178355158483.1.12537697669056436041.rpms-python-translationstring-60847719a582@fedoraproject.org \
    --to=ignatenko@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox