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:
parent
910298bfe6
commit
93226b672f
@ -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
18
_service
Normal 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
4
_servicedata
Normal 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>
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:5b4efc1a276f5d950c2a138ca5b538468558ff2313c8e605489ca6e9df85b403
|
|
||||||
size 13714
|
|
3
python-rpm-macros-20181025.149a499.tar.bz2
Normal file
3
python-rpm-macros-20181025.149a499.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f674338c6a390a9ed38bcdcda828878ada99436aff00ab0f0617ccd9e933bb96
|
||||||
|
size 13596
|
@ -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
|
Wed Oct 24 07:20:44 UTC 2018 - sjamgade@suse.com
|
||||||
|
|
||||||
|
@ -12,20 +12,18 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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
|
Name: python-rpm-macros
|
||||||
Version: 2018.08.15.ada6d63
|
Version: 20181025.149a499
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: RPM macros for building of Python modules
|
Summary: RPM macros for building of Python modules
|
||||||
License: WTFPL
|
License: WTFPL
|
||||||
Group: Development/Tools/Other
|
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
|
Source: python-rpm-macros-%{version}.tar.bz2
|
||||||
Source100: README.packaging
|
|
||||||
Source101: update.sh
|
|
||||||
# Fedora compatibility
|
# Fedora compatibility
|
||||||
Provides: python2-rpm-macros
|
Provides: python2-rpm-macros
|
||||||
Provides: python3-rpm-macros
|
Provides: python3-rpm-macros
|
||||||
|
23
update.sh
23
update.sh
@ -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"
|
|
Loading…
Reference in New Issue
Block a user