[FZH] 关于spec

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


于 2011年02月02日 14:51, Tommy He 写道:
> 不了解 Mandriva 的打包,不过大胆猜测下应该是指定创建库名的,方便 urpm 查询,Mandriva 独有。
>
> 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 的更多信息