fix fedora build
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=188
This commit is contained in:
parent
2e2dae25cd
commit
bbea40d12d
@ -5,4 +5,4 @@
|
||||
<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="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
|
||||
|
||||
|
@ -19,8 +19,8 @@
|
||||
%bcond_without obs_scm_testsuite
|
||||
|
||||
Name: obs-service-tar_scm
|
||||
%define version_unconverted 0.8.0.1499787575.2419460
|
||||
Version: 0.8.0.1499787575.2419460
|
||||
%define version_unconverted 0.8.0.1507129410.0cb2d44
|
||||
Version: 0.8.0.1507129410.0cb2d44
|
||||
Release: 0
|
||||
Summary: An OBS source service: create tar ball from svn/git/hg
|
||||
License: GPL-2.0+
|
||||
@ -35,6 +35,14 @@ BuildRequires: bzr
|
||||
BuildRequires: git-core
|
||||
BuildRequires: mercurial
|
||||
%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
|
||||
%else
|
||||
BuildRequires: python-PyYAML
|
||||
@ -135,7 +143,11 @@ resources and packages them.
|
||||
%setup -q -n obs-service-tar_scm-%version
|
||||
|
||||
%build
|
||||
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
|
||||
%py_compile .
|
||||
%else
|
||||
%py_compile %{buildroot}
|
||||
%endif
|
||||
|
||||
%install
|
||||
make install DESTDIR="%{buildroot}" PREFIX="%{_prefix}" SYSCFG="%{_sysconfdir}"
|
||||
|
Loading…
Reference in New Issue
Block a user