[FZH] 关于spec

杜宏羽 dongfengweixiao在gmail.com
星期三 二月 2 09:47:17 UTC 2011


于 2011年02月02日 17:27, Liang Suilong 写道:
> https://bugzilla.redhat.com/show_bug.cgi?id=666190
>
> <https://bugzilla.redhat.com/show_bug.cgi?id=666190>你不弄这个 spec 我差点忘记了还有个
> libofetion 和 openfetion 等 review。。。
>
> 老外也在放春节假期了?
>
> Fedora&&  Debian User, former Ubuntu User
> My Page: http://www.liangsuilong.info
> Fedora Project Contributor -- Packager&&  Ambassador
> https://fedoraproject.org/wiki/User:Liangsuilong
>
>
> 2011/2/2 杜宏羽<dongfengweixiao在gmail.com>
>
>> 首先,预祝大家新年快乐。
>> 下面,我咨询大家一个问题:
>>
>> ***************************************************************
>> Summary: Fetion protocol library powered by ofetion project
>> Name: libofetion
>> Version: 2.1.0
>> Release: %mkrel 1
>> Group: Networking/Instant messaging
>> License: GPLv2+
>> URL: http://code.google.com/p/ofetion/
>> Source0: http://ofetion.googlecode.com/files/%{name}-%{version}.tar.gz
>> BuildRoot: %{_tmppath}/%{name}-root
>> BuildRequires: openssl-devel
>> BuildRequires: sqlite3-devel
>> BuildRequires: libxml2-devel
>> BuildRequires: cmake
>> Conflicts: openfetion<  2.1.0
>>
>> %description
>> OpenFetion is a IM client based on GTK+2.0, using CHINA MOBILE's Fetion
>> Protocol Version 4.
>>
>> %files
>> %defattr(-,root,root)
>> %{_datadir}/openfetion/resource
>>
>> #---------------------------------------------------------------
>> %define major 1
>> %define libname %mklibname ofetion %major
>>
>> %package -n %libname
>> Summary: Fetion protocol library powered by ofetion project
>> Group: Networking/Instant messaging
>> Requires: %name = %{version}
>>
>> %description -n %libname
>> OpenFetion is a IM client based on GTK+2.0, using CHINA MOBILE's Fetion
>> Protocol Version 4.
>>
>> %files -n %libname
>> %defattr(-,root,root)
>> %{_libdir}/libofetion.so.%{major}
>> %{_libdir}/libofetion.so.%{major}.*
>>
>> #---------------------------------------------------------------
>> %define develname %mklibname -d ofetion
>>
>> %package -n %develname
>> Summary: Fetion protocol library powered by ofetion project
>> Group: Development/C
>> Requires: %{libname} = %{version}
>> Provides: %{name}-devel = %{version}-%{release}
>>
>> %description -n %develname
>> OpenFetion is a IM client based on GTK+2.0, using CHINA MOBILE's Fetion
>> Protocol Version 4.
>>
>> %files -n %develname
>> %defattr(-,root,root)
>> %{_includedir}/*
>> %{_libdir}/libofetion.so
>> %{_libdir}/libofetion.a
>> %{_libdir}/pkgconfig/*.pc
>>
>> #---------------------------------------------------------------
>>
>> %prep
>> %setup -qn %name-%version
>>
>> %build
>> %cmake
>> %make
>>
>> %install
>> rm -rf $RPM_BUILD_ROOT
>> %makeinstall_std -C build
>>
>> %clean
>> rm -rf $RPM_BUILD_ROOT
>>
>>
>> %changelog
>> * Sun Dec 26 2010 Funda Wang<fwang在mandriva.org>  2.1.0-1mdv2011.0
>> + Revision: 625215
>> - import libofetion
>> *******************************************************************
>> 以上是M系统的spec,但是这里面有一个地方不是fedora有的:%define develname
>> %mklibname -d ofetion
>> 不知道这句话是什么意思,求教了,谢谢。
>>
>> _______________________________________________
>> Chinese mailing list
>> Chinese at lists.fedoraproject.org
>> https://admin.fedoraproject.org/mailman/listinfo/chinese
>>
> _______________________________________________
> Chinese mailing list
> Chinese at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/chinese
那你能不能把src.rpm先发一份给我。cmake的我不知道怎么打包。然后我想看看你 
分成几个包了。


关于邮件列表 Chinese 的更多信息