summaryrefslogtreecommitdiff
path: root/packages/brpm
AgeCommit message (Collapse)Author
2018-05-23packages/brpm: Get proper dependencies for cmdline distro.Scott Moser
When invoked with '--distro=suse', the packages that would be attempted for installation would be from redhat. We just were not pasing the args.distro through. That is fixed here.
2017-06-13pkg build ci: Add make ci-deps-<distro> target to install pkgsChad Smith
This change adds a couple of makefile targets for ci environments to install all necessary dependencies for package builds and test runs. It adds a number of arguments to ./tools/read-dependencies to facilitate reading pip dependencies, translating pip deps to system package names and optionally installing needed system-package dependencies on the local system. This relocates all package dependency and translation logic into ./tools/read-dependencies instead of duplication found in packages/brpm and packages/bddeb. In this branch, we also define buildrequires as including all runtime requires when rendering cloud-init.spec.in and debian/control files because our package build infrastructure will also be running all unit test during the package build process so we need runtime deps at build time. Additionally, this branch converts packages/(redhat|suse)/cloud-init.spec.in from cheetah templates to jinja to allow building python3 envs.
2016-08-08For upstream snapshot versions do not modify git-describe output.Scott Moser
For upstream version directly use the output of git-describe (X.Y.Z-number.gHASH) rather than rather than changing it to (X.Y.Z+number.gHASH). The rpm version does not allow '-' in Version, so we create and use rpm_upstream_version in the rpm spec file. That is of format: X.Y.Z+number.gHASH
2016-08-05adjust tools and version information.Scott Moser
upstream snapshots are versioned in the format 'X.Y.Z+<distance>.g<commit>' where X.Y.Z are major, minor, and micro. Distance is number of commits since last annotated tag, and commit is the git commit. bddeb and brpm will now create and use the "upstream version" like above. Things changed here: - tools/make-tarball update cloudinit/version.py to contain the full version support --output support '--long' to always create the long format version string. - bddeb: - use quilt debian source format - use read-version and long version in changelog. - brpm: - change to use read-version and upstream long version in the spec. - flake8 changes - tools/read-version - read version from git or from cloudinit/version. - provide --json output with more nicely formed data.
2016-08-03Update build tools to work with gitLars Kellogg-Stedman
- Update HACKING.rst to include git instructions - update MANIFEST.in and .gitignore to ignore git-related things - replaced tarball generation scripts with git-based script - have the spec files correctly identify themselves as cheetah templates - make brpm work with git
2016-07-15Avoid depending on argparse in 2.7 or greaterJoshua Harlow
Its not needed since its a built-in for these versions so we can just skip it for any newer rpm building in the first place. LP: #1603533
2015-05-19packages/brpm: fix for oauth library nameScott Moser
brpm was broken when change from oauth to oauthlib.
2015-04-08Correcting the pkg-name to 'oauthlib' from 'oauth'Surojit Pathak
'make rpm' for 'redhat' distro was failing, as the requirement for dependency was not found, otherwise.
2015-01-21Largely merge lp:~harlowja/cloud-init/py2-3 albeit manually because it seemedBarry Warsaw
to be behind trunk. `tox -e py27` passes full test suite. Now to work on replacing mocker.
2014-10-13Show the spec file contentJoshua Harlow
2014-07-21add package info for bddeb/brpmScott Moser
2014-01-17more boto removal. move httpretty from 'Requires'Scott Moser
the Requires would get that string rendered into the package's Depends/Requires (rather than BuildDepends/BuildRequires). We should have BuildDepends/BuildRequires too, but since trunk's package builds do not run 'make test', this isn't a big deal. This also adds 'test-requires' for httpretty.
2013-07-29add 'pyserial' to bddeb and bdrpmScott Moser
2013-07-24update dependencies for jsonpatchScott Moser
2013-06-27Add support for building a SLES rpm packageJuerg Haefliger
2013-03-26fix brpm and bddeb by knowing about 'python-requests'Scott Moser
2012-11-13Even when using boto < 2.6 force the unlazying to occurScott Moser
It seems like its possible that boto 2.5.2 and below have the lazy loading metadata dictionary so as a precaution we will always take the hit of unlazying the metadata dictionary by traversing it which in the non-lazy dictionary case has no effect (its marginal). This also removes the need to check the boto version and the dependency on setup tools just for this case.
2012-11-13add dependency for 'pkg_resources'Scott Moser
2012-11-13sort PKG_MP entriesScott Moser
2012-10-08Make the subrelease a new k/v entry that is handledJoshua Harlow
differently in the rpm spec file template instead of being joined with the release.
2012-10-08Add the ability to have a 'private'Joshua Harlow
release number which can be to increment cloud-init while still maintaining the 'major' cloud-init version number from bzr.
2012-10-05Ensure stderr newline.Joshua Harlow
2012-10-05Only allow the first missing version toJoshua Harlow
use the datetime.now(), the others get a warning message.
2012-10-05Leave off creating fake headers for unknown versionsJoshua Harlow
since this causes rpmbuild to croak with errors like 'changelog not in descending chronological order'.
2012-09-25Clean doesn't seem needed.Joshua Harlow
2012-09-25Add a top_dir define.Joshua Harlow
2012-09-25Fix syntax error.Joshua Harlow
2012-09-25Add the ability to pass patches to theJoshua Harlow
rpm builder utility.
2012-07-09Revert back to using cheetah + adjust resultant code + templatesJoshua Harlow
At this point there is a mixture of "double hash" cheetah comments and '#*' cheetah comments.
2012-07-09brpm: Add printouts which match the 'bddeb' package builder.Joshua Harlow
2012-07-09include ~bzr in make-tarball output tarball and top level dirJoshua Harlow
output of 'make-tarball' now is tarball with name formatted as: cloud-init-$VERSION~bzr$REVNO.tar.gz Instead of cloud-init-$VERSION-$REVNO.tar.gz The former is desireable for apt at least as the '~' is understood to mean less than. This merges revno 569 and 570 from lp:~harlowja/cloud-init/rework
2012-07-09get 'brpm' working again. update make-tarball to have a top level dir.Joshua Harlow
2012-07-09rework packaging tools to find the right cloud-init topdirJoshua Harlow
This also fixes 'brpm' to address --init-system change that smoser made to setup.py before the large 'rework' merge.
2012-07-06Got this working for 'brpm' again.Joshua Harlow
2012-07-06Reworking these to look attempt to find the right parent directory, as well Joshua Harlow
as adjustments due to sysvinit rename.
2012-07-06setup.py: rename "daemon type" to "init system"Scott Moser
This brings with it other changes, and also makes an install install all of the requisite init files. (ie, cloud-init needs the -local and the non-local)
2012-07-03Add the ability to have setup.py have a CLI option that specifies the daemon ↵Joshua Harlow
type which then later affects the installation of certain config files, which then can be extracted during package creation as needed.
2012-07-021. Fixup the setup.py to not include custom startup scripts, let the ↵Joshua Harlow
packaging solutions handle these 2. Get the cloud-init specfile working for the init.d case (with the right postun and post and install sections) a. It works!!!
2012-06-28Fix chopping off the wrong folers, oopsJoshua Harlow
2012-06-28Syntax error fixupJoshua Harlow
2012-06-28Remove the keep all the init directories which didn't workJoshua Harlow
2012-06-281. Match the variable names with what they are used forJoshua Harlow
2. Create a set of directories that need to be kept for the different boot modes.
2012-06-28Continue working on removing and allowing the correct files in the spec ↵Joshua Harlow
generated file
2012-06-27Take only the files in the directory, not the directory itself (this causes ↵Joshua Harlow
issues when installing)
2012-06-261. Add 'verbose' options to both.Joshua Harlow
2. Fixup the debian building after util changes
2012-06-261. Fix old info call.Joshua Harlow
2012-06-26Shrink these down by using the cloudinit utils.Joshua Harlow
2012-06-261. Remove unused return argumentsharlowja
2. Adjust info statement to reflect better what it is doing.
2012-06-26Add in the ability to choose which type of boot type the rpm should haveharlowja
and adjust the specfile that is generated to remove the unwanted config files for the types which were not selected.
2012-06-26Just use the base changelog.Joshua Harlow