openEuler init
This commit is contained in:
commit
5fe355c73d
BIN
osc-0.163.0.tar.gz
Normal file
BIN
osc-0.163.0.tar.gz
Normal file
Binary file not shown.
77
osc.spec
Normal file
77
osc.spec
Normal file
@ -0,0 +1,77 @@
|
||||
Name: osc
|
||||
Version: 0.163.0
|
||||
Release: 237.1.2
|
||||
Summary: The Command Line Interface to work with an Open Build Service
|
||||
License: GPLv2+
|
||||
Url: https://github.com/openSUSE/osc
|
||||
Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python2-devel python2-rpm python2-urlgrabber
|
||||
Requires: python2-rpm m2crypto python2-lxml python2-urlgrabber
|
||||
Requires: m2crypto
|
||||
Requires: python2-lxml
|
||||
Requires: python2-urlgrabber
|
||||
|
||||
Conflicts: obs-build < 20180816
|
||||
|
||||
%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
|
||||
|
||||
iconv -f ISO8859-1 -t UTF-8 -o TODO.new TODO
|
||||
mv TODO.new TODO
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
|
||||
ln -s osc-wrapper.py %{buildroot}%{_bindir}/osc
|
||||
|
||||
install -d %{buildroot}%{_localstatedir}/lib/osc-plugins
|
||||
install -d %{buildroot}%{_prefix}/lib/obs/service
|
||||
install -d %{buildroot}%{_prefix}/lib/osc-plugins
|
||||
install -d %{buildroot}%{_rpmconfigdir}/macros.d/
|
||||
|
||||
install -Dm644 dist/complete.csh %{buildroot}%{_sysconfdir}/profile.d/osc.csh
|
||||
install -Dm644 dist/complete.sh %{buildroot}%{_datadir}/bash-completion/completions/osc
|
||||
install -Dm755 dist/osc.complete %{buildroot}%{_datadir}/osc/complete
|
||||
|
||||
cat > %{buildroot}%{_rpmconfigdir}/macros.d/macros.osc <<EOF
|
||||
%%obs_srcsvc_dir %{_prefix}/lib/obs/service
|
||||
%%osc_plugin_dir %{_prefix}/lib/osc-plugins
|
||||
EOF
|
||||
|
||||
%files
|
||||
%doc AUTHORS README TODO NEWS
|
||||
%license COPYING
|
||||
%{_bindir}/osc*
|
||||
%{python2_sitelib}/*
|
||||
%{_sysconfdir}/profile.d/osc.csh
|
||||
%{_datadir}/bash-completion/completions/osc
|
||||
%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
|
||||
* Wed Nov 27 2019 catastrowings <jianghuhao1994@163.com> - 0.163.0-237.1.2
|
||||
- Update to 0.163.0
|
||||
Loading…
x
Reference in New Issue
Block a user