1
0
obs-service-tar_scm/obs-service-tar_scm.spec
Frank Schreiner e22c696d32 - Update to version 0.7.0.1492095435.eda090e:
* revision, repodir and repocachedir as attribute for TarSCM.<scm>
  * new class TarSCM.cli to make testing easier
  * testing script name more reliable
  * fixed arguments for singletask in case of snapcraft
  * refactored snapcraft code + first tests for snapcraft
  * added testcase for snapcraft finalize
  * split classes into several files
  * track module dependencies in requirements.txt
  * use unittest2 in Python 2.6
  * more testing for TarSCM.tasks
  * clone_dir/repodir/arch_dir(tar_dir)/args now attributes of scm objects
  * test case for save_run
  * major refactor of git cache handling
  * consolidation of archive.obscpio and archive.tar parameters
  * next test cases
  * unset CACHEDIRECTORY env variable in unit tests
  * update atime/mtime of repocachedir if already exists
  * prevent key errors when $HOME is not set
  * fix PEP8 problems and reenable PEP8 testing
  * keep checkout while running with osc
  * fix local checkout when running in osc
  * force remove of files while 'make clean'
  * fix: also exclude directories when called .git
  * fix problems with generatechanges when ~/.obs/tar_scm exists
  * initial appimage support
  * Provide version rewrite using a regex pattern and replacement.
  * new parameter --match-tag to filter tags
  * keep .gitlab/.github directories

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=161
2017-04-13 15:15:45 +00:00

174 lines
5.2 KiB
RPMSpec

#
# spec file for package obs-service-tar_scm
#
# Copyright (c) 2017 SUSE LINUX 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/
#
%bcond_without obs_scm_testsuite
Name: obs-service-tar_scm
%define version_unconverted 0.7.0.1492095435.eda090e
Version: 0.7.0.1492095435.eda090e
Release: 0
Summary: An OBS source service: checkout or update a tar ball from svn/git/hg
License: GPL-2.0+
Group: Development/Tools/Building
Url: https://github.com/openSUSE/obs-service-tar_scm
Source: %{name}-%{version}.tar.gz
# Fix build on Ubuntu by disabling mercurial tests, not applied in rpm
# based distributions
#Patch0: 0001-Debianization-disable-running-mercurial-tests.patch
BuildRequires: bzr
BuildRequires: git-core
BuildRequires: mercurial
BuildRequires: python >= 2.6
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: PyYAML
%else
BuildRequires: python-PyYAML
%endif
BuildRequires: python-dateutil
BuildRequires: python-lxml
BuildRequires: python-mock
BuildRequires: subversion
Requires: bzr
Requires: git-core
Requires: mercurial
Requires: obs-service-obs_scm-common = %version-%release
Requires: subversion
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
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-obs_scm
Summary: Creates a obs cpio archive from a remote SCM resource like git, subversion or cvs
Group: Development/Tools/Building
Provides: obs-service-tar_scm:/usr/lib/obs/service/obs_scm.service
Requires: bzr
Requires: git-core
Requires: mercurial
Requires: obs-service-obs_scm-common = %version-%release
Requires: subversion
%description -n obs-service-obs_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
%build
%install
make install DESTDIR="%{buildroot}" PREFIX="%{_prefix}" SYSCFG="%{_sysconfdir}"
%if %{with obs_scm_testsuite}
%if 0%{?suse_version} >= 1220
%check
# 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
%endif
%endif
%files
%defattr(-,root,root)
%{_prefix}/lib/obs/service/tar_scm.service
%files -n obs-service-obs_scm-common
%defattr(-,root,root)
%dir %{_prefix}/lib/obs
%dir %{_prefix}/lib/obs/service
%{_prefix}/lib/obs/service/TarSCM
%{_prefix}/lib/obs/service/tar_scm
%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-obs_scm
%defattr(-,root,root)
%{_prefix}/lib/obs/service/obs_scm
%{_prefix}/lib/obs/service/obs_scm.service
%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