avatar
Rosa has added 8761813fcd
Automatic import for version 1.0.2-1.fc17
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,2 @@
1
sources:
2
  "arquillian-core-1.0.2.Final.tar.xz": 6a03f38fcb8704d22a4a58163631e3076f0cc778
view file @ 8761813fcd
... ... --- /dev/null
... ... +++ b/arquillian-core.spec
... ... @@ -0,0 +1,210 @@
1
%global namedreltag .Final
2
%global namedversion %{version}%{?namedreltag}
3
4
Name:           arquillian-core
5
Version:        1.0.2
6
Release:        1%{?dist}
7
Summary:        Arquillian is a revolutionary testing platform built on the JVM
8
Group:          Development/Libraries
9
License:        ASL 2.0
10
URL:            http://www.jboss.org/arquillian
11
12
# git clone https://github.com/arquillian/arquillian-core.git arquillian-core-1.0.2.Final
13
# cd arquillian-core-1.0.2.Final && git archive --format=tar --prefix=arquillian-core-1.0.2.Final/ 1.0.2.Final | xz > ../arquillian-core-1.0.2.Final.tar.xz
14
Source0:       %{name}-%{namedversion}.tar.xz
15
16
BuildArch:        noarch
17
18
BuildRequires:    jpackage-utils
19
BuildRequires:    java-devel
20
BuildRequires:    maven
21
BuildRequires:    jboss-parent
22
23
BuildRequires:    maven-compiler-plugin
24
BuildRequires:    maven-install-plugin
25
BuildRequires:    maven-jar-plugin
26
BuildRequires:    maven-javadoc-plugin
27
BuildRequires:    maven-release-plugin
28
BuildRequires:    maven-resources-plugin
29
BuildRequires:    maven-source-plugin
30
BuildRequires:    maven-surefire-plugin
31
BuildRequires:    maven-surefire-provider-junit4
32
BuildRequires:    maven-surefire-provider-testng
33
BuildRequires:    maven-enforcer-plugin
34
35
BuildRequires:    apiviz
36
BuildRequires:    junit4
37
38
BuildRequires:    shrinkwrap
39
BuildRequires:    shrinkwrap-descriptors
40
BuildRequires:    shrinkwrap-resolver
41
BuildRequires:    cdi-api
42
BuildRequires:    weld-core
43
BuildRequires:    weld-parent
44
BuildRequires:    slf4j
45
BuildRequires:    testng
46
BuildRequires:    geronimo-ejb
47
BuildRequires:    geronimo-annotation
48
BuildRequires:    jboss-el-2.2-api
49
BuildRequires:    mockito
50
BuildRequires:    jboss-logging
51
BuildRequires:    jboss-logmanager
52
BuildRequires:    jboss-servlet-3.0-api
53
54
Requires:    shrinkwrap-descriptors
55
Requires:    shrinkwrap-resolver
56
Requires:    junit4
57
Requires:    shrinkwrap
58
Requires:    jboss-logging
59
Requires:    jboss-logmanager
60
Requires:    jboss-servlet-3.0-api
61
Requires:    cdi-api
62
Requires:    geronimo-ejb
63
Requires:    geronimo-annotation
64
Requires:    testng
65
Requires:    jpackage-utils
66
67
%description
68
Arquillian is a revolutionary testing platform built on the JVM that
69
substantially reduces the effort required to write and execute Java 
70
middleware integration and functional tests. No more mocks. 
71
No more container lifecycle and deployment hassles. Just real tests!
72
73
74
%package javadoc
75
Summary:          Javadocs for %{name}
76
Group:            Documentation
77
Requires:         jpackage-utils
78
79
%description javadoc
80
This package contains the API documentation for %{name}.
81
82
83
%prep
84
%setup -q  -n %{name}-%{namedversion}
85
86
%build
87
export MAVEN_OPTS="-Xms256m -Xmx768m -XX:PermSize=128m -XX:MaxPermSize=256m"
88
mvn-rpmbuild install javadoc:aggregate
89
90
%install
91
92
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
93
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
94
95
for m in config-api \
96
         config-impl-base \
97
         config-spi \
98
         container-impl-base \
99
         container-spi \
100
         container-test-api \
101
         container-test-spi \
102
         container-test-impl-base \
103
         core-api \
104
         core-spi \
105
         core-impl-base \
106
         junit-container \
107
         junit-core \
108
         junit-standalone \
109
         test-api \
110
         test-spi \
111
         test-impl-base \
112
         testng-container \
113
         testng-core \
114
         testng-standalone \
115
         ; do
116
         # module path
117
         mp=`echo ${m} | sed "s/\-/\//"`;
118
         # JAR
119
         install -pm 644 ${mp}/target/arquillian-${m}-%{namedversion}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/arquillian-${m}.jar
120
         # POM
121
         install -pm 644 ${mp}/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-${m}.pom
122
         # DEPMAP
123
         %add_maven_depmap JPP.%{name}-arquillian-${m}.pom %{name}/arquillian-${m}.jar
124
done
125
126
for m in protocols-jmx \
127
         protocols-servlet \
128
         testenrichers-cdi \
129
         testenrichers-ejb \
130
         testenrichers-initialcontext \
131
         testenrichers-resource \
132
         ; do
133
         # module path
134
         mp=`echo ${m} | sed "s/\-/\//"`;
135
         # module name, without 's'
136
         mn=`echo ${m} | sed "s/s\-/\-/"`;
137
         # JAR
138
         install -pm 644 ${mp}/target/arquillian-${mn}-%{namedversion}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/arquillian-${mn}.jar
139
         # POM
140
         install -pm 644 ${mp}/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-${mn}.pom
141
         # DEPMAP
142
         %add_maven_depmap JPP.%{name}-arquillian-${mn}.pom %{name}/arquillian-${mn}.jar
143
done
144
145
146
# POMs and DEPMAP
147
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-parent.pom
148
%add_maven_depmap JPP.%{name}-arquillian-parent.pom
149
install -pm 644 bom/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-bom.pom
150
%add_maven_depmap JPP.%{name}-arquillian-bom.pom
151
install -pm 644 build/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-build.pom
152
%add_maven_depmap JPP.%{name}-arquillian-build.pom
153
154
## config parent
155
install -pm 644 config/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-config-parent.pom
156
%add_maven_depmap JPP.%{name}-arquillian-config-parent.pom
157
158
## container parent
159
install -pm 644 container/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-container-parent.pom
160
%add_maven_depmap JPP.%{name}-arquillian-container-parent.pom
161
162
## core parent
163
install -pm 644 core/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-core-parent.pom
164
%add_maven_depmap JPP.%{name}-arquillian-core-parent.pom
165
166
## junit parent
167
install -pm 644 junit/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-junit-parent.pom
168
%add_maven_depmap JPP.%{name}-arquillian-junit-parent.pom
169
170
## protocols parent
171
install -pm 644 protocols/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-protocols-parent.pom
172
%add_maven_depmap JPP.%{name}-arquillian-protocols-parent.pom
173
174
## test parent
175
install -pm 644 test/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-test-parent.pom
176
%add_maven_depmap JPP.%{name}-arquillian-test-parent.pom
177
178
## testenrichers parent
179
install -pm 644 testenrichers/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-testenrichers-parent.pom
180
%add_maven_depmap JPP.%{name}-arquillian-testenrichers-parent.pom
181
182
## testng parent
183
install -pm 644 testng/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-arquillian-testng-parent.pom
184
%add_maven_depmap JPP.%{name}-arquillian-testng-parent.pom
185
186
# Javadoc
187
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
188
cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
189
190
%files
191
%{_javadir}/%{name}/*.jar
192
%{_mavenpomdir}/JPP.%{name}-*.pom
193
%{_mavendepmapfragdir}/%{name}
194
%doc license.txt apl.txt readme.txt
195
196
%files javadoc
197
%{_javadocdir}/%{name}
198
%doc license.txt apl.txt
199
200
201
%changelog
202
* Mon Jul 30 2012 Lin Gao <lgao@redhat.com> - 1.0.2-1
203
- Upgraded to 1.0.2.Final
204
- Removed unsed patches
205
206
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
207
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
208
209
* Wed Jun 06 2012 Lin Gao <lgao@redhat.com> 1.0.1-1
210
- Initial packaging

Comments