libfastcommon.spec

pull/1/head
yuqing 2014-06-26 11:41:25 +08:00
parent 101caed964
commit c8ecbb8c31
1 changed files with 1 additions and 13 deletions

View File

@ -10,12 +10,9 @@ Source: http://github.com/happyfish100/libfastcommon/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
#Requires: /sbin/chkconfig #Requires: /sbin/chkconfig
#Requires: sh-utils textutils grep fileutils /etc/cron.d
#BuildRequires: perl %{_includedir}/linux/if.h gettext #BuildRequires: perl %{_includedir}/linux/if.h gettext
Requires: %__cp %__mv %__chmod %__grep %__mkdir %__install %__id Requires: %__cp %__mv %__chmod %__grep %__mkdir %__install %__id
%description %description
c common functions library extracted from my open source projects FastDFS. c common functions library extracted from my open source projects FastDFS.
this library is very simple and stable. functions including: string, logger, this library is very simple and stable. functions including: string, logger,
@ -34,19 +31,11 @@ This pakcage provides the header files of libfastcommon
%setup -q %setup -q
%build %build
# FIXME: I need to fix the upstream Makefile to use LIBDIR et al. properly and
# send the upstream maintainer a patch.
# add DOCDIR to the configure part
./make.sh ./make.sh
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
DESTDIR=$RPM_BUILD_ROOT ./make.sh install DESTDIR=$RPM_BUILD_ROOT ./make.sh install
#make install IGNORE_MAN_GROUP=y DOC_DIR=%{_docdir}/%{name}-%{version} INIT_DIR=%{_initrddir}
#install -m 0644 sysstat.crond %{buildroot}/%{_sysconfdir}/cron.d/sysstat
#%find_lang %{name}
%post %post
ln -fs /usr/local/lib/libfastcommon.so.1 %{_libdir}/libfastcommon.so ln -fs /usr/local/lib/libfastcommon.so.1 %{_libdir}/libfastcommon.so
@ -64,8 +53,7 @@ rm -rf %{buildroot}
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
/usr/local/lib/libfastcommon.so* /usr/local/lib/libfastcommon.so*
#/usr/local/include/*
#%{_libdir}/libfastcommon.*
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
/usr/local/include/* /usr/local/include/*