forked from xenserver/planex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
planex.spec
185 lines (158 loc) · 7.64 KB
/
planex.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
Summary: RPM build tool
Name: planex
Version: 0.18.0
Release: 1%{?dist}
URL: http://github.com/xenserver/planex
Source0: http://github.com/xenserver/planex/archive/v%{version}/%{name}-%{version}.tar.gz
License: LGPLv2.1
BuildArch: noarch
BuildRequires: python-setuptools
Requires: createrepo
Requires: git
Requires: make
Requires: mock
Requires: python-argcomplete
Requires: python-argparse
Requires: python-setuptools
Requires: python-requests
Requires: rpm-build
Requires: yum-plugin-priorities
%description
Planex is a tool for building collections of RPMs.
%prep
%setup -q
%build
sed -i "s/\(version='\)[^'\"]\+/\1%{version}-%{release}/g" setup.py
%{__python} setup.py build
%install
%{__python} setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
%{__install} -D -m 644 planex/planex.bash %{buildroot}%{_sysconfdir}/bash_completion.d/planex.bash
%{__install} -D -m 644 planex/Makefile.rules %{buildroot}%{_datadir}/planex/Makefile.rules
%files
%doc README.md
%doc LICENSE
%doc CHANGES
%{_bindir}/planex-build-mock
%{_bindir}/planex-clone
%{_bindir}/planex-depend
%{_bindir}/planex-extract
%{_bindir}/planex-fetch
%{_bindir}/planex-init
%{_bindir}/planex-make-srpm
%{_bindir}/planex-manifest
%{_bindir}/planex-patchqueue
%{python_sitelib}/planex
%{python_sitelib}/planex-*.egg-info
%{_datadir}/planex/Makefile.rules
%config%{_sysconfdir}/bash_completion.d/planex.bash
%changelog
* Thu Feb 23 2017 Euan Harris <[email protected]> - 0.18.0-1
- planex-clone-sources has been removed and replaced by planex-clone
- planex-extract: Remove support for heavyweight branches
- Makefile.rules: It is now possible to override the Mock configuration
used to build packages by defining the MOCK_CONFIGDIR and MOCK_ROOT
variables
* Mon Feb 20 2017 Euan Harris <[email protected]> - 0.17.0-1
- planex-clone: Add ability to clone repositories with patchqueues
* Tue Feb 7 2017 Euan Harris <[email protected]> - 0.16.2-1
- planex-clone: Fix typo in Jenkinsfile fragment template
* Mon Feb 6 2017 Euan Harris <[email protected]> - 0.16.1-1
- planex-clone: Allow list of pin files to be empty
* Mon Feb 6 2017 Euan Harris <[email protected]> - 0.16.0-1
- planex-build-mock: Add --init option to pre-warm root cache
* Wed Feb 1 2017 Euan Harris <[email protected]> - 0.15.1-1
- git library: Add current_branch function
* Thu Jan 12 2017 Euan Harris <[email protected]> - 0.15.0-1
- planex-patchqueue: If a pin specifies a remote URL, look for a local
clone of the repository
- planex-clone: Add utility to clone repositories listed in pin files
* Thu Jan 12 2017 Euan Harris <[email protected]> - 0.14.0-1
- planex-mock: enable concurrent package builds
* Wed Jan 4 2017 Euan Harris <[email protected]> - 0.13.0-1
- planex-mock: automatically generate loopback repository configuration
- planex-cache has been removed
* Tue Jan 3 2017 Euan Harris <[email protected]> - 0.12.0-1
- Docker: allow passwordless sudo for the build user
- planex-patchqueue: Add a new utility to create a patchqueue based on
a spec file and a locally checked-out Git repository
- planex-pin has been removed and replaced by planex-patchqueue
- planex-makesrpm: Do not extract all files in source directories
- spec: Report local sources and patches separately
- makesrpm: Extract patches and sources separately
- Add utility classes for dealing with links, tarballs and patchqueues
- planex-makesrpm: Require 'patches' to be declared explicitly in
link files
- Tools which accepted the --topdir and --dist arguments now accept
rpmbuild-style --define arguments
- planex-extract: Do not unpack patches or rewrite spec files
- planex-makesrpm: Consume the patch queue tarball directly, rather
than requiring it to be unpacked
- Makefile.rules: Don't symlink SOURCES into _build, and keep local
and downloaded sources separate
* Thu Nov 10 2016 Euan Harris <[email protected]> - 0.11.0-1
- planex-clone-sources: Add a tool to check out source repositories
- planex-manifest: Add a tool to record repository hashes
- planex-build-mock: Add a wrapper around mock
- planex-container: Add a wrapper to run planex in a Docker container
- planex-extract: Don't prepend package name to patch filename
- Add utility classes for links, patch queues, repositories and tarballs
- Makefile.rules: Fail if _build/deps can't be rebuilt
* Mon Oct 03 2016 Euan Harris <[email protected]> - 0.10.0-1
- Several commands can now accept multiple --define arguments to
set or override RPM macro definitions
- planex-depend: Generate short name targets for SRPMS
- planex-depend: Remove --ignore and --ignore-from flags
- planex-extract: prepend manifest of sources (and branch variable)
- Makefile.rules: make _build/SPECS a directory, not a symlink
* Mon Oct 03 2016 Euan Harris <[email protected]> - 0.9.0-2
- Install Makefile.rules in /usr/share/planex for backwards compatibility
* Thu Sep 08 2016 Euan Harris <[email protected]> - 0.9.0-1
- Add planex-extract, which extracts and processes files from tarballs
- Planex-fetch: Add support for fetching over FTP and for tar.xz files
- planex-fetch: Teach planex-planex-fetch about links
- planex-fetch: Add support for fetching specs and sources from remote
repositories
- planex-make-srpm: Remove patchqueue expansion, now handled by
planex-extract
- planex-make-srpm: Don't create _build directory in temporary working
space
- Makefile.rules: Don't link SRPMS to _build/SRPMS
- Docker: Rewrite Dockerfile to reduce image size and support Docker Hub
* Tue Jul 26 2016 Euan Harris <[email protected]> - 0.8.0-1
- planex-make-srpm: Add a wrapper around rpmbuild which expands patchqueue
repositories as inline patches in the SRPM
- Add initial support for running Planex in a Docker container
- Remove unmaintained, experimental Debian package-generation scripts
* Mon Mar 14 2016 Euan Harris <[email protected]> 0.7.3-1
- planex-fetch: Handle Source URLs with fragments correctly
* Tue Nov 10 2015 Euan Harris <[email protected]> - 0.7.2-1
- planex-pin: It is now possible to pin to a bare Git repository
- planex-cache: Use yum configuration but not mock configuration when
calculating hash
- planex-cache: When writing back to the cache, do not exit if the binary
package already exists
- Locally-built packages now override newer packages of the same name in
distribution repositories
* Tue May 26 2015 Euan Harris <[email protected]> - 0.7.1-1
- planex-cache: Update cached files' timestamps on cache hits
- planex-cache: Print mock's logs if it fails
- planex-pin: Improve formatting of the pins file
* Thu Apr 23 2015 Euan Harris <[email protected]> - 0.7.0-1
- Build products are now written to the _build subdirectory by default
- Add planex-pin, which overrides a package's sources with a local repo
- Add planex-init, which sets up the planex environment
- Add planex-fetch, replacing planex-downloader
- Remove planex-configure, which is superseded by planex-pin
- Rename Makefile.common to Makefile.rules
* Wed Jan 21 2015 Euan Harris <[email protected]> - 0.6.0-1
- planex-specdep is now known as planex-depend
- planex-depend: By default, produce packages for the host system
- planex-depend: Add a --topdir parameter to set rpmbuild working directory
- planex-depend, planex-configure: Package name checking is now optional
- planex-configure: SRPM building is now optional
- planex-clone, planex-configure: Default configuration directory is now '.'
- planex-cache: Support multiple cache locations
- planex-depend: Add support for git:// and hg:// source URLs
- Add Makefile.common, containing useful generic make rules
* Fri Oct 31 2014 Jon Ludlam <[email protected]> - 0.5.0-1
- Initial package