Accepting request 533590 from openSUSE:Tools
1 OBS-URL: https://build.opensuse.org/request/show/533590 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/obs-service-tar_scm?expand=0&rev=45
This commit is contained in:
commit
30e2e6b73f
19
PKGBUILD
Normal file
19
PKGBUILD
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
pkgname=obs-service-tar_scm
|
||||||
|
pkgver=0.8.0.1507129410.0cb2d44
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="Source Service for the OpenSUSE Build Service (OBS)"
|
||||||
|
arch=('any')
|
||||||
|
url="https://github.com/openSUSE/obs-service-tar_scm"
|
||||||
|
license=('GPL3')
|
||||||
|
groups=('base-devel')
|
||||||
|
makedepends=('python2' 'python2-yaml' 'python2-dateutil' 'python2-lxml' 'python2-mock' 'python2-unittest2' 'bzr' 'git' 'mercurial' 'subversion' )
|
||||||
|
depends=('python2' 'python2-yaml' 'python2-dateutil' 'python2-argparse' 'cpio' 'git' 'bzr' 'mercurial' 'subversion' )
|
||||||
|
source=("obs-service-tar_scm-${pkgver}.tar.gz::https://github.com/openSUSE/obs-service-tar_scm/archive/v${pkgver}.tar.gz")
|
||||||
|
provides=('obs-service-tar')
|
||||||
|
sha256sums=('SKIP')
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||||
|
make DESTDIR="${pkgdir}" PREFIX=/usr install
|
||||||
|
}
|
||||||
|
|
@ -5,4 +5,4 @@
|
|||||||
<param name="url">git://github.com/M0ses/obs-service-tar_scm.git</param>
|
<param name="url">git://github.com/M0ses/obs-service-tar_scm.git</param>
|
||||||
<param name="changesrevision">b742dfc0e12755cf306a95439494b5bdde7c0c61</param></service><service name="tar_scm">
|
<param name="changesrevision">b742dfc0e12755cf306a95439494b5bdde7c0c61</param></service><service name="tar_scm">
|
||||||
<param name="url">git://github.com/openSUSE/obs-service-tar_scm.git</param>
|
<param name="url">git://github.com/openSUSE/obs-service-tar_scm.git</param>
|
||||||
<param name="changesrevision">af556cadb955aa9872293ea8d738d60f065e592c</param></service></servicedata>
|
<param name="changesrevision">750affe3712d0fccfbc7b9cab03d278de28f5543</param></service></servicedata>
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2969942d1a1e49c4aa6f26d6997acfbe2926709cdf19519f9ffcedb3eae6567d
|
|
||||||
size 61172
|
|
3
obs-service-tar_scm-0.8.0.1507129410.0cb2d44.tar.gz
Normal file
3
obs-service-tar_scm-0.8.0.1507129410.0cb2d44.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:74419067039042ee3b53a122c61662fbe9bc17ffd359de70fda28bf0880c40fa
|
||||||
|
size 59576
|
@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 11 06:48:27 UTC 2017 - adrian@suse.de
|
||||||
|
|
||||||
|
- Update to version 0.8.0.1507129410.0cb2d44:
|
||||||
|
* mention _none_ version string for people who need it for kiwi root archives for example
|
||||||
|
* git: Support url change
|
||||||
|
* change ordering so that latest change is on top
|
||||||
|
* also override timestamps of files in cpio
|
||||||
|
* Sort cpio file list
|
||||||
|
* [dist] fix spec file py_compile for fedora
|
||||||
|
* Sort tar file list
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jul 12 05:58:08 UTC 2017 - opensuse-packaging@opensuse.org
|
Wed Jul 12 05:58:08 UTC 2017 - opensuse-packaging@opensuse.org
|
||||||
|
|
||||||
|
@ -19,8 +19,8 @@
|
|||||||
%bcond_without obs_scm_testsuite
|
%bcond_without obs_scm_testsuite
|
||||||
|
|
||||||
Name: obs-service-tar_scm
|
Name: obs-service-tar_scm
|
||||||
%define version_unconverted 0.8.0.1499787575.2419460
|
%define version_unconverted 0.8.0.1507129410.0cb2d44
|
||||||
Version: 0.8.0.1499787575.2419460
|
Version: 0.8.0.1507129410.0cb2d44
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: An OBS source service: create tar ball from svn/git/hg
|
Summary: An OBS source service: create tar ball from svn/git/hg
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
@ -35,6 +35,14 @@ BuildRequires: bzr
|
|||||||
BuildRequires: git-core
|
BuildRequires: git-core
|
||||||
BuildRequires: mercurial
|
BuildRequires: mercurial
|
||||||
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
|
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
|
||||||
|
%define py_compile(O) \
|
||||||
|
find %1 -name '*.pyc' -exec rm -f {} \\; \
|
||||||
|
python -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %1 \
|
||||||
|
%{-O: \
|
||||||
|
find %1 -name '*.pyo' -exec rm -f {} \\; \
|
||||||
|
python -O -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %1 \
|
||||||
|
}
|
||||||
|
|
||||||
BuildRequires: PyYAML
|
BuildRequires: PyYAML
|
||||||
%else
|
%else
|
||||||
BuildRequires: python-PyYAML
|
BuildRequires: python-PyYAML
|
||||||
@ -135,7 +143,11 @@ resources and packages them.
|
|||||||
%setup -q -n obs-service-tar_scm-%version
|
%setup -q -n obs-service-tar_scm-%version
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
|
||||||
|
%py_compile .
|
||||||
|
%else
|
||||||
%py_compile %{buildroot}
|
%py_compile %{buildroot}
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR="%{buildroot}" PREFIX="%{_prefix}" SYSCFG="%{_sysconfdir}"
|
make install DESTDIR="%{buildroot}" PREFIX="%{_prefix}" SYSCFG="%{_sysconfdir}"
|
||||||
|
Loading…
Reference in New Issue
Block a user