Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eaa159ad5a |
3 changed files with 11 additions and 11 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -67,3 +67,4 @@
|
|||
/langtable-0.0.66.tar.gz
|
||||
/langtable-0.0.67.tar.gz
|
||||
/langtable-0.0.68.tar.gz
|
||||
/langtable-0.0.69.tar.gz
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
Name: langtable
|
||||
Version: 0.0.68
|
||||
Version: 0.0.69
|
||||
Release: %autorelease
|
||||
Summary: Guessing reasonable defaults for locale, keyboard layout, territory, and language.
|
||||
# the translations in languages.xml and territories.xml are (mostly)
|
||||
|
|
@ -12,7 +12,6 @@ Source0: https://github.com/mike-fabian/langtable/releases/download/%{ver
|
|||
BuildArch: noarch
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
|
||||
%description
|
||||
langtable is used to guess reasonable defaults for locale, keyboard layout,
|
||||
|
|
@ -27,7 +26,6 @@ License: GPL-3.0-or-later
|
|||
Requires: %{name} = %{version}-%{release}
|
||||
Obsoletes: %{name}-data < %{version}-%{release}
|
||||
Provides: %{name}-data = %{version}-%{release}
|
||||
%{?python_provide:%python_provide python3-%{name}}
|
||||
|
||||
%description -n python3-langtable
|
||||
This package contains a Python module to query the data
|
||||
|
|
@ -35,17 +33,22 @@ from langtable-data.
|
|||
|
||||
%prep
|
||||
%setup -q
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires
|
||||
|
||||
%build
|
||||
perl -pi -e "s,_DATADIR = '(.*)',_DATADIR = '%{_datadir}/langtable'," langtable/langtable.py
|
||||
|
||||
%py3_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
|
||||
%py3_install
|
||||
%pyproject_install
|
||||
%pyproject_save_files langtable
|
||||
|
||||
%check
|
||||
%pyproject_check_import
|
||||
|
||||
(cd $RPM_BUILD_DIR/%{name}-%{version}/langtable; %{__python3} langtable.py)
|
||||
(cd $RPM_BUILD_DIR/%{name}-%{version}; %{__python3} test_cases.py)
|
||||
xmllint --noout --relaxng \
|
||||
|
|
@ -68,11 +71,7 @@ xmllint --noout --relaxng \
|
|||
%license COPYING unicode-license.txt
|
||||
%doc README* ChangeLog test_cases.py langtable/schemas/*.rng
|
||||
|
||||
%files -n python3-langtable
|
||||
%dir %{python3_sitelib}/langtable
|
||||
%{python3_sitelib}/langtable/*
|
||||
%dir %{python3_sitelib}/langtable-*.egg-info
|
||||
%{python3_sitelib}/langtable-*.egg-info/*
|
||||
%files -n python3-langtable -f %{pyproject_files}
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (langtable-0.0.68.tar.gz) = fdb06a141b1ad3f62e8f6f6e7445c88059dd03d5c053e2dcbffaec79d38f688ffb39ef9270c720084ec13135fffca601afff6a14b4ff2ceb004b9bb39b892e2b
|
||||
SHA512 (langtable-0.0.69.tar.gz) = c52669c52e2fbc2c857b358fc43a65e4a7e6f5f9adfed9f6340471992226574da94d2f1198105f946123451ece7ad55bc217bcc69fa16d3b528d838cd7990e69
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue