scim/scim.spec

186 lines
6.0 KiB
RPMSpec

%define majver %(echo %version | cut -d. -f 1-2)
%define apiver %{majver}.0
Name: scim
Version: 1.4.18
Release: 3mamba
Summary: A user friendly, full featured input method user interface and more
Group: System/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://adaptationsny.com/
Source: https://github.com/scim-im/scim.git/%{version}/scim-%{version}.tar.bz2
Source1: scim-xprofile
Source2: scim-sysconfig
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libX11-devel
BuildRequires: libat-spi2-core-devel
BuildRequires: libcairo-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcc
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgtk2-devel
BuildRequires: libgtk3-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libltdl-devel
BuildRequires: libpango-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
%ifnarch aarch64
BuildRequires: libqt4-devel
%endif
%description
The Smart Common Input Method (SCIM) platform project provides not only a user friendly, full featured input method user interface for POSIX-style operating systems (including Linux, FreeBSD and other Unix), but also a development platform to make input method development easier.
%package -n libscim
Summary: SCIM (Smart Common Input Method) libraries
Group: System/Libraries
%description -n libscim
The Smart Common Input Method (SCIM) platform project provides not only a user friendly, full featured input method user interface for POSIX-style operating systems (including Linux, FreeBSD and other Unix), but also a development platform to make input method development easier.
%package -n libscim-devel
Summary: Devel package for libscim
Group: Development/Libraries
Requires: libscim = %{?epoch:%epoch:}%{version}-%{release}
%description -n libscim-devel
The Smart Common Input Method (SCIM) platform project provides not only a user friendly, full featured input method user interface for POSIX-style operating systems (including Linux, FreeBSD and other Unix), but also a development platform to make input method development easier.
This package contains static libraries and header files need for development.
%debug_package
%prep
%setup -q
./bootstrap
%build
%configure \
--disable-static \
--disable-qt3-immodule \
--disable-qt4-immodule \
%ifarch arm
CXXFLAGS="-DQ_NO_PACKED_POINTERS"
%endif
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
install -D -m0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/xprofile.d/scim.sh
install -D -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/scim
%find_lang %{name}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n libscim
if [ $1 -ge 1 ]; then
gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
fi
/sbin/ldconfig
exit 0
%postun -n libscim
if [ $1 -eq 0 ]; then
gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
fi
/sbin/ldconfig
exit 0
%files -f %{name}.lang
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/scim/config
%config(noreplace) %{_sysconfdir}/scim/global
%{_sysconfdir}/xprofile.d/scim.sh
%config(noreplace) %{_sysconfdir}/sysconfig/scim
%{_bindir}/scim
%{_bindir}/scim-config-agent
%{_bindir}/scim-im-agent
%{_bindir}/scim-setup
%dir %{_datadir}/scim
%{_datadir}/applications/scim-setup.desktop
%{_datadir}/control-center-2.0/capplets/scim-setup.desktop
%{_datadir}/pixmaps/scim-setup.png
%doc AUTHORS COPYING
%files -n libscim
%defattr(-,root,root)
%{_libdir}/libscim-1.0.so.*
%{_libdir}/libscim-gtkutils-1.0.so.*
%{_libdir}/libscim-x11utils-1.0.so.*
%dir %{_libdir}/scim-1.0/%{apiver}
%{_libdir}/scim-1.0/%{apiver}/*/*.so
%{_libdir}/gtk-2.0/*/immodules/im-scim.so
%{_libdir}/gtk-3.0/*/immodules/im-scim.so
%{_libdir}/scim-1.0/scim-helper-launcher
%{_libdir}/scim-1.0/scim-helper-manager
%{_libdir}/scim-1.0/scim-launcher
%{_libdir}/scim-1.0/scim-panel-gtk
%{_datadir}/scim/icons/*.png
%files -n libscim-devel
%defattr(-,root,root)
%dir %{_includedir}/scim-1.0/gtk
%{_includedir}/scim-1.0/gtk/*.h
%{_includedir}/scim-1.0/*.h
%{_includedir}/scim-1.0/x11/*.h
%{_libdir}/libscim-1.0.so
%{_libdir}/libscim-gtkutils-1.0.so
%{_libdir}/libscim-x11utils-1.0.so
%{_libdir}/pkgconfig/*.pc
%doc ChangeLog README THANKS TODO
%changelog
* Tue Feb 13 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.18-3mamba
- remove build of qt3 and qt4 immodules
* Wed Dec 09 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.18-2mamba
- rebuilt with debug package
* Fri Aug 02 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.18-1mamba
- update to 1.4.18
* Sun Jul 03 2016 Automatic Build System <autodist@mambasoft.it> 1.4.17-1mamba
- automatic version update by autodist
* Fri Mar 25 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.15-1mamba
- update to 1.4.15
* Fri Mar 25 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.14-2mamba
- patch to fix undefined symbol: gdk_x11_drawable_get_xdisplay with recent gtk
* Sat Jun 23 2012 Automatic Build System <autodist@mambasoft.it> 1.4.14-1mamba
- automatic version update by autodist
* Thu Jun 14 2012 Automatic Build System <autodist@mambasoft.it> 1.4.13-1mamba
- update to 1.4.13
* Tue Jul 19 2011 Automatic Build System <autodist@mambasoft.it> 1.4.10-1mamba
- update to 1.4.10
* Thu Nov 11 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.9-3mamba
- rebuilt with libpng 1.4
* Mon Jun 15 2009 Automatic Build System <autodist@mambasoft.it> 1.4.9-2mamba
- automatic rebuild by autodist
* Sun Apr 19 2009 Automatic Build System <autodist@mambasoft.it> 1.4.9-1mamba
- automatic update to 1.4.9 by autodist
* Sun Jan 25 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.8-1mamba
- automatic update to 1.4.8 by autodist
* Thu Dec 27 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.7-2mamba
- fixed ldconfig execution in post scripts
- icons moved to the libscim package
* Thu Dec 27 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.7-1mamba
- package created by autospec