summaryrefslogtreecommitdiff
path: root/im-chooser.spec
blob: d3742f73e046fc2a7f319df058f1091c65f7e157 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#
# Conditional build:
%bcond_with	gtk2		# build with gtk+2 (default is gtk+3)
%bcond_without	xfce		# Xfce 4 selector
#
Summary:	Desktop Input Method configuration tool
Summary(pl.UTF-8):	Narzędzie do konfiguracji metod wprowadzania znaków dla środowiska graficznego
Name:		im-chooser
Version:	1.5.2
Release:	1
License:	GPL v2
Group:		Applications
Source0:	http://fedorahosted.org/releases/i/m/im-chooser/%{name}-%{version}.tar.bz2
# Source0-md5:	9f53e2b27652c8149966f35634204f75
Patch0:		%{name}-imchooserui.patch
URL:		http://fedorahosted.org/im-chooser/
BuildRequires:	glib2-devel >= 1:2.16.0
BuildRequires:	imsettings-devel >= 1.2.0
%{?with_xfce:BuildRequires:	libxfce4util-devel}
BuildRequires:	xorg-lib-libSM-devel
%if %{with gtk2}
BuildRequires:	gtk+2-devel >= 2:2.16.0
BuildConflicts:	gtk+3-devel
%else
BuildRequires:	gtk+3-devel >= 3.0.0
#BuildRequires:	gnome-control-center-devel >= 3.0.0
%endif
Requires:	imsettings >= 1.2.0
Obsoletes:	im-chooser-gnome3
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
im-chooser is a GUI configuration tool to choose the Input Method
to be used or disable Input Method usage on the desktop.

%description -l pl.UTF-8
im-chooser to graficzne narzędzie do konfiguracji pozwalające na
wybór metody wprowadzania znaków (Input Method) lub wyłączenie
użycia IM w środowisku graficznym.

%package xfce
Summary:	im-chooser application for Xfce 4
Summary(pl.UTF-8):	Aplikacja im-chooser dla Xfce 4
Group:		Applications/System
Requires:	%{name} = %{version}-%{release}

%description xfce
im-chooser is a GUI configuration tool to choose the Input Method
to be used or disable Input Method usage on the desktop.

This package contains the Xfce 4 application.

%description xfce -l pl.UTF-8
im-chooser to graficzne narzędzie do konfiguracji pozwalające na
wybór metody wprowadzania znaków (Input Method) lub wyłączenie
użycia IM w środowisku graficznym.

Ten pakiet zawiera aplikację przeznaczoną dla Xfce 4.

%prep
%setup -q
%patch0 -p1

%build
%configure

%{__make}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

%{__rm} $RPM_BUILD_ROOT%{_libdir}/libimchooseui.{so,la,a}

%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%post
/sbin/ldconfig
%update_icon_cache hicolor

%postun
/sbin/ldconfig
%update_icon_cache hicolor

%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
%attr(755,root,root) %{_bindir}/im-chooser
%attr(755,root,root) %{_libdir}/libimchooseui.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libimchooseui.so.0
%{_datadir}/imchooseui
%{_desktopdir}/im-chooser.desktop
%{_iconsdir}/hicolor/*/apps/im-chooser.png

%if %{with xfce}
%files xfce
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/xfce4-im-chooser
%{_desktopdir}/xfce4-im-chooser.desktop
%endif