]> git.pld-linux.org Git - packages/ibus-anthy.git/blob - ibus-anthy.spec
- updated gettext BR
[packages/ibus-anthy.git] / ibus-anthy.spec
1 #
2 # Conditional build:
3 %bcond_without  bridge_hotkey           # disable the engine hotkeys
4 #
5 Summary:        The Anthy engine for IBus input platform
6 Summary(pl.UTF-8):      Silnik Anthy dla platformy wprowadzania znaków IBus
7 Name:           ibus-anthy
8 Version:        1.5.6
9 Release:        1
10 License:        GPL v2+
11 Group:          Libraries
12 Source0:        https://github.com/ibus/ibus-anthy/archive/%{version}/%{name}-%{version}.tar.gz
13 # Source0-md5:  50c8068d789a24c68619136835dcc36f
14 URL:            https://github.com/fujiwarat/ibus-anthy/wiki
15 BuildRequires:  anthy-devel
16 BuildRequires:  autoconf >= 2.50
17 BuildRequires:  automake >= 1:1.10
18 BuildRequires:  gettext-tools >= 0.16.1
19 BuildRequires:  glib2-devel >= 1:2.26.0
20 BuildRequires:  gobject-introspection-devel >= 0.6.8
21 BuildRequires:  ibus-devel >= 1.5
22 BuildRequires:  intltool >= 0.41.1
23 BuildRequires:  libstdc++-devel
24 BuildRequires:  pkgconfig
25 BuildRequires:  python-devel >= 1:2.5
26 BuildRequires:  rpmbuild(macros) >= 1.219
27 BuildRequires:  sed >= 4.0
28 BuildRequires:  swig-python
29 Requires(post,postun):  /sbin/ldconfig
30 Requires(post,postun):  GConf2
31 Requires:       %{name}-libs = %{version}-%{release}
32 Requires:       anthy
33 Requires:       ibus >= 1.5
34 Requires:       kasumi
35 Requires:       python-ibus >= 1.5
36 Requires:       python-pygtk-gtk >= 2:2.15.2
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %define         _libexecdir     %{_libdir}/ibus
40
41 %description
42 The Anthy engine for IBus platform. It provides Japanese input method
43 from libanthy.
44
45 %description -l pl.UTF-8
46 Silnik Anthy dla platformy IBus. Udostępnia metodę wprowadzania znaków
47 japońskich poprzez libanthy.
48
49 %package libs
50 Summary:        Shared Anthy GObject library
51 Summary(pl.UTF-8):      Biblioteka współdzielona Anthy GObject
52 Group:          Libraries
53 Requires:       glib2 >= 1:2.26.0
54 Conflicts:      ibus-anthy < 1.4.99.20121006-5
55
56 %description libs
57 Shared Anthy GObject library.
58
59 %description libs -l pl.UTF-8
60 Biblioteka współdzielona Anthy GObject.
61
62 %package devel
63 Summary:        Header files for Anthy GObject library
64 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki Anthy GObject
65 Group:          Development/Libraries
66 Requires:       %{name}-libs = %{version}-%{release}
67 Requires:       anthy-devel
68 Requires:       glib2-devel >= 1:2.26.0
69
70 %description devel
71 Header files for Anthy GObject library.
72
73 %description devel -l pl.UTF-8
74 Pliki nagłówkowe biblioteki Anthy GObject.
75
76 %prep
77 %setup -q
78
79 # ibus 1.4.x has symbol attr in EngineDesc;
80 # ibus 1.4.99/1.5+ has symbol attr in IBus.Property
81 # hardcode it so python-ibus is not BRed here
82 %{__sed} -i -e 's,\$SYMBOL_TEST,exit(0),' configure.ac
83
84 # gettextize will add it again
85 %{__sed} -i -e '/AC_CONFIG_FILES/s@ po/Makefile\.in@@' configure.ac
86
87 %build
88 %{__gettextize}
89 %{__intltoolize}
90 %{__libtoolize}
91 %{__aclocal}
92 %{__autoconf}
93 %{__autoheader}
94 %{__automake}
95 %configure \
96         --with-layout='default' \
97         %{?with_bridge_hotkey:--with-hotkeys}
98
99 %{__make}
100
101 %install
102 rm -rf $RPM_BUILD_ROOT
103 %{__make} install \
104         DESTDIR=$RPM_BUILD_ROOT
105
106 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
107
108 %find_lang %{name}
109
110 %clean
111 rm -rf $RPM_BUILD_ROOT
112
113 %post
114 %update_icon_cache hicolor
115
116 %postun
117 %update_icon_cache hicolor
118
119 %post   libs -p /sbin/ldconfig
120 %postun libs -p /sbin/ldconfig
121
122 %files -f %{name}.lang
123 %defattr(644,root,root,755)
124 %doc AUTHORS ChangeLog README
125 %attr(755,root,root) %{_libexecdir}/ibus-engine-anthy
126 %attr(755,root,root) %{_libexecdir}/ibus-setup-anthy
127 %{_datadir}/ibus-anthy
128 %{_datadir}/ibus/component/anthy.xml
129 %{_desktopdir}/ibus-setup-anthy.desktop
130 %{_iconsdir}/hicolor/scalable/apps/ibus-anthy.svg
131
132 %files libs
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_libdir}/libanthygobject-1.0.so.*.*
135 %attr(755,root,root) %ghost %{_libdir}/libanthygobject-1.0.so.5
136 %{_libdir}/girepository-1.0/Anthy-9000.typelib
137
138 %files devel
139 %defattr(644,root,root,755)
140 %attr(755,root,root) %{_libdir}/libanthygobject-1.0.so
141 %{_includedir}/ibus-anthy-1.0
142 %{_datadir}/gir-1.0/Anthy-9000.gir
This page took 0.030548 seconds and 3 git commands to generate.