Name: libofetion Version: 2.1.0 Release: 3.hg20110111%{?dist} Summary: Instant messaging client library for the Fetion protocol V4 Group: System Environment/Libraries License: GPLv2+ URL: http://code.google.com/p/ofetion Source0: http://ofetion.googlecode.com/files/%{name}-%{version}.tar.gz #hg clone https://cmakeport.ofetion.googlecode.com/hg/ ofetion-cmakeport #cd ofetion-cmakeport #./tarball.sh BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libxml2-devel BuildRequires: openssl-devel, sqlite-devel BuildRequires: cmake %description Libfetion is a library using for Fetiong protocol v4. It is compatible with POSIX system, such as Linux, UNIX, Mac OS X. you can develop a Fetion client with it. This package contains the dynamic library of Openfetion, which handles the network protocol and can be reused to create Fetion clients. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q %build %cmake . make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' rm -f $RPM_BUILD_ROOT%{_libdir}/libofetion.a %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING README %doc LICENSE License.OpenSSL %{_libdir}/libofetion.so.* %{_datadir}/openfetion/ %files devel %defattr(-,root,root,-) %{_includedir}/* %{_libdir}/pkgconfig/* %{_libdir}/libofetion.so %changelog * Tue Jan 11 2011 Liang Suilong - 2.1.0-3.hg20110111 - Update to a new checkout * Wed Dec 29 2010 Liang Suilong - 2.1.0-2 - Clean up BuildRequires - Add serveral documents - Change Home URL * Wed Dec 29 2010 Liang Suilong - 2.1.0-1 - Initial Package for libofetion