Commit graph

113 commits

Author SHA1 Message Date
Adam Williamson
a116d503ad Correct and make less confusing the conditional Python macros
This was using 'python_sitelib' in a non-standard way (it got
defined to either python2_sitelib or python3_sitelib depending
on whether we're doing a python2 or python3 build). Igor saw
the uses of 'python_sitelib' and assumed it was just using the
old name for 'the python 2 sitelib' and changed them all to
'python2_sitelib'...which broke all Fedora builds.

This fixes that problem and renames the package's confusing
'python_sitelib' and 'pythonbin' so hopefully no-one will make
the same mistake in future.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-12-06 23:24:00 +01:00
Brian C. Lane
e6f4811e07 Drop unused fedora-cert Require line from tito.spec 2019-12-06 23:23:42 +01:00
Igor Gnatenko
71a861c2a8 python-devel → python2-devel
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-12-06 23:22:14 +01:00
Igor Gnatenko
cf56cf36ce %{python_sitelib} → %{python2_sitelib}
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-12-06 23:22:02 +01:00
Igor Gnatenko
632d0a4f5a Remove %clean section
None of currently supported distributions need that.
Last one was EL5 which is EOL for a while.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-12-06 23:20:55 +01:00
Jakub Kadlcik
3dbde91000 Use python3 on EPEL8 2019-12-02 00:25:43 +01:00
Miroslav Suchý
72e51fe833 disable macro in comment
macros are evaluated even in comments
2019-10-03 08:38:12 +02:00
Miroslav Suchý
f1bcf5c261 do not require obsoleted fedora-cert
fedora-cert does not exists on Fedora 31+
It has been obsoleted by fedora-packager, but not provided
  https://src.fedoraproject.org/rpms/fedora-packager/blob/master/f/fedora-packager.spec#_23
This make tito uninstallable on Fedora 31+.
2019-10-03 08:36:03 +02:00
Devan Goodwin
cc7e168011 Automatic commit of package [tito] release [0.6.11-1].
Created by command:

/usr/bin/tito tag
2017-12-07 09:57:27 -04:00
Neal Gompa
1906fbd900 Remove createrepo_c BR from spec
It's not even used while building the tito package...
2017-04-09 18:10:51 -04:00
Neal Gompa
cbaa09697f Use createrepo_c for creating rpm-md repos
createrepo_c is a faster and more correct implementation of
generating rpm repositories, used by Fedora, openSUSE, and Mageia
for creating official distro repositories. It is also used by COPR
for creating repositories for packages built through its system.
2017-04-01 18:27:19 -04:00
Devan Goodwin
b5597fc429 Automatic commit of package [tito] release [0.6.10-1].
Created by command:

/usr/bin/tito tag
2017-02-01 10:51:34 -04:00
Devan Goodwin
de14541103 Automatic commit of package [tito] release [0.6.9-1].
Created by command:

/usr/bin/tito tag
2017-01-09 12:13:08 -04:00
Devan Goodwin
21720cc9d2 Automatic commit of package [tito] release [0.6.8-1]. 2016-11-01 15:38:30 -03:00
Devan Goodwin
efe5b98498 Automatic commit of package [tito] release [0.6.7-1]. 2016-10-05 16:11:33 -03:00
Miroslav Suchý
c319032480 simplify spec 2016-05-13 13:50:38 +02:00
Miroslav Suchý
49949fe759 buildroot tag is not needed for ages 2016-05-13 13:50:38 +02:00
Miroslav Suchý
71a5078947 remove dependency on yum-utils
This was added in commit 9ce9442642 and is not actually neede.
Just because we print
   Failed build dependencies
   Please run 'yum-builddep %s' as root.

So it should be rather replaced by:
   Suggest: yum-utils
But that cannot be parsed on el6 and is in fact not needed on F23+ at all.
So it should be rather described by rich deps like
   Suggest: (yum-utils if yum) and (dnf-plugins-core if dnf)
But rich deps should not be used for now.

So lets remove it for now. So yum-utils can be safely retired in rawhide.
2016-04-20 14:39:58 +02:00
Devan Goodwin
79ed5505b4 Automatic commit of package [tito] release [0.6.6-1]. 2016-04-19 12:44:22 -03:00
Devan Goodwin
e851f18db4 Automatic commit of package [tito] release [0.6.5-1]. 2016-04-08 09:52:53 -03:00
Devan Goodwin
cc8a2a4920 Automatic commit of package [tito] release [0.6.4-1]. 2016-01-26 10:28:56 -04:00
Devan Goodwin
a455c4fcb0 Automatic commit of package [tito] release [0.6.3-1]. 2016-01-08 12:30:39 -04:00
Devan Goodwin
f61a04c36d Automatic commit of package [tito] release [0.6.2-1]. 2015-07-24 14:40:50 -03:00
Devan Goodwin
a455666d12 Automatic commit of package [tito] release [0.6.1-1]. 2015-07-20 11:20:34 -03:00
Devan Goodwin
2c33922df9 Automatic commit of package [tito] release [0.6.0-1]. 2015-06-12 15:46:31 -03:00
Devan Goodwin
477ded4f0e Update specfile for new README location in doc/. 2015-06-12 15:31:50 -03:00
Alex Wood
d73ab2d661 Replace old Perl script for munging RPM release number. 2015-06-10 18:31:36 -04:00
Alex Wood
d489dd9c3f Give Tito some color! 2015-06-04 15:51:09 -04:00
Alex Wood
2d73c8d230 Add support for Mead.
Tito can now build a project with Maven, expose the Maven artifacts to
a Cheetah template, and then build the SRPM (and RPM) using the
rendered template and the Maven artifacts.
2015-05-15 13:07:35 -04:00
Alex Wood
09d89eb4ef Fix tarball timestamps from git archive with Python.
Tito passes "git archive" a tree ID.  The "git archive" man page states:

    git archive behaves differently when given a tree ID versus when
    given a commit ID or tag ID. In the first case the current time
    is used as the modification time of each file in the archive.

Using the current time means that every time we build the source
tarball, the file fingerprint will change since the metadata in the
tarball changes.  We don't want that since build systems track the
fingerprint to see if the actual source has changed.

This process was previously handled in an enigmatic Perl script that
lacked any comments whatsoever.  Converting it to well-commented Python
makes the process less mysterious and speedier since Tito doesn't need
to shell out to Perl.
2015-05-15 13:07:34 -04:00
Devan Goodwin
245696d405 Merge pull request #176 from jflorian/develop
bash-completion for tito command
2015-05-14 15:44:22 -03:00
John Florian
59c8f361a9 New - bash-completion facilities
Here's an initial go at getting some bash-completion for the tito
command-line.  Module options are a union of those culled from both
"tito MODULE --help" and "man tito" -- there are discrepancies.  Some
options were deliberately omitted such as those documented as deprecated
or "avoid using this please".  All short options are also omitted as
their completion would not save any typing but would hinder the
accessibility of the longer options.
2015-05-06 14:51:37 -04:00
Dominic Cleal
3a1075c7bb Fixes macro initialisation on EL6, F22+
Use unversioned macros for EL6, don't reset python_sitelib on F22+ and
always use the Python binary determined for the OS, not python3 for the
shebang line.

Fixes #167, #168
2015-04-20 15:21:47 +01:00
Devan Goodwin
4091af9591 Merge pull request #157 from xsuchy/python3
Python3
2015-03-02 08:42:57 -04:00
Devan Goodwin
9a92485a6d Automatic commit of package [tito] release [0.5.6-1]. 2014-12-23 11:36:41 -04:00
Devan Goodwin
dcddbbfdfe Drop more test only requirements from spec. 2014-12-10 13:18:04 -04:00
Devan Goodwin
6b0d5c98a6 Drop the git-annex dependency.
Want to keep this as a soft dependency like brew/koji etc. You need it if you
intend to use that releaser/builder.
2014-12-10 13:13:36 -04:00
Devan Goodwin
40242ea438 Merge branch 'wildcards' of https://github.com/xsuchy/tito into xsuchy-wildcards
Conflicts:
	test/functional/singleproject_tests.py
2014-12-10 13:12:52 -04:00
Miroslav Suchý
0c66842f5c no need to gzip man pages, rpmbuild do that automatically
and side effect is that it can choose whatever archive method (e.d. xz)
2014-11-24 22:49:08 +01:00
Miroslav Suchý
270fe172c2 use python3 on Fedora 22 2014-11-24 22:44:58 +01:00
Miroslav Suchý
ea9496191f defattr is not needed
this is default and not needed unless we build for el4
2014-11-24 18:36:12 +01:00
Paul Morgan
4aeab5dcc1 add f19 to test harness to test conditional build deps
* fedora 19 does not have rpm-python3, thus we only test python2.
* assert that build deps are correct for fedora 19
2014-07-04 16:26:23 +00:00
Paul Morgan
ea7404d6a5 DRY up test harness to use spec file for build deps
Ensure build deps are consistent across the spec file and test harness.

Note: http://fedoraproject.org/wiki/HOWTOFindMissingBuildRequires
says that some packages should not be BuildRequires because
"they would occur too often" and "are considered the minimum build
environment." However, Docker changes the scope of that assumption
to keep docker images small.
2014-07-04 16:26:23 +00:00
Paul Morgan
b3e0827d2c add rpmdevtools as build dep for el5
9feb9cf4 added rpmdevtools as an install depedency;
it is also needed as a build dep for current functional tests.
2014-07-04 14:34:00 +00:00
Devan Goodwin
cdf54b6ec5 Merge branch 'bzflagcheck'
Conflicts:
	hacking/titotest-centos-5.9/Dockerfile
2014-06-23 14:50:27 -03:00
Devan Goodwin
bf19a130a7 Add support for checking bz flags. 2014-06-20 14:53:22 -03:00
Paul Morgan
cd0cc194be add build dependency for el5 and new functional tests
* asciidoc indirectly requires docbook-style-xsl on el6 and f20,
  but not on el5. Resolve failure to build tito with tito on el5:
  "I/O error : Attempt to load network entity"

* Resolve "egg missing file" on el5 due to busted symlinks
  from 20c4f1b7c0.

* Add functional test to build tito with itself in order to
  catch problems like the ones above.

Closes https://github.com/dgoodwin/tito/issues/133
2014-05-26 18:37:00 +00:00
Devan Goodwin
71c857add4 Automatic commit of package [tito] release [0.5.5-1]. 2014-05-16 13:04:40 -03:00
Devan Goodwin
24693f7584 Automatic commit of package [tito] release [0.5.4-1]. 2014-05-12 11:11:03 -03:00
Devan Goodwin
0ecdf60026 Automatic commit of package [tito] release [0.5.3-1]. 2014-05-12 08:52:17 -03:00