-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathibus-qt.spec.in
85 lines (67 loc) · 1.97 KB
/
ibus-qt.spec.in
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
%define ibus_version 1.3.7
Name: @CPACK_PACKAGE_NAME@
Version: @CPACK_PACKAGE_VERSION@
Release: 1%{?dist}
Summary: Qt IBus library and Qt input method plugin
License: GPLv2+
Group: System Environment/Libraries
URL: http://code.google.com/p/ibus/
Source0: http://ibus.googlecode.com/files/%{name}-%{version}-Source.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: cmake
BuildRequires: qt-devel >= 4.5
BuildRequires: dbus-devel >= 1.2
BuildRequires: ibus-devel >= %ibus_version
BuildRequires: libicu-devel >= 4.0
BuildRequires: doxygen >= 1.6
Requires: ibus >= %ibus_version
%description
Qt IBus library and Qt input method plugin.
%package devel
Summary: Development tools for ibus qt
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
The ibus-qt-devel package contains the header files for ibus qt library.
%package docs
Summary: Development documents for ibus qt
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description docs
The ibus-qt-docs package contains developer documentation for ibus qt library.
%prep
%setup -q -n %{name}-%{version}-Source
%build
%cmake \
-DCMAKE_INSTALL_PREFIX=%{_usr} \
-DLIBDIR=%{_libdir}
make \
VERBOSE=1 \
C_DEFINES="$RPM_OPT_FLAGS" \
CXX_DEFINES="$RPM_OPT_FLAGS" \
%{?_smp_mflags}
make docs
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
# %find_lang %{name}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
# -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS README INSTALL
%{_libdir}/libibus-qt.so.*
%{_libdir}/qt4/plugins/inputmethods/libqtim-ibus.so
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/libibus-qt.so
%files docs
%defattr(-,root,root,-)
%doc docs/html
%changelog
* Mon Jul 27 2009 Peng Huang <[email protected]> - @CPACK_PACKAGE_VERSION@-1
- The first version.