acl/packaging/acl-libs.spec

72 lines
1.4 KiB
RPMSpec
Raw Normal View History

Summary: The powerful c/c++ library and server framework
Name: acl-libs
Version: 3.3.0
2017-06-09 10:00:37 +08:00
Release: 2
Group: System/Libs
License: IBM
URL: http://cdnlog-web.qiyi.domain
Packager: Zhang Qiang <qiangzhang@qiyi.com>
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Source: http://example.com/%{name}-%{version}.tar.gz
2017-06-23 14:25:07 +08:00
%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
2017-06-08 10:24:23 +08:00
%clean
rm -rf %{buildroot}
2017-06-08 10:24:23 +08:00
%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
2017-06-08 10:24:23 +08:00
/etc/init.d/master