commit 5fe355c73d064b75c2657d10a5c10e5806bfc194 Author: catastrowings Date: Thu Nov 28 15:32:15 2019 +0800 openEuler init diff --git a/osc-0.163.0.tar.gz b/osc-0.163.0.tar.gz new file mode 100644 index 0000000..b4fa5ac Binary files /dev/null and b/osc-0.163.0.tar.gz differ diff --git a/osc.spec b/osc.spec new file mode 100644 index 0000000..91d4815 --- /dev/null +++ b/osc.spec @@ -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 < - 0.163.0-237.1.2 +- Update to 0.163.0