centos下安装unar

ubuntu下的unar 一直用着很方便 ,centos各个源上好像没有 ,直接打包了个rpm

wget wget http://unarchiver.c3.cx/downloads/unar1.10.1_src.zip
unzip unar1.10.1_src.zip
yum install gcc libicu-devel gcc-objc gcc-objc++ libobjc gnustep-base-devel libzip-devel bzip2-devel zlib-devel
cd XADMaster/
make -f Makefile.linux
cp unar /usr/local/bin/
#rpm文件:
Name:unar
Version:1
Release:2
Vendor:xx@gmail.com
License:Share
Summary: GUN xx X86_64
Group:Applications/Text
Source:unar.tar.gz
%description
my test xx xo
%prep
%build
cd /root/rpmbuild/BUILD/src/XADMaster
make -f Makefile.linux
mkdir -p /root/rpmbuild/BUILDROOT/unar-1-2.x86_64/usr/local/bin/
cp unar /root/rpmbuild/BUILDROOT/unar-1-2.x86_64/usr/local/bin/
%clean
%files
%defattr(-,root,root)
/usr/local/bin

#另附打包好的unar rpm包
yum install gnustep-base
rpm -ivh unar-1-2.x86_64.rpm 

unar-1-2.x86_64

发表评论

电子邮件地址不会被公开。 必填项已用*标注