-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 01/11/14 20:26, Thomas Goirand wrote: > On 11/01/2014 11:29 PM, Kashyap Chamarthy wrote: >> On Sat, Nov 01, 2014 at 09:13:21PM +0800, Thomas Goirand wrote: >>> Hi, >>> >>> I was wondering if some distribution OpenStack package >>> maintainers would be interested to have some cross-distribution >>> discussion on Friday, during the contributors sessions. >>> >>> I'll be happy to discuss with Ubuntu people, but not only. I'd >>> like to meet also guys working with RedHat and Gentoo. I'm sure >>> we may have some interesting things to share. >>> >>> >>> OpenStack release management team would also be welcome. >>> >>> If you are interested, please reply to this mail. >> >> You might also want to start an etherpad instance with some >> initial agenda notes and throw the URL here to guage interest. > > Here's the etherpad: > https://etherpad.openstack.org/p/cross_distro_talks > >> On a related note, a bunch of Fedora/RHEL/CentOS/Scientific >> Linux packagers are planning[1] to meetup at the summit to >> discuss RDO project packaging aspects, etc. >> >> [1] https://etherpad.openstack.org/p/RDO_Meetup_Summit > > Well, if you guys are only talking about RPM packaging, as I'm > doing only Debian stuff [1], I'm only mildly interested. If we're > going to talk more about packaging in general, then maybe. > > On 11/02/2014 01:45 AM, Adam Young wrote: >> Getting the whole "PBR version" issues cleared up would be huge. > > I'm not sure what issue you are talking about, as I believe > there's none. This has been discussed for about a year and a half > before we finally had the OSLO_PACKAGE_VERSION to play with, when > this was designed a few years ago. I'm now very happy about the way > PBR does things, and wouldn't like it to change anything. > Currently, what I do in Debian is (from the debian/rules file > included from openstak-pkg-tools): > > DEBVERS ?= $(shell dpkg-parsechangelog | sed -n -e 's/^Version: > //p') VERSION ?= $(shell echo '$(DEBVERS)' | sed -e > 's/^[[:digit:]]*://' -e 's/[-].*//') export > OSLO_PACKAGE_VERSION=$(VERSION)
Note that OSLO_PACKAGE_VERSION is not public. Instead, we should use PBR_VERSION: http://docs.openstack.org/developer/pbr/packagers.html#versioning > > You may not be familiar with dpkg-parsechangelog, so let me > explain. Basically, if my debian/changelog has on top 2014.2~rc2, > the debian/rules file will exports 2014.2~rc2 into the > OSLO_PACKAGE_VERSION shell variable before doing "python setup.py > install", and then PBR is smart enough to use that. > > I am not at all a RedHat packaging specialist, but from the old > time when I did some RPM porting from my Debian packages, I believe > that in your .spec file, this should translate into something like > this: > > %install export OSLO_PACKAGE_VERSION=%{version} %{__python} > setup.py install -O1 --skip-build --root %{buildroot} > > Then everything should be ok and PBR will become your friend. I > hope this helps and that I'm not writing any RPM packaging mistake! > :) > > Cheers, > > Thomas Goirand (zigo) > > [1] Here's the list of packages I maintain in Debian (only for > OpenStack): > https://qa.debian.org/developer.php?login=openstack-de...@lists.alioth.debian.org > > > > _______________________________________________ OpenStack-dev > mailing list OpenStack-dev@lists.openstack.org > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBCgAGBQJUlEp/AAoJEC5aWaUY1u57f7cH+wVU4GQ324bfHp01kp8aG1fh wIN6NoXnn9zuxtu1DcU+x+UhkPa9/nW61EPMJlHva+HVtmW4dY5obNSnMSP1l1cY cTgY660nwxZByheGCv97FfzFQnetuNZpJ4E7k05EzrwsyOuW8IBPYyPhaRKj18Je E5wVh6LqMQEYdrz0dWQ2YmuEkHHeOL4aNi/LCmNWP1vc5uaRTuXIIFIOz7dcvm/x tW/s4fAlBBWEsjiat/WYzbKSNyVYcJYXwpPTBaNAMGygRJwRp5gAYBHqgD6FpuEN i36hLQ6+dkDEMg0h3uHMU/UJ4qARhlZmRC/Hj9GMdDD9YGLLsDo/lzllm/iODWs= =TGl4 -----END PGP SIGNATURE----- _______________________________________________ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev