$ git show --format=fuller --patch-with-stat --summary 81eae89f39cf68b6fe35d4b639ac720fdd744da5
commit 81eae89f39cf68b6fe35d4b639ac720fdd744da5
Author: Crispin Boylan <cris@beebgames.com>
AuthorDate: Mon Apr 29 11:22:00 2024 +0100
Commit: Crispin Boylan <cris@beebgames.com>
CommitDate: Mon Apr 29 11:22:00 2024 +0100
Add i18n
---
.abf.yml | 1 +
avogadro.spec | 8 +++++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/.abf.yml b/.abf.yml
index 52996c3..b454759 100644
--- a/.abf.yml
+++ b/.abf.yml
@@ -1,2 +1,3 @@
sources:
1.99.0.tar.gz: fd303584b0177853daee9037b6b401ba6ccfb9a0
+ avogadro-i18n-1.99.0.tar.gz: 86a2d6aadf9ba11dd1688f62f6357ea63723a895
diff --git a/avogadro.spec b/avogadro.spec
index 4beb68f..315e73a 100644
--- a/avogadro.spec
+++ b/avogadro.spec
@@ -4,6 +4,7 @@
%define libOQ %mklibname %{name}_OpenQube %{maj0}
%define devname %mklibname %{name} -d
%define abi %(echo %{version} |cut -d. -f1-2 |sed -e 's,\\.,_,g')
+%define i18n_version 1.99.0
Summary: An advanced molecular editor for chemical purposes
Name: avogadro
@@ -13,6 +14,7 @@ Release: 1
License: BSD
Url: https://www.openchemistry.org/projects/avogadro2/
Source0: https://github.com/OpenChemistry/avogadroapp/archive/%{version}.tar.gz
+Source1: https://github.com/OpenChemistry/avogadro-i18n/archive/%{i18n_version}/avogadro-i18n-%{i18n_version}.tar.gz
BuildRequires: cmake(ECM)
BuildRequires: doxygen
BuildRequires: hdf5-devel
@@ -66,7 +68,11 @@ Obsoletes: %{name}-devel < 1.1.0-3
Development Avogadro files.
%prep
-%autosetup -p1 -n avogadroapp-%{version}
+%autosetup -p1 -n avogadroapp-%{version} -a1
+
+
+# help cmake to find translations
+ln -s ${PWD}/avogadro-i18n-%{i18n_version}/ ../avogadro-i18n
%build
%cmake_qt5 \