diff --git a/ccb-1.0.1.tar.gz b/ccb-1.0.1.tar.gz index bbadd985f8866bb7167d7d28402d143276f8e68f..f72741272f2e7c475db31c0c356ea1c54ca70585 100644 Binary files a/ccb-1.0.1.tar.gz and b/ccb-1.0.1.tar.gz differ diff --git a/ccb.spec b/ccb.spec index 1ae98c0a66e8c8d1a57d08e2aa7dfca9d6e056ac..1bbc7cecf1cdbff655aaebfbf7fb53f345955283 100755 --- a/ccb.spec +++ b/ccb.spec @@ -2,10 +2,10 @@ Name: ccb Version: 1.0.1 -Release: 1%{?dist} -Summary: CCB Command Line Tool -License: MIT -URL: https://example.com/ccb +Release: 2 +Summary: ccb is a client-side tool for EulerMaker +License: MulanPSL-2.0 +URL: https://gitee.com/openeuler/ccb Source0: %{name}-%{version}.tar.gz BuildArch: noarch @@ -25,14 +25,19 @@ Requires: diffutils Requires: lftp Requires: docker Requires: rubygem-activesupport -#Requires: rubygem-rest-client +Requires: rubygem-rest-client %description -Command line interface for CCB continuous integration system. +This repository serves as a client-side tool for EulerMaker, allowing users to perform command-line operations on EulerMaker from within their own environment. %prep %autosetup -n %{name}-%{version} +if [ ! -f LICENSE ]; then + echo "MulanPSL-2.0 license file is missing" >&2 + exit 1 +fi + %install # Install main files mkdir -p %{buildroot}/%{_libexecdir}/%{name} @@ -43,22 +48,28 @@ mkdir -p %{buildroot}/%{_sbindir} ln -sf %{_libexecdir}/%{name}/sbin/cli/ccb %{buildroot}/%{_sbindir}/ccb %post -# Install local gem packages -cd %{_libexecdir}/%{name}/lib/gem-local/ -gem install --local * # Register environment settings -%{_libexecdir}/%{name}/lib/env.sh +if [ -f %{_libexecdir}/%{name}/lib/env.sh ]; then + . %{_libexecdir}/%{name}/lib/env.sh +fi %postun if [ $1 -eq 0 ] ; then rm -rf %{_libexecdir}/%{name} + echo "NOTE: User configurations in $HOME/.config/cli are deleted" rm -rf /root/.config/cli fi %files -%{_libexecdir}/%{name} +%defattr(-,root,root,-) +%dir %{_libexecdir}/%{name} +%{_libexecdir}/%{name}/* %{_sbindir}/ccb +%license LICENSE %changelog +* Fri May 16 2025 yangchaohao - 1.0.1-2 +- 修复部分描述,修复安装依赖 + * Wed May 14 2025 yangchaohao - 1.0.1-1 - Initial package