]> git.pld-linux.org Git - packages/ibus-anthy.git/blob - ibus-anthy.spec
- more ac/am regen
[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.3
9 Release:        1
10 License:        GPL v2+
11 Group:          Libraries
12 #Source0Download: http://code.google.com/p/ibus/downloads/list
13 Source0:        http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
14 # Source0-md5:  ec8e7c499c80c0270be69d613dec4b87
15 URL:            http://code.google.com/p/ibus/
16 BuildRequires:  anthy-devel
17 BuildRequires:  autoconf >= 2.50
18 BuildRequires:  gettext-devel >= 0.16.1
19 BuildRequires:  glib2-devel >= 1:2.26.0
20 BuildRequires:  gobject-introspection-devel >= 0.6.8
21 BuildRequires:  ibus-devel >= 1.4.99
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.4.99
34 Requires:       kasumi
35 Requires:       python-ibus >= 1.4.99
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 %build
85 %{__aclocal}
86 %{__autoconf}
87 %{__automake}
88 %configure \
89         --with-layout='default' \
90         %{?with_bridge_hotkey:--with-hotkeys}
91
92 %{__make}
93
94 %install
95 rm -rf $RPM_BUILD_ROOT
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT
98
99 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
100
101 %find_lang %{name}
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %post
107 %update_icon_cache hicolor
108
109 %postun
110 %update_icon_cache hicolor
111
112 %post   libs -p /sbin/ldconfig
113 %postun libs -p /sbin/ldconfig
114
115 %files -f %{name}.lang
116 %defattr(644,root,root,755)
117 %doc AUTHORS ChangeLog README
118 %attr(755,root,root) %{_libexecdir}/ibus-engine-anthy
119 %attr(755,root,root) %{_libexecdir}/ibus-setup-anthy
120 %{_datadir}/ibus-anthy
121 %{_datadir}/ibus/component/anthy.xml
122 %{_desktopdir}/ibus-setup-anthy.desktop
123 %{_iconsdir}/hicolor/scalable/apps/ibus-anthy.svg
124
125 %files libs
126 %defattr(644,root,root,755)
127 %attr(755,root,root) %{_libdir}/libanthygobject-1.0.so.*.*
128 %attr(755,root,root) %ghost %{_libdir}/libanthygobject-1.0.so.5
129 %{_libdir}/girepository-1.0/Anthy-9000.typelib
130
131 %files devel
132 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_libdir}/libanthygobject-1.0.so
134 %{_includedir}/ibus-anthy-1.0
135 %{_datadir}/gir-1.0/Anthy-9000.gir
This page took 0.120277 seconds and 3 git commands to generate.