Summary: The powerful c/c++ library and server framework Name: acl-libs Version: 3.3.0 Release: 2 Group: System/Libs License: IBM URL: http://cdnlog-web.qiyi.domain Packager: Zhang Qiang BuildRoot: %{_tmppath}/%{name}-%{version}-root Source: http://example.com/%{name}-%{version}.tar.gz %define debug_package %{nil} %description One advanced C/C++ library for Linux/Mac/FreeBSD/Solaris(x86)/Windows/Android/IOS http://zsxxsz.iteye.com/. %package -n acl-master Summary: acl master framework License: IBM Group: System Environment/Tools Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig %description -n acl-master acl master framework %prep %setup -q %build make build_one -j 32 %install make packinstall DESTDIR=$RPM_BUILD_ROOT %clean rm -rf %{buildroot} %post -n acl-master /sbin/chkconfig --add master %preun -n acl-master if [ "$1" = "0" ]; then service master stop >/dev/null 2>&1 ||: /sbin/chkconfig --del master fi %postun -n acl-master if [ "$1" -ge "1" ]; then # TODO: upgrade should be support service master masterrestart > /dev/null 2>&1 ||: fi %files %defattr(-,root,root,-) # TODO: should be renamed %{_bindir}/acl_master %{_includedir}/acl-lib/acl %{_includedir}/acl-lib/acl_cpp /usr/lib/libacl_all.a %files -n acl-master %defattr(-,root,root) /opt/soft /etc/init.d/master