drop broken comment
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/osc?expand=0&rev=75
This commit is contained in:
parent
775a701568
commit
e83a004465
@ -1,141 +0,0 @@
|
|||||||
#
|
|
||||||
# spec file for package osc
|
|
||||||
#
|
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
||||||
#
|
|
||||||
# All modifications and additions to the file contributed by third parties
|
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
|
||||||
# upon. The license for this file, and modifications and additions to the
|
|
||||||
# file, is the same license as for the pristine package itself (unless the
|
|
||||||
# license for the pristine package is not an Open Source License, in which
|
|
||||||
# case the license is the MIT License). An "Open Source License" is a
|
|
||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
|
||||||
# published by the Open Source Initiative.
|
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Name: osc
|
|
||||||
Version: 0.131.1
|
|
||||||
Release: 1
|
|
||||||
Group: Development/Tools/Other
|
|
||||||
License: GPLv2+
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
Url: http://www.gitorious.org/opensuse/osc
|
|
||||||
Source: osc-%{version}.tar.gz
|
|
||||||
Summary: openSUSE Build Service Commander
|
|
||||||
%if 0%{?mandriva_version} < 02010
|
|
||||||
Requires: python-urlgrabber
|
|
||||||
BuildRequires: python-urlgrabber
|
|
||||||
%endif
|
|
||||||
BuildRequires: python-devel
|
|
||||||
%if 0%{?mandriva_version}
|
|
||||||
Requires: python-rpm
|
|
||||||
BuildRequires: python-rpm
|
|
||||||
%else
|
|
||||||
Requires: rpm-python
|
|
||||||
BuildRequires: rpm-python
|
|
||||||
%endif
|
|
||||||
#
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
%if %suse_version < 1020
|
|
||||||
BuildRequires: python-elementtree
|
|
||||||
Requires: python-elementtree
|
|
||||||
%else
|
|
||||||
BuildRequires: python-xml
|
|
||||||
Requires: python-xml
|
|
||||||
%endif
|
|
||||||
%if %suse_version > 1110
|
|
||||||
BuildArch: noarch
|
|
||||||
%endif
|
|
||||||
%if %suse_version > 1000
|
|
||||||
Recommends: osc-source_validator
|
|
||||||
Recommends: build >= 2010.05.04
|
|
||||||
# These packages are needed for "osc add $URL"
|
|
||||||
Recommends: obs-service-set_version obs-service-tar_scm obs-service-recompress obs-service-verify_file
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
%if 0%{?rhel_version} || 0%{?centos_version}
|
|
||||||
%if 0%{?rhel_version} < 600
|
|
||||||
BuildRequires: python-elementtree
|
|
||||||
Requires: python-elementtree
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
%if 0%{?suse_version}%{?mandriva_version}
|
|
||||||
BuildRequires: python-m2crypto
|
|
||||||
Requires: python-m2crypto > 0.19
|
|
||||||
%else
|
|
||||||
BuildRequires: m2crypto
|
|
||||||
Requires: m2crypto > 0.19
|
|
||||||
%endif
|
|
||||||
%if 0%{?mandriva_version}
|
|
||||||
Requires: python-rpm
|
|
||||||
BuildRequires: python-rpm
|
|
||||||
%else
|
|
||||||
Requires: rpm-python
|
|
||||||
BuildRequires: rpm-python
|
|
||||||
%endif
|
|
||||||
|
|
||||||
#
|
|
||||||
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
||||||
|
|
||||||
|
|
||||||
%description
|
|
||||||
Commandline client for the openSUSE Build Service.
|
|
||||||
|
|
||||||
See http://en.opensuse.org/openSUSE:OSC , as well as
|
|
||||||
http://en.opensuse.org/openSUSE:Build_Service_Tutorial for a general
|
|
||||||
introduction.
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
|
||||||
CFLAGS="%{optflags}" \
|
|
||||||
%{__python} setup.py build
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
|
||||||
%{__python} setup.py install --prefix=%{_prefix} --root %{buildroot}
|
|
||||||
%__ln_s osc-wrapper.py %{buildroot}/%{_bindir}/osc
|
|
||||||
%__mkdir_p %{buildroot}/var/lib/osc-plugins
|
|
||||||
%__mkdir_p %{buildroot}%{_sysconfdir}/profile.d
|
|
||||||
%__install -m 0644 dist/complete.csh %{buildroot}%{_sysconfdir}/profile.d/osc.csh
|
|
||||||
%__install -m 0644 dist/complete.sh %{buildroot}%{_sysconfdir}/profile.d/osc.sh
|
|
||||||
%if 0%{?suse_version} > 1110
|
|
||||||
%__mkdir_p %{buildroot}%{_prefix}/lib/osc
|
|
||||||
%__install -m 0755 dist/osc.complete %{buildroot}%{_prefix}/lib/osc/complete
|
|
||||||
%else
|
|
||||||
%__mkdir_p %{buildroot}%{_prefix}/%{_lib}/osc
|
|
||||||
%__install -m 0755 dist/osc.complete %{buildroot}%{_prefix}/%{_lib}/osc/complete
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%clean
|
|
||||||
%{__rm} -rf %{buildroot}
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_bindir}/osc*
|
|
||||||
%{python_sitelib}/*
|
|
||||||
%config %{_sysconfdir}/profile.d/osc.sh
|
|
||||||
%config %{_sysconfdir}/profile.d/osc.csh
|
|
||||||
%if 0%{?suse_version} > 1110
|
|
||||||
%dir %{_prefix}/lib/osc
|
|
||||||
%{_prefix}/lib/osc/complete
|
|
||||||
%else
|
|
||||||
%dir %{_prefix}/%{_lib}/osc
|
|
||||||
%{_prefix}/%{_lib}/osc/complete
|
|
||||||
%endif
|
|
||||||
%dir /var/lib/osc-plugins
|
|
||||||
%doc AUTHORS README TODO NEWS
|
|
||||||
%doc %_mandir/man1/osc.*
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
|
@ -1,8 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Thu May 26 14:04:58 UTC 2011 - adrian@suse.de
|
|
||||||
|
|
||||||
- blah fasel
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 29 08:14:52 UTC 2011 - adrian@suse.de
|
Fri Apr 29 08:14:52 UTC 2011 - adrian@suse.de
|
||||||
|
|
||||||
|
7
osc.spec
7
osc.spec
@ -81,6 +81,7 @@ BuildRequires: rpm-python
|
|||||||
#
|
#
|
||||||
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Commandline client for the openSUSE Build Service.
|
Commandline client for the openSUSE Build Service.
|
||||||
|
|
||||||
@ -92,10 +93,12 @@ introduction.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="%{optflags}" \
|
CFLAGS="%{optflags}" \
|
||||||
%{__python} setup.py build
|
%{__python} setup.py build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__python} setup.py install --prefix=%{_prefix} --root %{buildroot}
|
%{__python} setup.py install --prefix=%{_prefix} --root %{buildroot}
|
||||||
%__ln_s osc-wrapper.py %{buildroot}/%{_bindir}/osc
|
%__ln_s osc-wrapper.py %{buildroot}/%{_bindir}/osc
|
||||||
@ -111,9 +114,11 @@ CFLAGS="%{optflags}" \
|
|||||||
%__install -m 0755 dist/osc.complete %{buildroot}%{_prefix}/%{_lib}/osc/complete
|
%__install -m 0755 dist/osc.complete %{buildroot}%{_prefix}/%{_lib}/osc/complete
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%{__rm} -rf %{buildroot}
|
%{__rm} -rf %{buildroot}
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/osc*
|
%{_bindir}/osc*
|
||||||
@ -131,4 +136,6 @@ CFLAGS="%{optflags}" \
|
|||||||
%doc AUTHORS README TODO NEWS
|
%doc AUTHORS README TODO NEWS
|
||||||
%doc %_mandir/man1/osc.*
|
%doc %_mandir/man1/osc.*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user