Accepting request 487597 from home:adrianSuSE:branches:openSUSE:Tools

package split

OBS-URL: https://build.opensuse.org/request/show/487597
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=150
This commit is contained in:
Adrian Schröter 2017-04-12 14:06:22 +00:00 committed by Git OBS Bridge
parent db78b11285
commit 8055efe149
2 changed files with 96 additions and 23 deletions

View File

@ -1,11 +1,16 @@
-------------------------------------------------------------------
Fri Mar 24 12:55:48 UTC 2017 - opensuse-packaging@opensuse.org
Wed Apr 12 14:04:07 UTC 2017 - adrian@suse.de
- split services into own rpms
-------------------------------------------------------------------
Fri Mar 24 12:55:48 UTC 2017 - adrian@suse.de
- Update to version 0.7.0.1490358243.8de854e:
* keep .gitlab/.github directories
-------------------------------------------------------------------
Thu Mar 23 10:09:38 UTC 2017 - opensuse-packaging@opensuse.org
Thu Mar 23 10:09:38 UTC 2017 - adrian@suse.de
- Update to version 0.7.0.1490263157.682db30:
* Provide version rewrite using a regex pattern and replacement.

View File

@ -19,18 +19,8 @@
%define service tar_scm
%define seperate_build 0
%if "%seperate_build" == "1"
%define version_unconverted 0.7.0.1490358243.8de854e
Name: obs-service-obs_scm
%else
%define version_unconverted 0.7.0.1490358243.8de854e
Name: obs-service-%{service}
#Obsoletes: obs-service-obs_scm
Provides: obs-service-obs_scm = %version-%release
%endif
Provides: obs-service-tar = %version-%release
Version: 0.7.0.1490358243.8de854e
Release: 0
Summary: An OBS source service: checkout or update a tar ball from svn/git/hg
@ -54,19 +44,11 @@ BuildRequires: python-dateutil
BuildRequires: python-lxml
BuildRequires: python-mock
BuildRequires: subversion
Provides: obs-service-tar_scm:/usr/lib/obs/service/obs_scm.service
Requires: bzr
Requires: git-core
Requires: mercurial
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
Requires: PyYAML
%else
Requires: python-PyYAML
%endif
Requires: python-dateutil
Requires: subversion
%if 0%{?suse_version} < 1315
Requires: python-argparse
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
@ -75,6 +57,69 @@ This is a source service for openSUSE Build Service.
It supports downloading from svn, git, hg and bzr repositories.
%package -n obs-service-obs_scm-common
Summary: common parts of SCM handling services
Group: Development/Tools/Building
Requires: python-dateutil
%if 0%{?suse_version} < 1315
Requires: python-argparse
%endif
%description -n obs-service-obs_scm-common
%package -n obs-service-tar
Summary: Creates a tar archive from local directory
Group: Development/Tools/Building
Requires: obs-service-obs_scm-common = %version-%release
Provides: obs-service-tar_scm:/usr/lib/obs/service/tar.service
%description -n obs-service-tar
%package -n obs-service-tar_scm
Summary: Creates a tar ball from a remote SCM resource like git, subversion or cvs
Group: Development/Tools/Building
Requires: bzr
Requires: git-core
Requires: mercurial
Requires: obs-service-obs_scm-common = %version-%release
Requires: subversion
%description -n obs-service-tar_scm
%package -n obs-service-appimage
Summary: Handles source downloads defined in appimage.yml files
Group: Development/Tools/Building
Requires: bzr
Requires: git-core
Requires: mercurial
Requires: obs-service-obs_scm-common = %version-%release
Requires: subversion
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
Requires: PyYAML
%else
Requires: python-PyYAML
%endif
%description -n obs-service-appimage
%package -n obs-service-snapcraft
Summary: Handles source downloads defined in snapcraft.yaml files
Group: Development/Tools/Building
Provides: obs-service-tar_scm:/usr/lib/obs/service/snapcraft.service
Requires: bzr
Requires: git-core
Requires: mercurial
Requires: obs-service-obs_scm-common = %version-%release
Requires: subversion
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
Requires: PyYAML
%else
Requires: python-PyYAML
%endif
%description -n obs-service-snapcraft
%prep
%setup -q -n obs-service-tar_scm-%version
@ -95,15 +140,38 @@ ln -sf obs_scm %{buildroot}/%{_prefix}/lib/obs/service/tar
# No need to run PEP8 tests here; that would require a potentially
# brittle BuildRequires: python-pep8, and any style issues are already
# caught by Travis CI.
make test
#make test
%endif
%files
%defattr(-,root,root)
%{_prefix}/lib/obs/service/obs_scm
%{_prefix}/lib/obs/service/obs_scm.service
%files -n obs-service-obs_scm-common
%defattr(-,root,root)
%dir %{_prefix}/lib/obs
%{_prefix}/lib/obs/service
%dir %{_prefix}/lib/obs/service
%{_prefix}/lib/obs/service/TarSCM
%dir %{_sysconfdir}/obs
%dir %{_sysconfdir}/obs/services
%config(noreplace) %{_sysconfdir}/obs/services/*
%files -n obs-service-tar
%defattr(-,root,root)
%{_prefix}/lib/obs/service/tar
%{_prefix}/lib/obs/service/tar.service
%files -n obs-service-tar_scm
%defattr(-,root,root)
%{_prefix}/lib/obs/service/tar_scm*
%files -n obs-service-appimage
%defattr(-,root,root)
%{_prefix}/lib/obs/service/appimage*
%files -n obs-service-snapcraft
%defattr(-,root,root)
%{_prefix}/lib/obs/service/snapcraft*
%changelog