]> git.pld-linux.org Git - packages/im-chooser.git/blame - im-chooser.spec
- new URLs, updated to 1.7.3
[packages/im-chooser.git] / im-chooser.spec
CommitLineData
79203b19
JR
1#
2# Conditional build:
3%bcond_with gtk2 # build with gtk+2 (default is gtk+3)
8a6adad5 4%bcond_without xfce # Xfce 4 selector
79203b19
JR
5#
6Summary: Desktop Input Method configuration tool
8a6adad5 7Summary(pl.UTF-8): Narzędzie do konfiguracji metod wprowadzania znaków dla środowiska graficznego
79203b19 8Name: im-chooser
890b7332
JB
9Version: 1.7.3
10Release: 1
79203b19
JR
11License: GPL v2
12Group: Applications
890b7332
JB
13Source0: http://releases.pagure.org/im-chooser/%{name}-%{version}.tar.bz2
14# Source0-md5: e878efd93f30d4ee99207840f5ef64e2
cc62fe11 15Patch0: %{name}-imchooserui.patch
890b7332 16URL: http://pagure.io/im-chooser/
8a6adad5 17BuildRequires: glib2-devel >= 1:2.16.0
0cf62a76 18BuildRequires: imsettings-devel >= 1.3.0
8a6adad5
JB
19%{?with_xfce:BuildRequires: libxfce4util-devel}
20BuildRequires: xorg-lib-libSM-devel
79203b19 21%if %{with gtk2}
8a6adad5 22BuildRequires: gtk+2-devel >= 2:2.16.0
79203b19
JR
23BuildConflicts: gtk+3-devel
24%else
8a6adad5
JB
25BuildRequires: gtk+3-devel >= 3.0.0
26#BuildRequires: gnome-control-center-devel >= 3.0.0
79203b19 27%endif
0cf62a76 28Requires: imsettings >= 1.3.0
8a6adad5 29Obsoletes: im-chooser-gnome3
79203b19
JR
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
33im-chooser is a GUI configuration tool to choose the Input Method
34to be used or disable Input Method usage on the desktop.
35
8a6adad5
JB
36%description -l pl.UTF-8
37im-chooser to graficzne narzędzie do konfiguracji pozwalające na
38wybór metody wprowadzania znaków (Input Method) lub wyłączenie
39użycia IM w środowisku graficznym.
79203b19 40
8a6adad5
JB
41%package xfce
42Summary: im-chooser application for Xfce 4
43Summary(pl.UTF-8): Aplikacja im-chooser dla Xfce 4
79203b19
JR
44Group: Applications/System
45Requires: %{name} = %{version}-%{release}
46
8a6adad5 47%description xfce
79203b19
JR
48im-chooser is a GUI configuration tool to choose the Input Method
49to be used or disable Input Method usage on the desktop.
50
8a6adad5
JB
51This package contains the Xfce 4 application.
52
53%description xfce -l pl.UTF-8
54im-chooser to graficzne narzędzie do konfiguracji pozwalające na
55wybór metody wprowadzania znaków (Input Method) lub wyłączenie
56użycia IM w środowisku graficznym.
57
58Ten pakiet zawiera aplikację przeznaczoną dla Xfce 4.
79203b19
JR
59
60%prep
61%setup -q
cc62fe11 62%patch0 -p1
79203b19
JR
63
64%build
d5dbf90d 65%configure \
9e519db3
JB
66 --disable-silent-rules \
67 --disable-static
79203b19
JR
68
69%{__make}
70
71%install
72rm -rf $RPM_BUILD_ROOT
73
74%{__make} install \
75 DESTDIR=$RPM_BUILD_ROOT
76
9e519db3 77%{__rm} $RPM_BUILD_ROOT%{_libdir}/libimchooseui.{so,la}
79203b19
JR
78
79%find_lang %{name}
80
81%clean
82rm -rf $RPM_BUILD_ROOT
83
84%post
e0b9d24a 85/sbin/ldconfig
79203b19
JR
86%update_icon_cache hicolor
87
88%postun
e0b9d24a 89/sbin/ldconfig
79203b19
JR
90%update_icon_cache hicolor
91
92%files -f %{name}.lang
93%defattr(644,root,root,755)
94%doc AUTHORS ChangeLog NEWS README
95%attr(755,root,root) %{_bindir}/im-chooser
96%attr(755,root,root) %{_libdir}/libimchooseui.so.*.*.*
8a6adad5
JB
97%attr(755,root,root) %ghost %{_libdir}/libimchooseui.so.0
98%{_datadir}/imchooseui
79203b19 99%{_desktopdir}/im-chooser.desktop
79203b19 100%{_iconsdir}/hicolor/*/apps/im-chooser.png
caef38e4 101%{_mandir}/man1/im-chooser.1*
79203b19 102
8a6adad5
JB
103%if %{with xfce}
104%files xfce
79203b19 105%defattr(644,root,root,755)
8a6adad5
JB
106%attr(755,root,root) %{_bindir}/xfce4-im-chooser
107%{_desktopdir}/xfce4-im-chooser.desktop
108%endif
This page took 0.103175 seconds and 4 git commands to generate.