SHA256
1
0
forked from pool/ibus
Ana Guerrero 2023-10-08 10:17:20 +00:00 committed by Git OBS Bridge
commit 57f3427dfb
2 changed files with 11 additions and 10 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Oct 4 07:08:11 UTC 2023 - Marguerite Su <i@marguerite.su>
- macros.ibus:
* set %ibus_table_index_post() to %nil. it'll trigger ibus-table-createdb
to create_indexes() for the existing db. but according to upstream,
create_indexes() is now a dummy function, and it didn't bring
any performance improvements before. and on rpmlint side,
it will modify the final filelist.
-------------------------------------------------------------------
Fri Mar 31 14:15:38 UTC 2023 - Andreas Schneider <asn@cryptomilk.org>

View File

@ -3,8 +3,6 @@
# in %%files section
# For ibus table packaging, you have to:
# Use %%ibus_table_requires as requires
# Use %%ibus_table_index_post %%DB_NAME in %%post to create
# table indexes for your table package.
%_ibus_includedir %{_includedir}/ibus-1.0
%_ibus_libdir %{_libdir}/ibus
%_ibus_libexecdir %{_ibus_libdir}
@ -22,13 +20,6 @@ Requires: ibus
%ibus_table_requires \
Requires: ibus-table
Requires(post): ibus-table
%ibus_table_index_post() \
%if "x%1" != "x%%1" \
DB_NAME="%1" \
%else \
echo "Missing argument DB_NAME in call to %%ibus_table_create_index." \
false \
%endif \
/usr/bin/ibus-table-createdb -i -n %{_ibus_tabledir}/${DB_NAME}.db || true
%nil