Previous Entry Share Next Entry
今天终于在Fedora上安装成功了Fcitx-cloudpinyin,但是……
为每一件你做的事情负责到底。
houge_langley
今天小折腾了一下fcitx-cloudpinyin,我在台式机编译安装成功了,但是在笔电上编译失败,原因可能是我的编译环境不齐全,所以我想用台式机给笔电打包。我打包的spec文件内容如下:

%define _topdir         /home/houge/tool/csslayer-fcitx-cloudpinyin-5d9e5a5/

%define name            fcitx-cloudpinyin

%define release        1

%define version     0.01

%define buildroot %{_topdir}/%{name}-%{version}-root

BuildRoot:    %{buildroot}

Summary:         GNU wget

License:         GPL

Name:             %{name}

Version:         %{version}

Release:         %{release}

Source:         %{name}-%{version}.tar.gz

Prefix:         /usr

Group:             Development/Tools

%description

fcitx cloudpinyin input method

%prep

%setup -q

%build

cmake -DCMAKE_INSTALL_PREFIX=/usr .

make

%install

make install

打包过程也一切顺利,终端内容如下:

[root@houge-server csslayer-fcitx-cloudpinyin-5d9e5a5]# rpmbuild -ba fcitx-cloudpinyin.spec

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.yOwWXn

+ umask 022

+ cd /home/houge/tool/csslayer-fcitx-cloudpinyin-5d9e5a5//BUILD

+ LANG=C

+ export LANG

+ unset DISPLAY

+ cd /home/houge/tool/csslayer-fcitx-cloudpinyin-5d9e5a5/BUILD

+ rm -rf fcitx-cloudpinyin-0.01

+ /usr/bin/gzip -dc /home/houge/tool/csslayer-fcitx-cloudpinyin-5d9e5a5/SOURCES/fcitx-cloudpinyin-0.01.tar.gz

+ /bin/tar -xf -

+ STATUS=0

+ '[' 0 -ne 0 ']'

+ cd fcitx-cloudpinyin-0.01

+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .

+ exit 0

Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.80KE5s

+ umask 022

+ cd /home/houge/tool/csslayer-fcitx-cloudpinyin-5d9e5a5//BUILD

+ cd fcitx-cloudpinyin-0.01

+ LANG=C

+ export LANG

+ unset DISPLAY

+ cmake -DCMAKE_INSTALL_PREFIX=/usr .

-- The C compiler identification is GNU

-- The CXX compiler identification is GNU

-- Check for working C compiler: /usr/lib64/ccache/gcc

-- Check for working C compiler: /usr/lib64/ccache/gcc -- works

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Check for working CXX compiler: /usr/lib64/ccache/c++

-- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- checking for module 'fcitx'

--   found fcitx, version 4.1.0

-- checking for module 'fcitx-config'

--   found fcitx-config, version 4.1.0

-- checking for module 'fcitx-utils'

--   found fcitx-utils, version 4.1.0

-- fcitx4-config found /usr/bin/fcitx4-config

-- Found Fcitx4: 4.1.1

-- checking for module 'libcurl'

--   found libcurl, version 7.21.3

-- Configuring done

-- Generating done

-- Build files have been written to: /home/houge/tool/csslayer-fcitx-cloudpinyin-5d9e5a5/BUILD/fcitx-cloudpinyin-0.01

+ make

Scanning dependencies of target fcitx-cloudpinyin

[ 25%] Building C object src/CMakeFiles/fcitx-cloudpinyin.dir/cloudpinyin.c.o

[ 50%] Building C object src/CMakeFiles/fcitx-cloudpinyin.dir/cloudpinyinconifg.c.o

Linking C shared module fcitx-cloudpinyin.so

[ 50%] Built target fcitx-cloudpinyin

Scanning dependencies of target fcitx-cloudpinyin.conf.target

[ 50%] Generating fcitx-cloudpinyin.conf

Merging
translations into
/home/houge/tool/csslayer-fcitx-cloudpinyin-5d9e5a5/BUILD/fcitx-cloudpinyin-0.01/src/fcitx-cloudpinyin.conf.

[ 75%] Built target fcitx-cloudpinyin.conf.target

Scanning dependencies of target translations

[ 75%] Generating zh_CN.gmo

[100%] Built target translations

+ exit 0

Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.ijgUpE

+ umask 022

+ cd /home/houge/tool/csslayer-fcitx-cloudpinyin-5d9e5a5//BUILD

+ '[' /root/rpmbuild/BUILDROOT/fcitx-cloudpinyin-0.01-1.x86_64 '!=' / ']'

+ rm -rf /root/rpmbuild/BUILDROOT/fcitx-cloudpinyin-0.01-1.x86_64

++ dirname /root/rpmbuild/BUILDROOT/fcitx-cloudpinyin-0.01-1.x86_64

+ mkdir -p /root/rpmbuild/BUILDROOT

+ mkdir /root/rpmbuild/BUILDROOT/fcitx-cloudpinyin-0.01-1.x86_64

+ cd fcitx-cloudpinyin-0.01

+ LANG=C

+ export LANG

+ unset DISPLAY

+ make install

[ 50%] Built target fcitx-cloudpinyin

[ 75%] Built target fcitx-cloudpinyin.conf.target

[100%] Built target translations

Install the project...

-- Install configuration: ""

-- Installing: /usr/lib64/fcitx/fcitx-cloudpinyin.so

-- Installing: /usr/share/fcitx/addon/fcitx-cloudpinyin.conf

-- Up-to-date: /usr/share/fcitx/configdesc/fcitx-cloudpinyin.desc

-- Installing: /usr/share/locale/zh_CN/LC_MESSAGES/fcitx-cloudpinyin.mo

+
/usr/lib/rpm/find-debuginfo.sh --strict-build-id
/home/houge/tool/csslayer-fcitx-cloudpinyin-5d9e5a5//BUILD/fcitx-cloudpinyin-0.01

+ /usr/lib/rpm/check-buildroot

+ /usr/lib/rpm/redhat/brp-compress

+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip

+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1

+ /usr/lib/rpm/redhat/brp-python-hardlink

+ /usr/lib/rpm/redhat/brp-java-repack-jars

Processing files: fcitx-cloudpinyin-debuginfo-0.01-1.x86_64

Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/fcitx-cloudpinyin-0.01-1.x86_64

warning: Could not canonicalize hostname: houge-server

Wrote: /home/houge/tool/csslayer-fcitx-cloudpinyin-5d9e5a5/SRPMS/fcitx-cloudpinyin-0.01-1.src.rpm

Wrote: /home/houge/tool/csslayer-fcitx-cloudpinyin-5d9e5a5/RPMS/x86_64/fcitx-cloudpinyin-debuginfo-0.01-1.x86_64.rpm

Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.r0RYng

+ umask 022

+ cd /home/houge/tool/csslayer-fcitx-cloudpinyin-5d9e5a5//BUILD

+ cd fcitx-cloudpinyin-0.01

+ /bin/rm -rf /root/rpmbuild/BUILDROOT/fcitx-cloudpinyin-0.01-1.x86_64

+ exit 0

但是现在的问题是,在SRPMS和RPMS下的两个包一个是src源码包,另一个是debuginfo包,都不是需要的,不知道问题处在什么地方,求解。


  • 1
rpm参数用“-bb”就只打包纯rpm,不会生成源码包和debug包

  • 1
?

Log in