Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Maliku:python
transifex-client
transifex-client.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File transifex-client.spec of Package transifex-client
# # spec file for package transifex-client # # Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: transifex-client Version: 0.14.4 Release: 0 Summary: Transifex Command-line Client License: GPL-2.0-only Group: Productivity/Text/Utilities URL: https://github.com/transifex/transifex-client Source: https://github.com/transifex/transifex-client/archive/%{version}.tar.gz # https://github.com/transifex/transifex-client/pull/314 Patch0: transifex-client-no-mock.patch # https://github.com/transifex/transifex-client/pull/316 Patch1: transifex-client-fix-test-on-32bit.patch BuildRequires: python-rpm-macros BuildRequires: python3-GitPython BuildRequires: python3-pytest BuildRequires: python3-python-slugify BuildRequires: python3-requests >= 2.19.1 BuildRequires: python3-setuptools BuildRequires: python3-six < 2.0.0 BuildRequires: python3-urllib3 >= 1.24.2 Requires: python3-python-slugify Requires: python3-requests >= 2.19.1 Requires: python3-setuptools Requires: python3-urllib3 >= 1.24.2 Requires(post): update-alternatives Requires(postun):update-alternatives BuildArch: noarch %description The Transifex Command-line Client is a command line tool that enables you to easily manage your translations within a project without the need of an elaborate UI system. You can use the command-line client to easily create new resources, map locale files to translations and synchronize your Transifex project with your local repository and vice verca. Translators and localization managers can also use it to handle large volumes of translation files easily and without much hassle. %prep %autosetup -p1 sed -i -e '1{\,^#!/usr/bin/env python,d}' txclib/cmdline.py %build python3 setup.py build %install python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} # remove pem file rm %{buildroot}/%{python3_sitelib}/txclib/cacert.pem mv %{buildroot}%{_bindir}/tx %{buildroot}%{_bindir}/transifex-tx mkdir -p %{buildroot}%{_sysconfdir}/alternatives ln -s -f %{_sysconfdir}/alternatives/tx %{buildroot}%{_bindir}/tx %check # test_fetch_timestamp_from_git_tree: this is not a git tree pytest -k 'not test_fetch_timestamp_from_git_tree' %post %{_sbindir}/update-alternatives --install %{_bindir}/tx tx %{_bindir}/transifex-tx 20 %postun if [ ! -e %{_bindir}/transifex-tx ] ; then %{_sbindir}/update-alternatives --remove tx %{_bindir}/transifex-tx fi %files %defattr(-,root,root) %doc README.md %license LICENSE %ghost %{_sysconfdir}/alternatives/tx %{_bindir}/transifex-tx %{_bindir}/tx %{python3_sitelib}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor