include 'tests' in the RPM
Showing
2 changed files
with
86 additions
and
2 deletions
1 | %define name casperjs | 1 | %define name casperjs |
2 | %define version 1.0.0 | 2 | %define version 1.0.0 |
3 | %define release RC4 | 3 | %define release RC4_1 |
4 | %define prefix /usr | 4 | %define prefix /usr |
5 | 5 | ||
6 | %define mybuilddir %{_builddir}/%{name}-%{version}-root | 6 | %define mybuilddir %{_builddir}/%{name}-%{version}-root |
... | @@ -31,6 +31,7 @@ mkdir -p %{mybuilddir}%{prefix}/bin | ... | @@ -31,6 +31,7 @@ mkdir -p %{mybuilddir}%{prefix}/bin |
31 | mkdir -p %{mybuilddir}%{prefix}/share/%{name}/bin | 31 | mkdir -p %{mybuilddir}%{prefix}/share/%{name}/bin |
32 | mkdir -p %{mybuilddir}%{prefix}/share/%{name}/modules | 32 | mkdir -p %{mybuilddir}%{prefix}/share/%{name}/modules |
33 | mkdir -p %{mybuilddir}%{prefix}/share/%{name}/samples | 33 | mkdir -p %{mybuilddir}%{prefix}/share/%{name}/samples |
34 | mkdir -p %{mybuilddir}%{prefix}/share/%{name}/tests | ||
34 | 35 | ||
35 | %install | 36 | %install |
36 | cp bin/%{name} %{mybuilddir}%{prefix}/share/%{name}/bin/ | 37 | cp bin/%{name} %{mybuilddir}%{prefix}/share/%{name}/bin/ |
... | @@ -46,6 +47,7 @@ cp README.md %{mybuilddir}%{prefix}/share/%{name}/ | ... | @@ -46,6 +47,7 @@ cp README.md %{mybuilddir}%{prefix}/share/%{name}/ |
46 | cp package.json %{mybuilddir}%{prefix}/share/%{name}/ | 47 | cp package.json %{mybuilddir}%{prefix}/share/%{name}/ |
47 | cp -R modules/* %{mybuilddir}%{prefix}/share/%{name}/modules/ | 48 | cp -R modules/* %{mybuilddir}%{prefix}/share/%{name}/modules/ |
48 | cp -R samples/* %{mybuilddir}%{prefix}/share/%{name}/samples/ | 49 | cp -R samples/* %{mybuilddir}%{prefix}/share/%{name}/samples/ |
50 | cp -R tests/* %{mybuilddir}%{prefix}/share/%{name}/tests/ | ||
49 | 51 | ||
50 | %files | 52 | %files |
51 | %defattr(0444,root,root) | 53 | %defattr(0444,root,root) |
... | @@ -112,7 +114,89 @@ cp -R samples/* %{mybuilddir}%{prefix}/share/%{name}/samples/ | ... | @@ -112,7 +114,89 @@ cp -R samples/* %{mybuilddir}%{prefix}/share/%{name}/samples/ |
112 | %{prefix}/share/%{name}/samples/steptimeout.js | 114 | %{prefix}/share/%{name}/samples/steptimeout.js |
113 | %{prefix}/share/%{name}/samples/timeout.coffee | 115 | %{prefix}/share/%{name}/samples/timeout.coffee |
114 | %{prefix}/share/%{name}/samples/timeout.js | 116 | %{prefix}/share/%{name}/samples/timeout.js |
117 | %{prefix}/share/%{name}/tests/site/field-array.html | ||
118 | %{prefix}/share/%{name}/tests/site/images/phantom.png | ||
119 | %{prefix}/share/%{name}/tests/site/result.html | ||
120 | %{prefix}/share/%{name}/tests/site/multiple-forms.html | ||
121 | %{prefix}/share/%{name}/tests/site/global.html | ||
122 | %{prefix}/share/%{name}/tests/site/elementattribute.html | ||
123 | %{prefix}/share/%{name}/tests/site/urls.html | ||
124 | %{prefix}/share/%{name}/tests/site/mouse-events.html | ||
125 | %{prefix}/share/%{name}/tests/site/index.html | ||
126 | %{prefix}/share/%{name}/tests/site/click.html | ||
127 | %{prefix}/share/%{name}/tests/site/page1.html | ||
128 | %{prefix}/share/%{name}/tests/site/prompt.html | ||
129 | %{prefix}/share/%{name}/tests/site/error.html | ||
130 | %{prefix}/share/%{name}/tests/site/dummy.js | ||
131 | %{prefix}/share/%{name}/tests/site/page2.html | ||
132 | %{prefix}/share/%{name}/tests/site/alert.html | ||
133 | %{prefix}/share/%{name}/tests/site/form.html | ||
134 | %{prefix}/share/%{name}/tests/site/confirm.html | ||
135 | %{prefix}/share/%{name}/tests/site/resources.html | ||
136 | %{prefix}/share/%{name}/tests/site/test.html | ||
137 | %{prefix}/share/%{name}/tests/site/page3.html | ||
138 | %{prefix}/share/%{name}/tests/site/visible.html | ||
139 | %{prefix}/share/%{name}/tests/site/waitFor.html | ||
140 | %{prefix}/share/%{name}/tests/sample_modules/csmodule.coffee | ||
141 | %{prefix}/share/%{name}/tests/sample_modules/jsmodule.js | ||
142 | %{prefix}/share/%{name}/tests/testdir/03_a.js | ||
143 | %{prefix}/share/%{name}/tests/testdir/02_b/abc.js | ||
144 | %{prefix}/share/%{name}/tests/testdir/04/02_do.js | ||
145 | %{prefix}/share/%{name}/tests/testdir/04/01_init.js | ||
146 | %{prefix}/share/%{name}/tests/testdir/01_a/abc.js | ||
147 | %{prefix}/share/%{name}/tests/testdir/01_a/def.js | ||
148 | %{prefix}/share/%{name}/tests/testdir/03_b.js | ||
149 | %{prefix}/share/%{name}/tests/suites/casper/capture.js | ||
150 | %{prefix}/share/%{name}/tests/suites/casper/prompt.js | ||
151 | %{prefix}/share/%{name}/tests/suites/casper/resources.coffee | ||
152 | %{prefix}/share/%{name}/tests/suites/casper/auth.js | ||
153 | %{prefix}/share/%{name}/tests/suites/casper/alert.js | ||
154 | %{prefix}/share/%{name}/tests/suites/casper/wait.js | ||
155 | %{prefix}/share/%{name}/tests/suites/casper/flow.coffee | ||
156 | %{prefix}/share/%{name}/tests/suites/casper/events.js | ||
157 | %{prefix}/share/%{name}/tests/suites/casper/evaluate.js | ||
158 | %{prefix}/share/%{name}/tests/suites/casper/logging.js | ||
159 | %{prefix}/share/%{name}/tests/suites/casper/xpath.js | ||
160 | %{prefix}/share/%{name}/tests/suites/casper/elementattribute.js | ||
161 | %{prefix}/share/%{name}/tests/suites/casper/viewport.js | ||
162 | %{prefix}/share/%{name}/tests/suites/casper/.casper | ||
163 | %{prefix}/share/%{name}/tests/suites/casper/steps.js | ||
164 | %{prefix}/share/%{name}/tests/suites/casper/exists.js | ||
165 | %{prefix}/share/%{name}/tests/suites/casper/click.js | ||
166 | %{prefix}/share/%{name}/tests/suites/casper/mouseevents.js | ||
167 | %{prefix}/share/%{name}/tests/suites/casper/fetchtext.js | ||
168 | %{prefix}/share/%{name}/tests/suites/casper/urls.js | ||
169 | %{prefix}/share/%{name}/tests/suites/casper/open.js | ||
170 | %{prefix}/share/%{name}/tests/suites/casper/agent.js | ||
171 | %{prefix}/share/%{name}/tests/suites/casper/formfill.js | ||
172 | %{prefix}/share/%{name}/tests/suites/casper/request.js | ||
173 | %{prefix}/share/%{name}/tests/suites/casper/confirm.js | ||
174 | %{prefix}/share/%{name}/tests/suites/casper/history.js | ||
175 | %{prefix}/share/%{name}/tests/suites/casper/debug.js | ||
176 | %{prefix}/share/%{name}/tests/suites/casper/global.js | ||
177 | %{prefix}/share/%{name}/tests/suites/casper/encode.js | ||
178 | %{prefix}/share/%{name}/tests/suites/casper/onerror.js | ||
179 | %{prefix}/share/%{name}/tests/suites/casper/start.js | ||
180 | %{prefix}/share/%{name}/tests/suites/casper/hooks.js | ||
181 | %{prefix}/share/%{name}/tests/suites/casper/headers.js | ||
182 | %{prefix}/share/%{name}/tests/suites/casper/visible.js | ||
183 | %{prefix}/share/%{name}/tests/suites/coffee.coffee | ||
184 | %{prefix}/share/%{name}/tests/suites/require.js | ||
185 | %{prefix}/share/%{name}/tests/suites/cli.js | ||
186 | %{prefix}/share/%{name}/tests/suites/fs.js | ||
187 | %{prefix}/share/%{name}/tests/suites/.casper | ||
188 | %{prefix}/share/%{name}/tests/suites/tester.js | ||
189 | %{prefix}/share/%{name}/tests/suites/injector.js | ||
190 | %{prefix}/share/%{name}/tests/suites/clientutils.js | ||
191 | %{prefix}/share/%{name}/tests/suites/http_status.js | ||
192 | %{prefix}/share/%{name}/tests/suites/xunit.js | ||
193 | %{prefix}/share/%{name}/tests/suites/utils.js | ||
194 | %{prefix}/share/%{name}/tests/selftest.js | ||
195 | %{prefix}/share/%{name}/tests/run.js | ||
115 | 196 | ||
116 | %changelog | 197 | %changelog |
198 | * Mon Dec 10 2012 Jan Schaumann <jschauma@etsy.com> | ||
199 | - include 'tests' | ||
200 | |||
117 | * Mon Nov 26 2012 Jan Schaumann <jschauma@etsy.com> | 201 | * Mon Nov 26 2012 Jan Schaumann <jschauma@etsy.com> |
118 | - first rpm version | 202 | - first rpm version | ... | ... |
... | @@ -13,7 +13,7 @@ buildroot="${topdir}/BUILD/${name}-${version}-root" | ... | @@ -13,7 +13,7 @@ buildroot="${topdir}/BUILD/${name}-${version}-root" |
13 | mkdir -p ${topdir}/RPMS ${topdir}/SRPMS ${topdir}/SOURCES ${topdir}/BUILD | 13 | mkdir -p ${topdir}/RPMS ${topdir}/SRPMS ${topdir}/SOURCES ${topdir}/BUILD |
14 | mkdir -p ${buildroot} ${builddir} | 14 | mkdir -p ${buildroot} ${builddir} |
15 | echo "=> Copying sources..." | 15 | echo "=> Copying sources..." |
16 | ( cd .. && tar cf - ./[A-Z]* ./package.json ./bin ./samples ./modules | tar xf - -C ${builddir} ) | 16 | ( cd .. && tar cf - ./[A-Z]* ./package.json ./bin ./samples ./tests ./modules | tar xf - -C ${builddir} ) |
17 | echo "=> Creating source tarball under ${sourcedir}..." | 17 | echo "=> Creating source tarball under ${sourcedir}..." |
18 | ( cd ${builddir}/.. && tar zcf ${sourcedir}/${name}-${version}.tar.gz ${name}-${version} ) | 18 | ( cd ${builddir}/.. && tar zcf ${sourcedir}/${name}-${version}.tar.gz ${name}-${version} ) |
19 | echo "=> Building RPM..." | 19 | echo "=> Building RPM..." | ... | ... |
-
Please register or sign in to post a comment