1 Star 0 Fork 8

erik_yuan/obs-service-set_version

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
obs-service-set_version.spec 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
Name: obs-service-set_version
Version: 0.5.10
Release: 5
Summary: Set the version in spec
License: GPLv2+
URL: https://github.com/openSUSE/obs-service-set_version
Source: https://github.com/openSUSE/obs-service-set_version/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: sed
Requires: python3
BuildArch: noarch
%description
It is a service for building.You can quickly install it
and update version in spec files.
%prep
%autosetup
%build
sed -i -e "1 s,#!/usr/bin/python$,#!%{__python3}," set_version
%install
mkdir -p %{buildroot}%{_prefix}/lib/obs/service
install -m 0644 set_version.service %{buildroot}%{_prefix}/lib/obs/service
install -m 0755 set_version %{buildroot}%{_prefix}/lib/obs/service
%check
%{__python3} -m unittest discover -p data_test* tests/
%files
%license debian/copyright
%dir %{_prefix}/lib/obs
%{_prefix}/lib/obs/service
%changelog
* Sat Mar 21 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.5.10-5
- DESC:modify the spec file,do not need python3-devel and python3dist(packaging) for building
* Thu Mar 5 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.5.10-4
- DESC:init package
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/erik_yuan/obs-service-set_version.git
git@gitee.com:erik_yuan/obs-service-set_version.git
erik_yuan
obs-service-set_version
obs-service-set_version
master

搜索帮助