fcitx/fcitx.spec

125 lines
3.3 KiB
RPMSpec
Raw Normal View History

2010-04-18 02:06:31 +00:00
%define _xinputconf %{_sysconfdir}/X11/xinit/xinput.d/fcitx.conf
2010-05-16 02:25:09 +00:00
Name: fcitx
2010-07-20 02:56:31 +00:00
Summary: Free Chinese Input Toy for X (XIM)
2010-11-19 12:47:05 +00:00
Version: 4.0.0
Release: 1%{?dist}
2010-07-20 02:56:31 +00:00
License: GPLv2+
2010-11-19 12:47:05 +00:00
Group: User Interface/Desktops
2010-07-20 02:56:31 +00:00
URL: http://code.google.com/p/%{name}/
2010-11-19 12:47:05 +00:00
Source0: http://%{name}.googlecode.com/files/%{name}-%{version}_all.tar.gz
2010-07-20 02:56:31 +00:00
Source1: xinput-%{name}
2010-11-19 12:47:05 +00:00
BuildRequires: pango-devel dbus-devel
BuildRequires: wget intltool
Requires: %{name}-libs = %{version}-%{release}
Requires: imsettings
2010-07-20 02:56:31 +00:00
Requires(post): %{_sbindir}/alternatives
2010-04-18 02:06:31 +00:00
Requires(postun): %{_sbindir}/alternatives
%description
2010-11-19 12:47:05 +00:00
FCITX(Free Chinese Input Toy of X) is a collection of Simplified Chinese
2010-04-18 02:06:31 +00:00
input methods for Linux. It supports Pinyin, QuWei and Table-based input
methods. It's small and fast.
2010-11-19 12:47:05 +00:00
%package libs
Summary: Libraries for FCITX
Group: System Environment/Libraries
%description libs
The %{name}-libs package provides shared libraries for FCITX.
%package devel
Summary: Development files for FCITX
Group: Development/Libraries
Requires: %{name}-libs = %{version}-%{release}
Requires: libX11-devel
%description devel
The %{name}-devel package contains libraries and header files necessary for
developing programs using FCITX libraries.
2010-04-18 02:06:31 +00:00
%prep
2010-11-19 12:47:05 +00:00
%setup -q
2010-04-18 02:06:31 +00:00
%build
2010-11-19 12:47:05 +00:00
%configure --disable-static \
--enable-dbus \
--enable-tray
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
2010-11-19 13:31:35 +00:00
sed -i 's|PYFA has bug" ;exit 1|PYFA has bug"|' test/Makefile.in
2010-04-18 02:06:31 +00:00
make %{?_smp_mflags}
%install
make install INSTALL="install -p" DESTDIR=%{buildroot}
2010-11-19 12:47:05 +00:00
rm -f %{buildroot}%{_libdir}/*.la
2010-04-18 02:06:31 +00:00
#fix doc path
mkdir __doc
mv %{buildroot}%{_datadir}/%{name}/doc/* __doc
rm -rf %{buildroot}%{_datadir}/%{name}/doc
rm -f __doc/{API.txt,Develop_Readme*,fcitx_trunk.doxyfile}
# install xinput config file
install -pm 644 -D %{SOURCE1} %{buildroot}%{_xinputconf}
2010-11-19 12:47:05 +00:00
%find_lang %{name}
2010-04-18 02:06:31 +00:00
%clean
rm -rf %{buildroot}
%post
%{_sbindir}/alternatives --install %{_sysconfdir}/X11/xinit/xinputrc xinputrc %{_xinputconf} 55 || :
%postun
if [ "$1" = "0" ]; then
%{_sbindir}/alternatives --remove xinputrc %{_xinputconf} || :
# if alternative was set to manual, reset to auto
[ -L %{_sysconfdir}/alternatives/xinputrc -a "`readlink %{_sysconfdir}/alternatives/xinputrc`" = "%{_xinputconf}" ] && %{_sbindir}/alternatives --auto xinputrc || :
fi
2010-11-19 12:47:05 +00:00
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%files -f %{name}.lang
2010-04-18 02:06:31 +00:00
%defattr(-,root,root,-)
2010-11-19 12:47:05 +00:00
%doc AUTHORS ChangeLog THANKS TODO
2010-04-18 02:06:31 +00:00
%doc __doc/*
%config %{_xinputconf}
%{_bindir}/*
%{_datadir}/%{name}
2010-05-16 02:25:09 +00:00
%{_datadir}/pixmaps/*
2010-04-18 02:06:31 +00:00
2010-11-19 12:47:05 +00:00
%files libs
%defattr(-,root,root,-)
%doc COPYING
%{_libdir}/libfcitx*.so.*
%files devel
%defattr(-,root,root,-)
%doc
%{_libdir}/libfcitx*.so
%{_libdir}/pkgconfig/fcitx*.pc
%{_includedir}/fcitx*
2010-04-18 02:06:31 +00:00
%changelog
2010-11-19 12:47:05 +00:00
* Fri Nov 19 2010 Chen Lei <supercyper@163.com> - 4.0.0-1
- Update to 4.0.0
2010-07-20 02:56:31 +00:00
2010-06-14 12:05:03 +00:00
* Mon Jun 14 2010 Chen Lei <supercyper@163.com> - 3.6.3-5.20100514svn_utf8
- Remove BR:libXext-devel
2010-05-16 02:25:09 +00:00
* Fri May 14 2010 Chen Lei <supercyper@163.com> - 3.6.3-4.20100514svn_utf8
- svn 365
2010-04-18 16:08:51 +00:00
* Sun Apr 18 2010 Chen Lei <supercyper@163.com> - 3.6.3-3.20100410svn_utf8
- Exclude xpm files
2010-04-18 02:06:31 +00:00
* Sat Apr 17 2010 Chen Lei <supercyper@163.com> - 3.6.3-2.20100410svn_utf8
- Update License tag
- Add more explanation for UTF-8 branch
* Mon Apr 12 2010 Chen Lei <supercyper@163.com> - 3.6.3-1.20100410svn_utf8
- Initial Package