From 9280b7bf02a4a6b5293b62716afc203a21a2e695 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 23:48:09 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.5.11-1mamba;Thu Nov 26 2020] --- README.md | 2 + ibus-anthy.spec | 114 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 116 insertions(+) create mode 100644 ibus-anthy.spec diff --git a/README.md b/README.md index a06e8c0..bbfea43 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # ibus-anthy +A Japanese input engine for IBus. + diff --git a/ibus-anthy.spec b/ibus-anthy.spec new file mode 100644 index 0000000..d0ab211 --- /dev/null +++ b/ibus-anthy.spec @@ -0,0 +1,114 @@ +Name: ibus-anthy +Version: 1.5.11 +Release: 1mamba +Summary: A Japanese input engine for IBus +Group: System/Internationalization +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/ibus/ibus-anthy +Source: https://github.com/ibus/ibus-anthy.git/%{version}/ibus-anthy-%{version}.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libanthy-devel +BuildRequires: libglib-devel +## AUTOBUILDREQ-END +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +A Japanese input engine for IBus. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q +autoreconf -fi +./autogen.sh + +%build +%configure \ + --with-python=python3 + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%find_lang %{name} || touch %{name}.lang + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + + +%post +if [ $1 -ge 1 ]; then + glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : +fi +: + +%postun +if [ $1 -eq 0 ]; then + glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : +fi +: + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files -f %{name}.lang +%defattr(-,root,root) +%{_datadir}/applications/ibus-setup-anthy.desktop +%{_datadir}/metainfo/org.freedesktop.ibus.engine.anthy.metainfo.xml +%dir %{_datadir}/ibus-anthy +%dir %{_datadir}/ibus-anthy/dicts +%{_datadir}/ibus-anthy/dicts/* +%dir %{_datadir}/ibus-anthy/engine +%{_datadir}/ibus-anthy/engine/* +%dir %{_datadir}/ibus-anthy/setup +%{_datadir}/ibus-anthy/setup/* +%{_datadir}/ibus/component/anthy.xml +%{_datadir}/glib-2.0/schemas/org.freedesktop.ibus.engine.anthy.gschema.xml +%{_datadir}/icons/hicolor/scalable/apps/ibus-anthy.svg + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libanthygobject-1.0.so.* +%{_libdir}/girepository-1.0/Anthy-*.typelib +%{_libexecdir}/ibus-engine-anthy +%{_libexecdir}/ibus-setup-anthy +%doc AUTHORS COPYING + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/ibus-anthy-1.0 +%{_includedir}/ibus-anthy-1.0/anthygcontext.h +%{_libdir}/libanthygobject-1.0.la +%{_libdir}/libanthygobject-1.0.so +%{_datadir}/gir-1.0/Anthy-9000.gir +%doc README + + +%changelog +* Thu Nov 26 2020 Silvan Calarco 1.5.11-1mamba +- package created using the webbuild interface