ibus-anthy/ibus-anthy.spec

115 lines
3.0 KiB
RPMSpec
Raw Permalink Normal View History

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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 1.5.11-1mamba
- package created using the webbuild interface