-
Notifications
You must be signed in to change notification settings - Fork 11
/
rpg.spec
475 lines (400 loc) · 17.6 KB
/
rpg.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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
Name: rpg
Version: 0.0.5
Release: 1%{?snapshot}%{?dist}
Summary: RPM Package Generator
License: GPLv2
URL: https://github.com/rh-lab-q/rpg
Source0: https://github.com/rh-lab-q/%{name}/archive/%{name}-%{version}-1.tar.gz
BuildRequires: cmake
BuildRequires: python3-qt5
BuildRequires: qt5-qtbase-gui
BuildArch: noarch
Requires: python3-qt5
Requires: qt5-qtbase-gui
Recommends: python3-argcomplete
Requires: python3-rpg = %{version}-%{release}
Recommends: rpg-plugin-c = %{version}-%{release}
Recommends: rpg-plugin-python = %{version}-%{release}
Recommends: rpg-plugin-files-to-pkgs = %{version}-%{release}
Recommends: rpg-plugin-find-file = %{version}-%{release}
Recommends: rpg-plugin-find-library = %{version}-%{release}
Recommends: rpg-plugin-find-patch = %{version}-%{release}
Recommends: rpg-plugin-find-translation = %{version}-%{release}
Recommends: rpg-plugin-autotools = %{version}-%{release}
Recommends: rpg-plugin-cmake = %{version}-%{release}
Recommends: rpg-plugin-make = %{version}-%{release}
Recommends: rpg-plugin-maven = %{version}-%{release}
Recommends: rpg-plugin-setuptools = %{version}-%{release}
Recommends: rpg-plugin-bash-command = %{version}-%{release}
%package plugin-c
Summary: C plugin for RPG
BuildRequires: coreutils
BuildRequires: makedepend
Requires: python3 >= 3.4
Requires: makedepend
Requires: coreutils
Requires: python3-rpg = %{version}-%{release}
%package plugin-python
Summary: Python plugin for RPG
BuildRequires: python3-dnf
Requires: python3 >= 3.4
Requires: python3-dnf
Requires: python3-rpg = %{version}-%{release}
%package plugin-find-to-pkgs
Summary: Find to package plugin for RPG
BuildRequires: python3-dnf
Requires: python3 >= 3.4
Recommends: python3-dnf
Requires: python3-rpg = %{version}-%{release}
%package plugin-find-file
Summary: Find file plugin for RPG
Requires: python3 >= 3.4
Requires: python3-rpg = %{version}-%{release}
%package plugin-find-library
Summary: Find library plugin for RPG
Requires: python3 >= 3.4
Requires: python3-rpg = %{version}-%{release}
%package plugin-find-patch
Summary: Find patch plugin for RPG
Requires: python3 >= 3.4
Requires: python3-rpg = %{version}-%{release}
%package plugin-find-translation
Summary: Find translation plugin for RPG
Requires: python3 >= 3.4
Requires: python3-rpg = %{version}-%{release}
%package plugin-autotools
Summary: Autotools plugin for RPG
Requires: python3 >= 3.4
Requires: python3-rpg = %{version}-%{release}
%package plugin-cmake
Summary: Cmake plugin for RPG
Requires: python3 >= 3.4
Requires: python3-rpg = %{version}-%{release}
%package plugin-make
Summary: Make plugin for RPG
Requires: python3 >= 3.4
Requires: python3-rpg = %{version}-%{release}
%package plugin-maven
Summary: Maven plugin for RPG
BuildRequires: python3-javapackages
Requires: maven-local
Requires: python3 >= 3.4
Requires: python3-javapackages
Requires: python3-rpg = %{version}-%{release}
%package plugin-setuptools
Summary: Setuptools plugin for RPG
Requires: python3 >= 3.4
Requires: python3-rpg = %{version}-%{release}
%package plugin-bash-command
Summary: Bash command plugin for RPG
Requires: python3 >= 3.4
Requires: python3-rpg = %{version}-%{release}
%package -n python3-rpg
Summary: Python3 interface for RPG.
%{?python_provide:%python_provide python3-rpg}
BuildRequires: python3-nose
BuildRequires: python3-devel
BuildRequires: python3 >= 3.4
BuildRequires: python3-sphinx
BuildRequires: python3-hawkey
BuildRequires: coreutils
BuildRequires: rpmdevtools
BuildRequires: python3-copr >= 1.58
BuildRequires: mock
BuildRequires: file
Requires: rpmdevtools
Requires: python3 >= 3.4
Requires: mock
Requires: coreutils
Requires: file
Recommends: python3-dnf
Recommends: python3-copr >= 1.58
Recommends: python3-argcomplete
%description -n python3-rpg
Python3 interface for RPG.
%description plugin-c
C plugin for RPG
%description plugin-python
Python plugin for RPG
%description plugin-find-to-pkgs
Find to package plugin for RPG
%description plugin-find-file
Find file plugin for RPG
%description plugin-find-library
Find library plugin for RPG
%description plugin-find-patch
Find patch plugin for RPG
%description plugin-find-translation
Find translation plugin for RPG
%description plugin-autotools
Autotools plugin for RPG
%description plugin-cmake
Cmake plugin for RPG
%description plugin-make
Make plugin for RPG
%description plugin-maven
Maven plugin for RPG
%description plugin-setuptools
Setuptools plugin for RPG
%description plugin-bash-command
Bash command plugin for RPG
%description
RPG is tool, that guides people through the creation of a RPM
package. RPG makes packaging much easier due to the automatic analysis of
packaged files. Beginners can get familiar with packaging process or the
advanced users can use our tool for a quick creation of a package.
%prep
%setup -q -n rpg-%{version}
%build
%cmake . -DWITH_MAN=1 -DDISABLE_MOCK_TEST=1 -DDISABLE_CONNECTION_TEST=1
make doc-man
%install
%make_install
%check
make ARGS="-V" test
%files
%{_mandir}/man8/rpg.8.gz
%{_bindir}/rpg
%files plugin-c
%{python3_sitelib}/rpg/plugins/lang/c.py
%{python3_sitelib}/rpg/plugins/lang/__pycache__/c*
%files plugin-python
%{python3_sitelib}/rpg/plugins/lang/python.py
%{python3_sitelib}/rpg/plugins/lang/__pycache__/python*
%files plugin-find-to-pkgs
%{python3_sitelib}/rpg/plugins/misc/files_to_pkgs.py
%{python3_sitelib}/rpg/plugins/misc/__pycache__/files_to_pkgs*
%files plugin-find-file
%{python3_sitelib}/rpg/plugins/misc/find_file.py
%{python3_sitelib}/rpg/plugins/misc/__pycache__/find_file*
%files plugin-find-library
%{python3_sitelib}/rpg/plugins/misc/find_library.py
%{python3_sitelib}/rpg/plugins/misc/__pycache__/find_library*
%files plugin-find-patch
%{python3_sitelib}/rpg/plugins/misc/find_patch.py
%{python3_sitelib}/rpg/plugins/misc/__pycache__/find_patch*
%files plugin-find-translation
%{python3_sitelib}/rpg/plugins/misc/find_translation.py
%{python3_sitelib}/rpg/plugins/misc/__pycache__/find_translation*
%files plugin-autotools
%{python3_sitelib}/rpg/plugins/project_builder/autotools.py
%{python3_sitelib}/rpg/plugins/project_builder/__pycache__/autotools*
%files plugin-cmake
%{python3_sitelib}/rpg/plugins/project_builder/cmake.py
%{python3_sitelib}/rpg/plugins/project_builder/__pycache__/cmake*
%files plugin-make
%{python3_sitelib}/rpg/plugins/project_builder/make.py
%{python3_sitelib}/rpg/plugins/project_builder/__pycache__/make*
%files plugin-maven
%{python3_sitelib}/rpg/plugins/project_builder/maven.py
%{python3_sitelib}/rpg/plugins/project_builder/__pycache__/maven*
%files plugin-setuptools
%{python3_sitelib}/rpg/plugins/project_builder/setuptools.py
%{python3_sitelib}/rpg/plugins/project_builder/__pycache__/setuptools*
%files plugin-bash-command
%{python3_sitelib}/rpg/plugins/recover/bash_command.py
%{python3_sitelib}/rpg/plugins/recover/__pycache__/bash_command*
%files -n python3-rpg
%{python3_sitelib}/rpg/
%exclude %{python3_sitelib}/rpg/plugins
%changelog
* Wed Nov 25 2015 Jan Silhan <[email protected]> 0.0.5-1
- tito: added releasers (Jan Silhan)
- Fix new docker image (Pavol Vican)
- command: removed execute_from (Jan Silhan)
- spec: remove unused methods and attribute (fix #333) (Jan Silhan)
- add flake8-diff error code (fix #344) (Pavol Vican)
- Autotools macro corrections (fix #312) (Miroslav Cibulka)
- Separated packages rpg and python3-rpg (fix #275) (regeciovad)
- Unit test for maven (fix #341) (xslouk02)
- prefil of the mandatory page (fix #295) (Lukas Slouka)
- AUTHORS added (Miroslav Cibulka)
- Documenting code and some minor refactoring (Miroslav Cibulka)
- libhif test (fix #327) (Miroslav Cibulka)
- Extention of hawkey test (Miroslav Cibulka)
- Ignore not found files in translating files to packages (Miroslav Cibulka)
- apt-get yes to all - travis build fix (Miroslav Cibulka)
- autotools: log-checking compiled-phase added (#334) (Miroslav Cibulka)
- add parameter -y of command apt-get (Pavol Vican)
- fix mock build test (Pavol Vican)
- disable long test in spec file (fix #330) (Pavol Vican)
- Fix test in TRAVIS CI + upload SRPM (fix #316) (fix #308) (fix #213) (Pavol
Vican)
- Maven plugin (#fix #130) (LukasSlouka)
- Changed long tests to connection tests (fix #329) (yousifd)
* Wed Oct 07 2015 Jan Silhan <[email protected]> 0.0.4-1
- Gui - meaning of asterisk added (fix #320) (regeciovad)
- Changed gcc/g++ to makedepend, resolves system-depend tests (fix #296)
(Miroslav Cibulka)
- Fixed bad parse of mock logs (Miroslav Cibulka)
- Find file now find all installed files (fix #319) (Miroslav Cibulka)
- Python now compiles installed directory if py file is found (fix #253)
(Miroslav Cibulka)
- CMake macro correction (fix #313) (Miroslav Cibulka)
- Gui - Copr pages text and spacing changes (regeciovad)
- Copr - upload of local srpms (fix #309) (regeciovad)
- Gui - Build page tips (regeciovad)
- Gui - new CoprDistro page (fix #317) (regeciovad)
- Gui - all tips are visible (fix #264) (regeciovad)
- Gui - new coprLogin and coprDistro pages (fix #268) (regeciovad)
- Gui - new distro selection (fix #292) (regeciovad)
- Gui - fill of empty description (fix #289) (regeciovad)
- Gui - split of mandatory page (fix #293) (regeciovad)
- Gui - version tag validation (fix #301) (regeciovad)
- Gui - prefill spec attributes (fix #280) (regeciovad)
- build_rpm now throws error instead of return (fix #278) (Miroslav Cibulka)
- C plugin is now extended with mock_recover (fix #303) (Miroslav Cibulka)
- Find file test now watch directory for new files (fix #281) (Miroslav
Cibulka)
- make test_build_rpg pass (fix #274) (Miroslav Cibulka)
- Escaping spaces with path_to_str function (fix #245) (Miroslav Cibulka)
- (build)requiredfiles may now be glob expression (Miroslav Cibulka)
- Test for building libsovl (fix #62) (Miroslav Cibulka)
- Verbose make test - mock tests removed from test suite (Miroslav Cibulka)
- make check resolved by CMakePlugin (LukasSlouka)
- expand build/install fields via rpm (Fixes #285) (Igor Gnatenko)
- packaging: drop twice execution of make install (Igor Gnatenko)
- postun & post ldconfig fix (Miroslav Cibulka)
- Cplugin repair + added support for C++ (fix #249) (Miroslav Cibulka)
- Compiled phase had wrong directory as argument (Miroslav Cibulka)
- Report error on failed mock_recover (Miroslav Cibulka)
- caching files from resolved packages (optimization of files_to_pkgs plugin)
(Miroslav Cibulka)
- Gui - build page refactor (fix #267) (regeciovad)
- Gui - intro page added (fix #266) (regeciovad)
- Gui - asterisk in lighter red (fix #265) (regeciovad)
- Gui - cancel button moved to the left corner (fix #263) (regeciovad)
- Gui - page titles shifted to the right (fix #262) (regeciovad)
- Copy rpms to the destination (fix #241) (regeciovad)
- Update README.md (Jan Šilhan)
- Update README.md (Jan Šilhan)
- README: link to readthedocs (Jan Silhan)
- build_rpm_recover is now general (fix #240) (Miroslav Cibulka)
- CMake plugin upgrade (fix #256) (LukasSlouka)
- spec.files refactor to set (fix #272) (LukasSlouka)
- Requires set to list bug (fix #271) (LukasSlouka)
- Autotools plugin implemented (fix #15) (LukasSlouka)
- Setuptools plugin + short test (fix #131) (LukasSlouka)
- Hawkey package test (fix #76) (LukasSlouka)
- RPG fo newbies (fix #216) (regeciovad)
- rpm_path + errors connected with this (Miroslav Cibulka)
* Tue Aug 18 2015 Jan Silhan <[email protected]> 0.0.3-1
- SourceLoader + load_project_from_url refactored (Miroslav Cibulka)
- Gui building page redesign (fix #226) (regeciovad)
- test: really update spec set attr (Jan Silhan)
- cosmetic: union -> update (Jan Silhan)
- make install fix (fix #247) (LukasSlouka)
- Base method plugin calls refactor (fix #248) (LukasSlouka)
- failing tests fix (Miroslav Cibulka)
- Build RPG test (fix #206) (regeciovad)
- Subpackages page removed (fix #190) (regeciovad)
- Writing plugins doc (fix #123) (LukasSlouka)
- Docs warning (fix #237) (LukasSlouka)
- cmake.py extended: get dependencies from CMakeCache (fix #191) (FLuptak)
- Base.build_rpm: move result rpm to base_dir (Jan Silhan)
- Base.srpm_path search for more proper srpm file name (Jan Silhan)
- call build_rpm in build_rpm_recover (Jan Silhan)
- builds srpm if does not exists during Base.build_rpm (Jan Silhan)
- Base: renamed dnf_load_sack to load_dnf_sack (Jan Silhan)
- Base.compute_checksum madew private (Jan Silhan)
- removed: apply patches (Jan Silhan)
- Spec tags documentation (fix #188) (LukasSlouka)
- Subpackage documentation (#fix 219) (LukasSlouka)
- merging Requires and BuildRequires if spec.check is not empty (fix #228)
(Miroslav Cibulka)
- loading archives bug fixed (fix #229) (Miroslav Cibulka)
- ReadTheDocs (fix #231) (LukasSlouka)
- Spec tags as instance attributes (fix #219) (LukasSlouka)
- Flake8 errors fixed (mostly) with Pep8 (fix #222) (Miroslav Cibulka)
- Build rpm in GUI(fix #218) (regeciovad)
- Base build_rpm (#218) (regeciovad)
- Speeding up files_to_pkgs with dictionary + flake8 errors (Miroslav Cibulka)
- make plugin now search for Makefile and makefile (Miroslav Cibulka)
- Mock project analyse + mock-test + unit-test (without mock) (fix #184)
(Miroslav Cibulka)
- mock_build test suite added (fix #211) (Miroslav Cibulka)
- Spec attributes refactoring (fix #219) (LukasSlouka)
- git rebase CI PR (fix #215) (Pavol Vican)
- Documentation fix for python3-sphinx (fix #121) (LukasSlouka)
- Conf.py fix (LukasSlouka)
- Print replacement (LukasSlouka)
- Documentation for Base and Spec (fix #188) (LukasSlouka)
- Comments removal (fix #121) (LukasSlouka)
- CLI options documentation (fix #198) (LukasSlouka)
- Doc setup (fix #121) (LukasSlouka)
- load_project_from_url regex checking of github url (Miroslav Cibulka)
- rpg.package_builder.build_rpm implemented + long tests (fix #175) (fix #176)
(Miroslav Cibulka)
- spec file: redundant python3-copr removed (regeciovad)
- Extra parameter removed from download_git_repo - callback (fix #207)
(Miroslav Cibulka)
- Mock init cleans cache (regeciovad)
- command: ignore new line at the end (Jan Silhan)
- Gui - moved build_project (regeciovad)
- consmetic: conf: move import statement (Jan Silhan)
- README to install rpg (fix #200) (Pavol Vican)
- fix the COPR builds (Pavol Vican)
- add log flake8 (fix #171) (Pavol Vican)
- Upload srpm + run copr (fix #159) (Pavol Vican)
* Fri Jul 03 2015 Jan Silhan <[email protected]> 0.0.2-1
- yum install added to travis (Miroslav Cibulka)
- python3-corp added to mock rpg.cfg (Miroslav Cibulka)
- download_archive has now 10 tries till exception (Miroslav Cibulka)
- active waiting 'till mock ends (Miroslav Cibulka)
- spec: all Requires added to BuildRequires (Jan Silhan)
- Copr_uploader deleted (fix #185) (regeciovad)
- Python-copr instead of copr-cli (#185) (regeciovad)
- gui fix (regeciovad)
- fetch_repos in new thread (fix #154) (regeciovad)
- Waiter for mock - yum update - Travis (#172) (Miroslav Cibulka)
- long test separation (Fix #156) (LukasSlouka)
- spec: added BuilRequires (Jan Silhan)
- Expansion of ~ replaced by rpm macro eval (Miroslav Cibulka)
- files_to_pkgs plugin checks existence of sack (cibo94)
- Command() error is now more verbose (/dev/null should be used locally)
(cibo94)
- Finding libs and programs are now universal (cibo94)
- (Build)Required files are now attribute (fix #177) (cibo94)
- Python file excludes added (fix #169) (cibo94)
- New first page and PagePatches deleted (fix #152) (regeciovad)
- Spec file is removed on tearDown (fix #172) (cibo94)
- Home path is now absolute (#172) (cibo94)
- files_to_pkgs plugin implemented + test (fix #128) (cibo94)
- Copr: new ToolTips (fix #9) (regeciovad)
- Mock fetch_repos (#153) (regeciovad)
- Build srpm output path fix (fix #160) (regeciovad)
- tests: remove hello.spec from find files (see 24bd61e) (Jan Silhan)
- README: cosmetic: removed hr (Jan Silhan)
- README: added travis CI build status (Jan Silhan)
- spec: print verbose test errors (Jan Silhan)
- this fixes the rpg rpm building (Pavol Vican)
- Add travis (fix #141) (Pavol Vican)
- plugin: python: exclude project py files (fix #165) (Jan Silhan)
- tar was packing files with full-path (cibo94)
- Duplicate '%%autosetup' removed (cibo94)
- installed phase moved to the page before (Build)Requires (fix #167) (cibo94)
- DNF stack was initialized before plugin engine was (fix #168) (cibo94)
- shutil.rmtree doesn't throw FileNotFoundError and errors can be supressed
(cibo94)
- Always build with newly generated specfile (fix #161) (cibo94)
- spec: ignore weak deps for < f21 (Jan Silhan)
- Creating archive bug fixed + copy of tarball added to builder (cibo94)
- fixed wrong order of writing spec file (Miroslav Cibulka)
- process_archive_or_dir to load_project_from_url (fix #149) (Miroslav Cibulka)
- Tito fix regression from 634d4a2 (LukasSlouka)
- build_srpm calls create_archive (Jan Silhan)
- self.Source is ${name}-${version}.tar.gz (fix #155) (Miroslav Cibulka)
- test_functional - package builder correction (#117) (xcibul10)
- Spec file refactored (fix #124) (xcibul10)
- Copr: GUI added (#9) (regeciovad)
- Copr_uploader methods (#9) (regeciovad)
- Functional test added (#117) (regeciovad)
- spec: rpg package name is lowercase (Jan Silhan)
- spec.Source + write_spec + buildLocationEdit fix (fix #150) (regeciovad)
- Package builder refactored (xcibul10)
- Description should be macro (fix #144) (xcibul10)
- hello_project in test/project added to test_find_files (xcibul10)
- import project from github and url implemented (fix #126) (fix #127)
(xcibul10)
- create_archive() implemented (fix #137) (fix #89) (xcibul10)
- SourceLoader refactored (fix #96) (xcibul10)