-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgrinder.spec
194 lines (160 loc) · 8.03 KB
/
grinder.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
185
186
187
188
189
190
191
192
193
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: grinder
Version: 0.0.44
Release: 1%{?dist}
Summary: A tool synching content
Group: Development/Tools
License: GPLv2
URL: http://github.com/mccun934/grinder
Source0: http://mmccune.fedorapeople.org/grinder/grinder-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-setuptools
Requires: createrepo, python >= 2.4
Requires: PyYAML
Requires: python-pycurl
Requires: python-hashlib
%description
A tool for synching content from the Red Hat Network.
%prep
%setup -q -n grinder-%{version}
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{python_sitelib}/*egg-info/requires.txt
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README COPYING
%{_bindir}/grinder
%dir %{python_sitelib}/grinder
%{python_sitelib}/grinder/*
%{python_sitelib}/grinder-*.egg-info
%config(noreplace) %{_sysconfdir}/grinder/grinder.yml
%changelog
* Tue May 18 2010 Pradeep Kilambi <[email protected]> 0.0.44-1
- 593304 - Minor issue, visible python errors at the end of a kickstart sync
- adding a prefix of "grinder." to our logger instances ([email protected])
- 593074 - set the relative path based on primary xml ([email protected])
* Mon May 17 2010 Pradeep Kilambi <[email protected]> 0.0.43-1
-
* Fri May 14 2010 John Matthews <[email protected]> 0.0.42-1
- Updates for Package/Kickstart fetch to work with changes in BaseFetch Note:
RHN comm to https is currently broken, http is working ([email protected])
- Refactor BaseFtech to use pycurl so RHN and yum fetch use the same logic to
fetch and validate downloads ([email protected])
- refactor, remove rhncomm from BaseFetch ([email protected])
- Fix for kickstarts, need to keep filename same as what RHN uses (don't use
epoch in filename) ([email protected])
* Thu May 13 2010 Pradeep Kilambi <[email protected]> 0.0.40-1
- Adding python-hashlib dependency to grinder ([email protected])
- Adding validation for drpms fetch
* Wed May 12 2010 Pradeep Kilambi <[email protected]> 0.0.38-1
- log tracebacks for debug purposes ([email protected])
- RepoFecth now validates existing packages and only fetches new ones. Added a
new utils module for common calls ([email protected])
- fix typo for 'packages' instead of 'kickstarts' ([email protected])
- bz591120 - running grinder with -k and -K results in error
- move 'removeold' functionality to BaseSync, add in CLI option for 'removeold'
* Mon May 10 2010 John Matthews <[email protected]> 0.0.37-1
- fix for basePath being used when set in config file and cleanup of unused
"main" method ([email protected])
* Thu May 06 2010 John Matthews <[email protected]> 0.0.36-1
- add createRepo/updateRepo calls to syncPackages() ([email protected])
* Thu May 06 2010 Pradeep Kilambi <[email protected]> 0.0.35-1
- Adding support to fetch content by passing in ssl ca and content certs via
yum for metadata and pycurl to fetch the bits ([email protected])
* Wed May 05 2010 Mike McCune <[email protected]> 0.0.33-1
- copy repomd.xml to the repodata directory ([email protected])
- update for kickstart syncs ([email protected])
- add check for systemid and ensure we cleanup test cert/systemid
- adding unittests for RHNSync parsing configfile and reading options from
command line ([email protected])
- rename RHNContent to RHNFetch ([email protected])
- adding 'rhn' operation to GrinderCLI - options are initialized in order of
Defaults, Config File, CLI - basic package syncing has been tested - needs
exhaustive testing with different option combinations ([email protected])
- minor fixes after testing presto stuff ([email protected])
- Support to sync down delta rpms metadata and corresponding binaries for a
given repo if available. ([email protected])
- Fetch the repodata generically so we can support presto metadata if available
- some useful logging info on fetch ([email protected])
- including logrotate in logger class ([email protected])
- new Grinder CLI architecture with yum repo sync cli integrated and functional
- clean up ([email protected])
- Adding a module to support content fetch from a yum repo url. CLI integration
follows ([email protected])
* Thu Apr 08 2010 John Matthews <[email protected]> 0.0.32-1
- fixing typeError in log statement cauusing createrepo to fail
* Wed Apr 07 2010 John Matthews <[email protected]> 0.0.31-1
- 580082 - grinder -b /tmp/syncdir is not syncing channel to specified
basepath. ([email protected])
* Tue Apr 06 2010 John Matthews <[email protected]> 0.0.29-1
- wip for kickstart fetching ([email protected])
- Refactor ParallelFetch/PackageFetch code to get ready for Kickstart fetching
- add fetch of metadata for kickstarts ([email protected])
- add method for returning filtered channel labels ([email protected])
- bz572639 - add debug output for removeold and numOldPkgsKeep
- corrected typo ([email protected])
* Mon Mar 29 2010 John Matthews <[email protected]> 0.0.28-1
- small typo change ([email protected])
* Fri Mar 26 2010 Mike McCune <[email protected]> 0.0.27-1
- fixing condition when channel has no comps or update data
- Support for updateinfo.xml fetch and munge with existing createrepo data.
This is to make the errata data work in conjunction with yum security plugin
* Tue Mar 23 2010 Mike McCune <[email protected]> 0.0.25-1
- adding SyncReport to show # downloads, errors, etc.. ([email protected])
- add fetching of comps.xml to support yum "group" operations
* Mon Mar 22 2010 Mike McCune <[email protected]> 0.0.21-1
- 572663 - grinder command line arg "-P one" should throw non int exception for
parallel ([email protected])
- 572657 - please remove username password from grinder config
* Thu Mar 11 2010 Mike McCune <[email protected]> 0.0.20-1
- 572565 - Running grinder gives a Unable to parse config file message
- updating comment in config for how many previous packages to store
- typo fix ([email protected])
- Keep a configurable number of old packages & bz572327 fix bz572327 Running
grinder for a specific channel syncs that channel and the channels specified
in the config ([email protected])
* Wed Mar 10 2010 Mike McCune <[email protected]> 0.0.18-1
- fixing spacing ([email protected])
- 571452 - ParallelFetch create channel directory should be silent if the
directory already exists ([email protected])
* Thu Mar 04 2010 Mike McCune <[email protected]> 0.0.17-1
- add log statement to show if/where removeold package is working from
- add option to remove old RPMs from disk (jmatthews@virtguest-rhq-
server.localdomain)
* Wed Mar 03 2010 Mike McCune <[email protected]> 0.0.16-1
- update dir name for /etc/grinder ([email protected])
- add PyYAML to grinder.spec ([email protected])
- add yaml configuration file to setuptools (jmatthews@virtguest-rhq-
server.localdomain)
- adding yaml configuration file/parsing to grinder (jmatthews@virtguest-rhq-
server.localdomain)
- fixing paths and moving a bit forward ([email protected])
* Tue Mar 02 2010 Mike McCune <[email protected]> 0.0.14-1
- 569963 - Adding dependency on createrepo ([email protected])
- adding test hook (mmccune)
- Adding error handling for a system trying to run grinder without activating
* Fri Feb 26 2010 Mike McCune <[email protected]> 0.0.11-1
- Initial creation of RPM/specfile