specs/ibus.spec
author jenda
Tue, 29 Nov 2011 11:11:56 +0100
changeset 714 7e428d437ae9
parent 707 dfbe6c035259
permissions -rw-r--r--
7116066 ibus build dependency to library/python-2/python-gnome-libs-26 needs to be upgraded (backport of s11u1:1ad861671baa)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
322
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
     1
%include Solaris.inc
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
     2
696
1a27aeb5dea8 BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents: 694
diff changeset
     3
%define pythonver 2.6
1a27aeb5dea8 BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents: 694
diff changeset
     4
322
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
     5
%define src_name ibus
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
     6
%define src_url http://ibus.googlecode.com/files
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
     7
699
4823738194c6 update IPS package descriptions
mkaz
parents: 696
diff changeset
     8
Summary:	IBus - Intelligent Input Bus
322
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
     9
SUNW_BaseDir:   %{_basedir}
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    10
Name:		SUNWibus
659
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
    11
Version: 	1.3.9
322
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    12
Release:	1
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    13
License: 	LGPL
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    14
Source: 	%{src_url}/%{src_name}-%{version}.tar.gz
615
a8c9e813f0fd Removed old input method framework startup script to use new imf startup
mkaz
parents: 497
diff changeset
    15
Source1:    ibus-xinput
659
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
    16
Patch1:     ibus-on-ss12.patch.diff
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
    17
Patch2:     ibus-trigger.patch.diff
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
    18
Patch3:     ibus-autostart.patch.diff
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
    19
Patch4:     ibus-for-xkbc.patch.diff
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
    20
Patch5:     ibus-panel-i18n.patch.diff
694
aed1d741dbc7 Bug fix for 7060930 Menu names for input method/selector are not appropriate
mkaz
parents: 677
diff changeset
    21
Patch6:     ibus-menu.patch.diff
322
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    22
BuildRoot:      %{_tmppath}/%{src_name}-%{version}-build
328
38ce3b884dfb added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents: 325
diff changeset
    23
SUNW_Copyright: %{src_name}.copyright
644
ac20c6f6e2cc IPS transition (inputmethod/specs part)
asano
parents: 640
diff changeset
    24
IPS_Package_Name:	system/input-method/ibus
659
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
    25
IPS_Component_Version:	1.3.9
644
ac20c6f6e2cc IPS transition (inputmethod/specs part)
asano
parents: 640
diff changeset
    26
Meta(info.classification):	%{ipsclass_sys_i18n}
699
4823738194c6 update IPS package descriptions
mkaz
parents: 696
diff changeset
    27
Meta(pkg.description): Intelligent Input Bus Input Method Framework
322
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    28
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    29
%include default-depend.inc
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    30
Requires: SUNWibus-root
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    31
Requires: SUNWgnome-panel
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    32
Requires: SUNWPython26
644
ac20c6f6e2cc IPS transition (inputmethod/specs part)
asano
parents: 640
diff changeset
    33
Requires: library/python-2/python-dbus-26
ac20c6f6e2cc IPS transition (inputmethod/specs part)
asano
parents: 640
diff changeset
    34
Requires: library/python-2/python-gnome-libs-26
ac20c6f6e2cc IPS transition (inputmethod/specs part)
asano
parents: 640
diff changeset
    35
Requires: library/python-2/python-xdg-26
659
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
    36
Requires: library/desktop/gobject/gobject-introspection
704
a4910901d2e7 BugFix 7082200 to B174 Trusted Extension, The language panel and candidate window are not displayed in labeled zones
mkaz
parents: 699
diff changeset
    37
Requires: library/python-2/python-notify-26
322
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    38
BuildRequires: SUNWgnome-base-libs-devel
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    39
BuildRequires: SUNWgnome-panel-devel
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    40
BuildRequires: SUNWPython26-devel
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    41
BuildRequires: SUNWdbus-python26-devel
714
7e428d437ae9 7116066 ibus build dependency to library/python-2/python-gnome-libs-26 needs to be upgraded (backport of s11u1:1ad861671baa)
jenda
parents: 707
diff changeset
    42
BuildRequires: library/python-2/pycairo-26
7e428d437ae9 7116066 ibus build dependency to library/python-2/python-gnome-libs-26 needs to be upgraded (backport of s11u1:1ad861671baa)
jenda
parents: 707
diff changeset
    43
BuildRequires: library/python-2/pyorbit-26
7e428d437ae9 7116066 ibus build dependency to library/python-2/python-gnome-libs-26 needs to be upgraded (backport of s11u1:1ad861671baa)
jenda
parents: 707
diff changeset
    44
BuildRequires: library/python-2/pygtksourceview2-26
7e428d437ae9 7116066 ibus build dependency to library/python-2/python-gnome-libs-26 needs to be upgraded (backport of s11u1:1ad861671baa)
jenda
parents: 707
diff changeset
    45
BuildRequires: library/python-2/python-gnome-26
7e428d437ae9 7116066 ibus build dependency to library/python-2/python-gnome-libs-26 needs to be upgraded (backport of s11u1:1ad861671baa)
jenda
parents: 707
diff changeset
    46
BuildRequires: library/python-2/pygobject-26
7e428d437ae9 7116066 ibus build dependency to library/python-2/python-gnome-libs-26 needs to be upgraded (backport of s11u1:1ad861671baa)
jenda
parents: 707
diff changeset
    47
BuildRequires: library/python-2/pygtk2-26
659
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
    48
BuildRequires: library/desktop/gobject/gobject-introspection
322
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    49
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    50
%package root
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    51
Summary:        %{summary} (ROOT)
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    52
SUNW_BaseDir:   /
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    53
%include default-depend.inc
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    54
Requires: SUNWgnome-panel-root
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    55
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    56
%package devel
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    57
Summary:        %{summary} - development files
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    58
SUNW_BaseDir:   %{_basedir}
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    59
%include default-depend.inc
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    60
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    61
%prep
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    62
%setup -q -n %{src_name}-%{version}
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    63
%patch1 -p1
615
a8c9e813f0fd Removed old input method framework startup script to use new imf startup
mkaz
parents: 497
diff changeset
    64
%patch2 -p1
a8c9e813f0fd Removed old input method framework startup script to use new imf startup
mkaz
parents: 497
diff changeset
    65
%patch3 -p1
659
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
    66
%patch4 -p1
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
    67
%patch5 -p1
694
aed1d741dbc7 Bug fix for 7060930 Menu names for input method/selector are not appropriate
mkaz
parents: 677
diff changeset
    68
%patch6 -p1
322
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    69
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    70
%ifarch amd64 sparcv9
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    71
cd ..
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    72
rm -rf %{src_name}-%{version}-64
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    73
cp -pr %{src_name}-%{version} %{src_name}-%{version}-64
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    74
%endif
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    75
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    76
%build
328
38ce3b884dfb added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents: 325
diff changeset
    77
GTK_BIN_VER=`pkg-config --variable=gtk_binary_version gtk+-2.0`
322
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    78
export CXX="${CXX} -norunpath"
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    79
export CFLAGS="%optflags"
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    80
export CXXFLAGS="%cxx_optflags"
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    81
export LDFLAGS="%_ldflags -lsocket"
659
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
    82
./configure --disable-static \
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
    83
            --enable-gtk2 \
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
    84
            --enable-xim \
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
    85
            --disable-gtk-doc \
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
    86
            --enable-introspection \
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
    87
            --prefix=/usr \
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
    88
            --sysconfdir=/etc \
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
    89
            --libdir=/usr/lib \
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
    90
            --libexecdir=/usr/lib/ibus
640
4560596e2880 fix ibus.spec - copy libtool from correct directory
jenda
parents: 630
diff changeset
    91
4560596e2880 fix ibus.spec - copy libtool from correct directory
jenda
parents: 630
diff changeset
    92
# use system default libtool (depends on $PATH)
4560596e2880 fix ibus.spec - copy libtool from correct directory
jenda
parents: 630
diff changeset
    93
cp `which libtool` .
4560596e2880 fix ibus.spec - copy libtool from correct directory
jenda
parents: 630
diff changeset
    94
322
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    95
make
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    96
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    97
%ifarch amd64 sparcv9
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    98
cd ..
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
    99
cd %{src_name}-%{version}-64
677
91b719ebc412 imf-selector.spec and ibus.spec: update requires & buildrequires
jenda
parents: 675
diff changeset
   100
export CXX="${CXX} -norunpath"
322
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   101
export CFLAGS="%optflags64"
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   102
export CXXFLAGS="%cxx_optflags64"
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   103
export LDFLAGS="%_ldflags -lsocket"
659
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
   104
./configure --disable-static \
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
   105
            --enable-gtk2 \
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
   106
            --enable-xim \
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
   107
            --disable-gtk-doc \
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
   108
            --enable-introspection \
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
   109
            --prefix=%{_prefix}/%{_arch64} \
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
   110
            --bindir=%{_bindir}/%{_arch64} \
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
   111
            --libdir=%{_libdir}/%{_arch64} \
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
   112
            --libexecdir=%{_libdir}/ibus/%{_arch64} \
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
   113
            --sysconfdir=%{_sysconfdir}/%{_arch64} \
328
38ce3b884dfb added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents: 325
diff changeset
   114
            --with-gtk-im-module-dir=%{_libdir}/%{_arch64}/gtk-2.0/$GTK_BIN_VER/immodules
640
4560596e2880 fix ibus.spec - copy libtool from correct directory
jenda
parents: 630
diff changeset
   115
4560596e2880 fix ibus.spec - copy libtool from correct directory
jenda
parents: 630
diff changeset
   116
# use system default libtool (depends on $PATH)
4560596e2880 fix ibus.spec - copy libtool from correct directory
jenda
parents: 630
diff changeset
   117
cp `which libtool` .
4560596e2880 fix ibus.spec - copy libtool from correct directory
jenda
parents: 630
diff changeset
   118
328
38ce3b884dfb added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents: 325
diff changeset
   119
make
38ce3b884dfb added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents: 325
diff changeset
   120
322
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   121
%endif
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   122
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   123
%install
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   124
rm -rf ${RPM_BUILD_ROOT}
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   125
DESTDIR=${RPM_BUILD_ROOT} make install
418
12dfc000f222 6891825 - removal of ibus.desktop
yukie
parents: 390
diff changeset
   126
rm -f ${RPM_BUILD_ROOT}/usr/share/applications/ibus.desktop
675
332ca27305c7 GNU install command name is 'ginstall'
jenda
parents: 663
diff changeset
   127
ginstall -D --mode=0755 %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/imf.d/0010.ibus
322
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   128
696
1a27aeb5dea8 BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents: 694
diff changeset
   129
# move to vendor-packages
1a27aeb5dea8 BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents: 694
diff changeset
   130
if [ -x $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages ]; then
1a27aeb5dea8 BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents: 694
diff changeset
   131
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
1a27aeb5dea8 BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents: 694
diff changeset
   132
mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \
1a27aeb5dea8 BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents: 694
diff changeset
   133
   $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/
1a27aeb5dea8 BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents: 694
diff changeset
   134
   rmdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages
1a27aeb5dea8 BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents: 694
diff changeset
   135
   fi
1a27aeb5dea8 BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents: 694
diff changeset
   136
1a27aeb5dea8 BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents: 694
diff changeset
   137
322
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   138
%ifarch amd64 sparcv9
328
38ce3b884dfb added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents: 325
diff changeset
   139
cd ..
38ce3b884dfb added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents: 325
diff changeset
   140
cd %{src_name}-%{version}-64
38ce3b884dfb added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents: 325
diff changeset
   141
DESTDIR=${RPM_BUILD_ROOT} make install
38ce3b884dfb added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents: 325
diff changeset
   142
rm -rf ${RPM_BUILD_ROOT}/etc/%{_arch64}
38ce3b884dfb added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents: 325
diff changeset
   143
rm -rf ${RPM_BUILD_ROOT}/usr/%{_arch64}
38ce3b884dfb added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents: 325
diff changeset
   144
rm -rf ${RPM_BUILD_ROOT}/usr/bin/%{_arch64}
38ce3b884dfb added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents: 325
diff changeset
   145
rm -rf ${RPM_BUILD_ROOT}/usr/lib/%{_arch64}/pkgconfig
38ce3b884dfb added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents: 325
diff changeset
   146
rm -rf ${RPM_BUILD_ROOT}/usr/lib/%{_arch64}/python*
418
12dfc000f222 6891825 - removal of ibus.desktop
yukie
parents: 390
diff changeset
   147
rm -f ${RPM_BUILD_ROOT}/usr/%{_arch64}/share/applications/ibus.desktop
322
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   148
%endif
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   149
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   150
find ${RPM_BUILD_ROOT} -name "*.a" -exec rm  {} \; -print
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   151
find ${RPM_BUILD_ROOT} -name "*.la" -exec rm {} \; -print
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   152
707
dfbe6c035259 7079362 removing CDDL from copies of source/text files delivered to the binary product - part2
jenda
parents: 704
diff changeset
   153
# removing CDDL from copies of source/text files delivered to the binary product
dfbe6c035259 7079362 removing CDDL from copies of source/text files delivered to the binary product - part2
jenda
parents: 704
diff changeset
   154
(cd ${RPM_BUILD_ROOT}; ggrep -rlF 'CDDL HEADER START' . 2>/dev/null|xargs perl -i -ne 'print unless /CDDL HEADER START/ .. /CDDL HEADER END/')
dfbe6c035259 7079362 removing CDDL from copies of source/text files delivered to the binary product - part2
jenda
parents: 704
diff changeset
   155
322
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   156
%post
659
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
   157
%include update-gtk-immodules.script
322
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   158
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   159
%postun
659
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
   160
%include update-gtk-immodules.script
322
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   161
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   162
%clean
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   163
#rm -rf ${RPM_BUILD_ROOT}
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   164
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   165
%files 
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   166
%defattr(-, root, bin)
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   167
%{_bindir}/*
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   168
%{_libdir}/lib*.so*
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   169
%{_libdir}/gtk-2.0/*
659
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
   170
%{_libdir}/ibus/*
696
1a27aeb5dea8 BugFix for 6947894 IBus python components are installed under wrong directory
mkaz
parents: 694
diff changeset
   171
%{_libdir}/python*/vendor-packages/ibus/*
659
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
   172
%{_libdir}/girepository-*/*
322
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   173
%dir %attr (0755, root, sys) %{_datadir}
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   174
%attr (-, root, other) %{_datadir}/applications
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   175
%attr (-, root, other) %{_datadir}/pixmaps
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   176
%attr (-, root, other) %{_datadir}/locale
469
8f135e6cca57 Update for ibus1.2
mkaz
parents: 418
diff changeset
   177
%attr (-, root, other) %{_datadir}/icons
322
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   178
%{_datadir}/ibus/*
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   179
328
38ce3b884dfb added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents: 325
diff changeset
   180
%ifarch amd64 sparcv9
38ce3b884dfb added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents: 325
diff changeset
   181
%{_libdir}/%{_arch64}/lib*.so*
38ce3b884dfb added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents: 325
diff changeset
   182
%{_libdir}/%{_arch64}/gtk-2.0/*
659
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
   183
%{_libdir}/%{_arch64}/girepository-*/*
328
38ce3b884dfb added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents: 325
diff changeset
   184
%endif
38ce3b884dfb added the 64bits of ibus library and gtk_imm, and added copyright files.
yongsun
parents: 325
diff changeset
   185
322
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   186
%files root
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   187
%attr (0755, root, sys) %{_sysconfdir}
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   188
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   189
%files devel
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   190
%defattr(-, root, bin)
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   191
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   192
%{_libdir}/pkgconfig/*
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   193
%{_includedir}/*
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   194
%dir %attr (0755, root, sys) %{_datadir}
aa2d4a37c5e2 added the draft spec files for ibus components.
yongsun
parents:
diff changeset
   195
%{_datadir}/gtk-doc/html/ibus/*
659
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
   196
%{_datadir}/gir-*/*
2e106e3082fa Update for IBus1.3.9 and language engines
mkaz
parents: 645
diff changeset
   197
%{_datadir}/vala/*