124 Star 0 Fork 15

src-openEuler / osc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
osc.spec 3.51 KB
一键复制 编辑 原始数据 按行查看 历史
starlet_dx 提交于 2024-04-29 20:17 . Upgrade to 1.6.2
%global osc_plugin_dir %{_prefix}/lib/osc-plugins
%global obsroot %{_prefix}/lib/obs
%global obs_srcsvc_dir %{obsroot}/service
Name: osc
Version: 1.6.2
Release: 1
Summary: The Command Line Interface to work with an Open Build Service
License: GPLv2+
Url: https://github.com/openSUSE/osc
Source: https://github.com/openSUSE/osc/archive/%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel python3-distro python3-rpm python3-setuptools diffstat
BuildRequires: python3-cryptography python3-urllib3 python3-argparse-manpage
Requires: python3-distro python3-rpm python3-lxml vim
Requires: python3-urllib3 python3-progressbar2
Recommends: obs-build
Recommends: obs-service-source_validator
Conflicts: obs-build < 20191205
%description
The osc is an opensuse-commander with svn like handling.
It's a command line interface to work with an Open Build Service.
%package help
Summary: Help package for %{name}
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
%description help
This package contains some man help files for %{name}.
%prep
%autosetup -p1 -n osc-%{version}
%build
%py3_build
cat << EOF > macros.osc
%%osc_plugin_dir %{osc_plugin_dir}
EOF
# build man page
PYTHONPATH=. argparse-manpage \
--output=osc.1 \
--format=single-commands-section \
--module=osc.commandline \
--function=get_parser \
--project-name=osc \
--prog=osc \
--description="OpenSUSE Commander" \
--author="Contributors to the osc project. See the project's GIT history for the complete list." \
--url="https://github.com/openSUSE/osc/"
%install
%py3_install
mkdir -p %{buildroot}%{_localstatedir}/lib/osc-plugins
install -Dm0644 contrib/complete.csh %{buildroot}%{_sysconfdir}/profile.d/osc.csh
install -Dm0644 contrib/complete.sh %{buildroot}%{_datadir}/bash-completion/completions/osc
install -Dm0755 contrib/osc.complete %{buildroot}%{_datadir}/osc/complete
install -Dm0644 contrib/osc.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/osc.fish
mkdir -p %{buildroot}%{obs_srcsvc_dir}
mkdir -p %{buildroot}%{osc_plugin_dir}
mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d/
# install rpm macros
install -Dm0644 macros.osc %{buildroot}%{_rpmmacrodir}/macros.osc
# install man page
install -Dm0644 osc.1 %{buildroot}%{_mandir}/man1/osc.1
%check
python3 setup.py test
%files
%doc AUTHORS README.md NEWS
%license COPYING
%{_bindir}/osc*
%{python3_sitelib}/osc*
%{_sysconfdir}/profile.d/osc.csh
%{_datadir}/bash-completion/completions/osc
%{_datadir}/fish/vendor_completions.d/osc.fish
%dir %{_localstatedir}/lib/osc-plugins
%{_datadir}/osc
%{_rpmconfigdir}/macros.d/macros.osc
%dir %{_prefix}/lib/obs
%dir %{_prefix}/lib/obs/service
%dir %{_prefix}/lib/osc-plugins
%files help
%{_mandir}/man1/osc.*
%changelog
* Mon Apr 29 2024 yaoxin <yao_xin001@hoperun.com> - 1.6.2-1
- Upgrade to 1.6.2
* Wed Oct 18 2023 wangkai <13474090681@163.com> - 1.4.2-1
- Upgrade to 1.4.2
* Thu Aug 31 2023 chenchen <chen_aka_jan@163.com> - 1.3.1-1
- Upgrade to 1.3.1
* Wed Apr 27 2022 xigaoxinyan <xigaoxinyan@h-partners.com> - 0.175.0-1
- Upgrade to 0.175.0
* Thu Sep 17 2020 maminjie <maminjie1@huawei.com> - 0.169.1-3
- Add vim to Requires list
* Fri Sep 11 2020 maminjie <maminjie1@huawei.com> - 0.169.1-2
- Rebuilt for Python 3.8.5
* Wed Aug 05 2020 yaokai <yaokai13@huawei.com> - 0.169.1-1
- Upgrade to 0.169.1 to fix CVE-2019-3681
* Wed Nov 27 2019 catastrowings <jianghuhao1994@163.com> - 0.163.0-237.1.2
- Update to 0.163.0
1
https://gitee.com/src-openeuler/osc.git
git@gitee.com:src-openeuler/osc.git
src-openeuler
osc
osc
master

搜索帮助