Accepting request 656934 from home:tbechtold:branches:devel:languages:python:Factory

- Update to version 1540475376.149a499:
  * add epoch while printing "Provides:"
- Update URL
- Add _service and use the tar_scm/recompress/set_version source
  services to update the package.
  Package updates can now be done with "osc service run"
- Drop README.packaging
- Drop update.sh . This is now handled via the source services

OBS-URL: https://build.opensuse.org/request/show/656934
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python-rpm-macros?expand=0&rev=53
This commit is contained in:
Tomáš Chvátal 2018-12-11 09:04:08 +00:00 committed by Git OBS Bridge
parent 910298bfe6
commit 93226b672f
8 changed files with 40 additions and 41 deletions

View File

@ -1,10 +0,0 @@
This file contains information for OpenBuildService packagers.
To update this package from git, run the file update.sh
It pulls the latest version from github, assigns a date-based version
number, removes previous tarball and creates a new one, inputs the
version number in the spec file, and notes the version bump in changelog.
In the future, changelog should also be maintained in git and auto-dumped
into the changes file.

18
_service Normal file
View File

@ -0,0 +1,18 @@
<services>
<service mode="disabled" name="tar_scm">
<param name="url">git://github.com/openSUSE/python-rpm-macros.git</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="revision">master</param>
<param name="versionformat">%cd.%h</param>
<param name="changesgenerate">enable</param>
<param name="filename">python-rpm-macros</param>
</service>
<service mode="disabled" name="recompress">
<param name="file">python-rpm-macros-*.tar</param>
<param name="compression">bz2</param>
</service>
<service mode="disabled" name="set_version">
<param name="basename">python-rpm-macros</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">git://github.com/openSUSE/python-rpm-macros.git</param>
<param name="changesrevision">149a4997decfa5704250f8a063333f4368d83c00</param></service></servicedata>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5b4efc1a276f5d950c2a138ca5b538468558ff2313c8e605489ca6e9df85b403
size 13714

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f674338c6a390a9ed38bcdcda828878ada99436aff00ab0f0617ccd9e933bb96
size 13596

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Mon Dec 10 20:09:43 UTC 2018 - opensuse-packaging@opensuse.org
- Update to version 1540475376.149a499:
* add epoch while printing "Provides:"
- Update URL
- Add _service and use the tar_scm/recompress/set_version source
services to update the package.
Package updates can now be done with "osc service run"
- Drop README.packaging
- Drop update.sh . This is now handled via the source services
-------------------------------------------------------------------
Wed Oct 24 07:20:44 UTC 2018 - sjamgade@suse.com

View File

@ -12,20 +12,18 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-rpm-macros
Version: 2018.08.15.ada6d63
Version: 20181025.149a499
Release: 0
Summary: RPM macros for building of Python modules
License: WTFPL
Group: Development/Tools/Other
Url: https://github.com/opensuse/multipython-macros
Url: https://github.com/opensuse/python-rpm-macros
Source: python-rpm-macros-%{version}.tar.bz2
Source100: README.packaging
Source101: update.sh
# Fedora compatibility
Provides: python2-rpm-macros
Provides: python3-rpm-macros

View File

@ -1,23 +0,0 @@
#!/bin/bash
GIT_URL=https://github.com/openSUSE/python-rpm-macros.git
SPEC_FILE_NAME=python-rpm-macros.spec
PREV_VERSION=$(sed -rn 's/^Version:\s+(.*)$/\1/p' $SPEC_FILE_NAME)
rm python-rpm-macros-$PREV_VERSION.tar.bz2
tmpdir=tmp.$RANDOM
git clone --depth=1 $GIT_URL $tmpdir
cd $tmpdir
cp packaging/* ..
VERSION=$(git log -n 1 --date=format:%Y.%m.%d --format=format:%cd.%h)
git archive --format=tar --prefix=python-rpm-macros-$VERSION/ HEAD \
| bzip2 -c > ../python-rpm-macros-$VERSION.tar.bz2
cd ..
rm -rf $tmpdir
sed -i -r 's/^(Version:\s+)(.*)$/\1'$VERSION'/' $SPEC_FILE_NAME
osc vc -m "version bump to $VERSION"