gjp 0.35.0 → 0.36.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -73,7 +73,14 @@ Note that the kit package is needed at build time only by OBS, no end user shoul
73
73
 
74
74
  export NO_BRP_CHECK_BYTECODE_VERSION=true
75
75
 
76
- * if packages build at first but then fail after a few days because Maven tries to connect to the Internet, add the `--option` flag to the `mvn` line in `build.sh`;
76
+ * some Maven plugins like the Eclipse Project ones ([Tycho](https://www.eclipse.org/tycho/)) will save data in `/tmp` downloaded from the Internet and will produce errors if this data is not there during offline builds. One way to work around that is to force Java to use a kit subdirectory as `/tmp`. Add the following option to `gjp mvn` during your build:
77
+
78
+ -DskipTests=true -Djava.io.tmpdir=<full path to project>/kit/tmp
79
+
80
+ Use the following option in `mvn` in your build.sh file to make it reproducible:
81
+
82
+ -DskipTests=true -Djava.io.tmpdir=$PROJECT_PREFIX/kit/tmp
83
+
77
84
  * if you want to be 100% sure your package builds without network access, you can use scripts in the `utils/` folder to create a special `nonet` user that cannot use the Internet and retry the build from that user.
78
85
 
79
86
  ## Frequently used sources
@@ -31,7 +31,7 @@ cd ../../..
31
31
  cd src
32
32
  mkdir commons-fileupload
33
33
  cd commons-fileupload
34
- wget http://mirror.nohup.it/apache//commons/fileupload/source/commons-fileupload-1.3-src.zip
34
+ wget http://archive.apache.org/dist/commons/fileupload/source/commons-fileupload-1.3-src.zip
35
35
  unzip commons-fileupload-1.3-src.zip
36
36
  rm commons-fileupload-1.3-src.zip
37
37
 
@@ -90,7 +90,7 @@ module Gjp
90
90
  files_to_delete = files_in_head - files_in_tag + files_added_after_head
91
91
 
92
92
  files_to_delete.each do |file|
93
- File.delete(file)
93
+ FileUtils.rm_rf(file)
94
94
  end
95
95
  end
96
96
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module Gjp
4
- VERSION = "0.35.0"
4
+ VERSION = "0.36.0"
5
5
  end
@@ -43,7 +43,7 @@ Requires: mvn(<%= dependency_id[0] %>:<%= dependency_id[1] %>) <% if depen
43
43
  %prep
44
44
  %setup -q -c -n src/<%= name %>
45
45
  cp -f %{SOURCE1} .
46
- ln -sf %{_datadir}/gjp/<%= project_name %>-kit ../../kit
46
+ cp -Rf %{_datadir}/gjp/<%= project_name %>-kit ../../kit
47
47
 
48
48
  %build
49
49
  cd ../../
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gjp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.35.0
4
+ version: 0.36.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-14 00:00:00.000000000 Z
12
+ date: 2014-05-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -149,7 +149,6 @@ extra_rdoc_files: []
149
149
  files:
150
150
  - .gitignore
151
151
  - Gemfile
152
- - Gemfile.lock
153
152
  - LICENSE
154
153
  - MOTIVATION.md
155
154
  - README.md
@@ -1,42 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- gjp (0.11.2)
5
- clamp
6
- json
7
- nokogiri
8
- rest-client
9
- rubyzip
10
- text
11
-
12
- GEM
13
- remote: http://rubygems.org/
14
- specs:
15
- clamp (0.6.1)
16
- diff-lcs (1.2.4)
17
- json (1.8.0)
18
- mime-types (1.23)
19
- mini_portile (0.5.1)
20
- nokogiri (1.6.0)
21
- mini_portile (~> 0.5.0)
22
- rake (10.0.4)
23
- rest-client (1.6.7)
24
- mime-types (>= 1.16)
25
- rspec (2.13.0)
26
- rspec-core (~> 2.13.0)
27
- rspec-expectations (~> 2.13.0)
28
- rspec-mocks (~> 2.13.0)
29
- rspec-core (2.13.1)
30
- rspec-expectations (2.13.0)
31
- diff-lcs (>= 1.1.3, < 2.0)
32
- rspec-mocks (2.13.1)
33
- rubyzip (0.9.9)
34
- text (1.2.1)
35
-
36
- PLATFORMS
37
- ruby
38
-
39
- DEPENDENCIES
40
- gjp!
41
- rake
42
- rspec