2007-04-19 04:37:23 +02:00
|
|
|
#
|
2011-04-27 11:37:58 +02:00
|
|
|
# spec file for package osc
|
2007-04-19 04:37:23 +02:00
|
|
|
#
|
2011-04-27 11:37:58 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-04-19 04:37:23 +02:00
|
|
|
#
|
2008-09-16 14:50:36 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-04-19 04:37:23 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2010-04-25 18:50:29 +02:00
|
|
|
|
|
|
|
|
2007-04-19 04:37:23 +02:00
|
|
|
Name: osc
|
2011-06-07 16:45:37 +02:00
|
|
|
Version: 0.132.0
|
2011-04-28 14:25:54 +02:00
|
|
|
Release: 1
|
2007-04-19 04:37:23 +02:00
|
|
|
Group: Development/Tools/Other
|
2010-01-18 18:22:44 +01:00
|
|
|
License: GPLv2+
|
2007-04-19 04:37:23 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-01-18 18:22:44 +01:00
|
|
|
Url: http://www.gitorious.org/opensuse/osc
|
2007-04-19 04:37:23 +02:00
|
|
|
Source: osc-%{version}.tar.gz
|
2010-04-25 18:50:30 +02:00
|
|
|
Summary: openSUSE Build Service Commander
|
2010-12-06 21:34:03 +01:00
|
|
|
%if 0%{?mandriva_version} < 02010
|
2007-06-28 19:36:32 +02:00
|
|
|
Requires: python-urlgrabber
|
2010-04-25 18:50:30 +02:00
|
|
|
BuildRequires: python-urlgrabber
|
2010-06-14 16:34:24 +02:00
|
|
|
%endif
|
2010-04-25 18:50:30 +02:00
|
|
|
BuildRequires: python-devel
|
2011-03-21 07:38:57 +01:00
|
|
|
%if 0%{?mandriva_version}
|
|
|
|
Requires: python-rpm
|
|
|
|
BuildRequires: python-rpm
|
|
|
|
%else
|
|
|
|
Requires: rpm-python
|
|
|
|
BuildRequires: rpm-python
|
|
|
|
%endif
|
2007-06-28 19:36:32 +02:00
|
|
|
#
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%if %suse_version < 1020
|
2009-06-16 18:22:12 +02:00
|
|
|
BuildRequires: python-elementtree
|
2007-04-19 04:37:23 +02:00
|
|
|
Requires: python-elementtree
|
|
|
|
%else
|
2010-06-17 10:05:00 +02:00
|
|
|
BuildRequires: python-xml
|
2010-04-25 18:50:30 +02:00
|
|
|
Requires: python-xml
|
2007-04-19 04:37:23 +02:00
|
|
|
%endif
|
2010-04-25 18:50:30 +02:00
|
|
|
%if %suse_version > 1110
|
2009-10-27 16:41:49 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2010-04-25 18:50:30 +02:00
|
|
|
%if %suse_version > 1000
|
2010-12-06 21:34:03 +01:00
|
|
|
Recommends: osc-source_validator
|
2010-09-03 15:28:04 +02:00
|
|
|
Recommends: build >= 2010.05.04
|
2010-12-06 21:34:03 +01:00
|
|
|
# These packages are needed for "osc add $URL"
|
|
|
|
Recommends: obs-service-set_version obs-service-tar_scm obs-service-recompress obs-service-verify_file
|
2007-08-09 20:43:12 +02:00
|
|
|
%endif
|
2007-06-28 19:36:32 +02:00
|
|
|
%endif
|
2010-04-25 18:50:29 +02:00
|
|
|
%if 0%{?rhel_version} || 0%{?centos_version}
|
2010-11-11 13:07:20 +01:00
|
|
|
%if 0%{?rhel_version} < 600
|
2010-04-25 18:50:30 +02:00
|
|
|
BuildRequires: python-elementtree
|
|
|
|
Requires: python-elementtree
|
|
|
|
%endif
|
2010-11-11 13:07:20 +01:00
|
|
|
%endif
|
2010-04-25 18:50:30 +02:00
|
|
|
%if 0%{?suse_version}%{?mandriva_version}
|
|
|
|
BuildRequires: python-m2crypto
|
|
|
|
Requires: python-m2crypto > 0.19
|
|
|
|
%else
|
|
|
|
BuildRequires: m2crypto
|
|
|
|
Requires: m2crypto > 0.19
|
2010-04-22 18:21:53 +02:00
|
|
|
%endif
|
2011-04-27 14:27:05 +02:00
|
|
|
%if 0%{?mandriva_version}
|
|
|
|
Requires: python-rpm
|
|
|
|
BuildRequires: python-rpm
|
|
|
|
%else
|
|
|
|
Requires: rpm-python
|
|
|
|
BuildRequires: rpm-python
|
|
|
|
%endif
|
2010-04-25 18:50:30 +02:00
|
|
|
|
2007-06-28 19:36:32 +02:00
|
|
|
#
|
2007-04-19 04:37:23 +02:00
|
|
|
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
|
2011-05-26 22:08:35 +02:00
|
|
|
|
2007-04-19 04:37:23 +02:00
|
|
|
%description
|
2009-10-27 16:41:49 +01:00
|
|
|
Commandline client for the openSUSE Build Service.
|
2007-04-19 04:37:23 +02:00
|
|
|
|
2011-04-29 10:28:48 +02:00
|
|
|
See http://en.opensuse.org/openSUSE:OSC , as well as
|
|
|
|
http://en.opensuse.org/openSUSE:Build_Service_Tutorial for a general
|
2007-04-19 04:37:23 +02:00
|
|
|
introduction.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2009-06-16 18:22:12 +02:00
|
|
|
%setup -q
|
2007-04-19 04:37:23 +02:00
|
|
|
|
2011-05-26 22:08:35 +02:00
|
|
|
|
2007-04-19 04:37:23 +02:00
|
|
|
%build
|
|
|
|
CFLAGS="%{optflags}" \
|
|
|
|
%{__python} setup.py build
|
|
|
|
|
2011-05-26 22:08:35 +02:00
|
|
|
|
2007-04-19 04:37:23 +02:00
|
|
|
%install
|
|
|
|
%{__python} setup.py install --prefix=%{_prefix} --root %{buildroot}
|
2010-04-25 18:50:30 +02:00
|
|
|
%__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
|
2009-10-27 16:41:49 +01:00
|
|
|
%if 0%{?suse_version} > 1110
|
2010-04-25 18:50:30 +02:00
|
|
|
%__mkdir_p %{buildroot}%{_prefix}/lib/osc
|
|
|
|
%__install -m 0755 dist/osc.complete %{buildroot}%{_prefix}/lib/osc/complete
|
2009-10-27 16:41:49 +01:00
|
|
|
%else
|
2010-04-25 18:50:30 +02:00
|
|
|
%__mkdir_p %{buildroot}%{_prefix}/%{_lib}/osc
|
|
|
|
%__install -m 0755 dist/osc.complete %{buildroot}%{_prefix}/%{_lib}/osc/complete
|
2009-10-27 16:41:49 +01:00
|
|
|
%endif
|
2007-04-19 04:37:23 +02:00
|
|
|
|
2011-05-26 22:08:35 +02:00
|
|
|
|
2007-04-19 04:37:23 +02:00
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
2011-05-26 22:08:35 +02:00
|
|
|
|
2007-04-19 04:37:23 +02:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/osc*
|
|
|
|
%{python_sitelib}/*
|
2010-04-25 18:50:30 +02:00
|
|
|
%config %{_sysconfdir}/profile.d/osc.sh
|
|
|
|
%config %{_sysconfdir}/profile.d/osc.csh
|
2009-10-27 16:41:49 +01:00
|
|
|
%if 0%{?suse_version} > 1110
|
|
|
|
%dir %{_prefix}/lib/osc
|
2010-04-25 18:50:30 +02:00
|
|
|
%{_prefix}/lib/osc/complete
|
2009-10-27 16:41:49 +01:00
|
|
|
%else
|
2009-06-20 05:13:03 +02:00
|
|
|
%dir %{_prefix}/%{_lib}/osc
|
2010-04-25 18:50:30 +02:00
|
|
|
%{_prefix}/%{_lib}/osc/complete
|
2009-10-27 16:41:49 +01:00
|
|
|
%endif
|
2007-07-11 13:33:21 +02:00
|
|
|
%dir /var/lib/osc-plugins
|
2009-03-18 22:31:05 +01:00
|
|
|
%doc AUTHORS README TODO NEWS
|
2009-06-16 18:22:12 +02:00
|
|
|
%doc %_mandir/man1/osc.*
|
2007-04-19 04:37:23 +02:00
|
|
|
|
2011-05-26 22:08:35 +02:00
|
|
|
|
|
|
|
|
2007-04-19 04:37:23 +02:00
|
|
|
%changelog
|