File osc.spec of Package osc-svn
#
# spec file for package osc (Version 0.95)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: osc
BuildRequires: python-devel
Version: 0.110.5255S
Release: 0
Group: Development/Tools/Other
License: GNU General Public License (GPL)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
URL: https://forgesvn1.novell.com/svn/opensuse/trunk/buildservice/src/clientlib/python/osc/
# v=0.101; svn export https://forgesvn1.novell.com/svn/opensuse/trunk/buildservice/src/clientlib/python/osc osc-$v && tar czf osc-$v.tar.gz osc-$v
Source: osc-%{version}.tar.gz
Summary: openSUSE (build service) commander
Requires: python-urlgrabber
#
%if 0%{?suse_version}
%if %suse_version < 1020
Requires: python-elementtree
%else
Requires: python-xml
Recommends: build > 2007.09.14
%endif
%if %suse_version > 1000
Recommends: rpm-python
%endif
%endif
#
%if 0%{?fedora_version}
%if %fedora_version < 7
Requires: python-elementtree
%endif
%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/Build_Service/CLI , as well as
http://en.opensuse.org/Build_Service_Tutorial for a general
introduction.
Authors:
--------
Peter Poeml <poeml@suse.de>
%prep
%setup -q -n osc-%{version}
%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
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%{_bindir}/osc*
%{python_sitelib}/*
%dir /var/lib/osc-plugins
%doc README TODO NEWS
%changelog