removed rpm directory, obsolete and no more maintained
Showing
2 changed files
with
0 additions
and
228 deletions
rpm/casperjs.spec
deleted
100644 → 0
1 | %define name casperjs | ||
2 | %define version 1.0.0 | ||
3 | %define release 1_1 | ||
4 | %define prefix /usr | ||
5 | |||
6 | %define mybuilddir %{_builddir}/%{name}-%{version}-root | ||
7 | |||
8 | Summary: open source navigation scripting & testing utility written in Javascript | ||
9 | Name: %{name} | ||
10 | Version: %{version} | ||
11 | License: BSD | ||
12 | Release: %{release} | ||
13 | Packager: Jan Schaumann <jschauma@etsy.com> | ||
14 | Group: Utilities/Misc | ||
15 | Source: %{name}-%{version}.tar.gz | ||
16 | BuildRoot: /tmp/%{name}-%{version}-root | ||
17 | |||
18 | Requires: phantomjs | ||
19 | |||
20 | %description | ||
21 | CasperJS is an open source navigation scripting & testing utility written | ||
22 | in Javascript and based on PhantomJS. It eases the process of defining a | ||
23 | full navigation scenario and provides useful high-level functions, methods | ||
24 | & syntactic sugar for doing common tasks | ||
25 | |||
26 | %prep | ||
27 | %setup -q | ||
28 | |||
29 | %setup | ||
30 | mkdir -p %{mybuilddir}%{prefix}/bin | ||
31 | mkdir -p %{mybuilddir}%{prefix}/share/%{name}/bin | ||
32 | mkdir -p %{mybuilddir}%{prefix}/share/%{name}/modules | ||
33 | mkdir -p %{mybuilddir}%{prefix}/share/%{name}/samples | ||
34 | mkdir -p %{mybuilddir}%{prefix}/share/%{name}/tests | ||
35 | |||
36 | %install | ||
37 | cp bin/%{name} %{mybuilddir}%{prefix}/share/%{name}/bin/ | ||
38 | ln -s %{prefix}/share/%{name}/bin/%{name} %{mybuilddir}%{prefix}/bin/%{name} | ||
39 | cp bin/bootstrap.js %{mybuilddir}%{prefix}/share/%{name}/bin/ | ||
40 | # Yes, this tool needs this file in the 'bin' directory. | ||
41 | cp bin/usage.txt %{mybuilddir}%{prefix}/share/%{name}/bin/ | ||
42 | cp CHANGELOG.md %{mybuilddir}%{prefix}/share/%{name}/ | ||
43 | cp CONTRIBUTING.md %{mybuilddir}%{prefix}/share/%{name}/ | ||
44 | cp CONTRIBUTORS.md %{mybuilddir}%{prefix}/share/%{name}/ | ||
45 | cp LICENSE.md %{mybuilddir}%{prefix}/share/%{name}/ | ||
46 | cp README.md %{mybuilddir}%{prefix}/share/%{name}/ | ||
47 | cp package.json %{mybuilddir}%{prefix}/share/%{name}/ | ||
48 | cp -R modules/* %{mybuilddir}%{prefix}/share/%{name}/modules/ | ||
49 | cp -R samples/* %{mybuilddir}%{prefix}/share/%{name}/samples/ | ||
50 | cp -R tests/* %{mybuilddir}%{prefix}/share/%{name}/tests/ | ||
51 | |||
52 | %files | ||
53 | %defattr(0444,root,root) | ||
54 | %attr(0555,root,root)%{prefix}/bin/%{name} | ||
55 | %attr(0555,root,root)%{prefix}/share/%{name}/bin/%{name} | ||
56 | %attr(0555,root,root)%{prefix}/share/%{name}/bin/bootstrap.js | ||
57 | %{prefix}/share/%{name}/bin/usage.txt | ||
58 | %{prefix}/share/%{name}/CHANGELOG.md | ||
59 | %{prefix}/share/%{name}/CONTRIBUTING.md | ||
60 | %{prefix}/share/%{name}/CONTRIBUTORS.md | ||
61 | %{prefix}/share/%{name}/LICENSE.md | ||
62 | %{prefix}/share/%{name}/README.md | ||
63 | %{prefix}/share/%{name}/package.json | ||
64 | %{prefix}/share/%{name}/modules/casper.js | ||
65 | %{prefix}/share/%{name}/modules/cli.js | ||
66 | %{prefix}/share/%{name}/modules/clientutils.js | ||
67 | %{prefix}/share/%{name}/modules/colorizer.js | ||
68 | %{prefix}/share/%{name}/modules/events.js | ||
69 | %{prefix}/share/%{name}/modules/http.js | ||
70 | %{prefix}/share/%{name}/modules/mouse.js | ||
71 | %{prefix}/share/%{name}/modules/querystring.js | ||
72 | %{prefix}/share/%{name}/modules/tester.js | ||
73 | %{prefix}/share/%{name}/modules/utils.js | ||
74 | %{prefix}/share/%{name}/modules/vendors/coffee-script.js | ||
75 | %{prefix}/share/%{name}/modules/xunit.js | ||
76 | %{prefix}/share/%{name}/samples/bbcshots.coffee | ||
77 | %{prefix}/share/%{name}/samples/bbcshots.js | ||
78 | %{prefix}/share/%{name}/samples/cliplay.coffee | ||
79 | %{prefix}/share/%{name}/samples/cliplay.js | ||
80 | %{prefix}/share/%{name}/samples/customevents.coffee | ||
81 | %{prefix}/share/%{name}/samples/customevents.js | ||
82 | %{prefix}/share/%{name}/samples/customlogging.coffee | ||
83 | %{prefix}/share/%{name}/samples/customlogging.js | ||
84 | %{prefix}/share/%{name}/samples/download.coffee | ||
85 | %{prefix}/share/%{name}/samples/download.js | ||
86 | %{prefix}/share/%{name}/samples/dynamic.coffee | ||
87 | %{prefix}/share/%{name}/samples/dynamic.js | ||
88 | %{prefix}/share/%{name}/samples/each.coffee | ||
89 | %{prefix}/share/%{name}/samples/each.js | ||
90 | %{prefix}/share/%{name}/samples/events.coffee | ||
91 | %{prefix}/share/%{name}/samples/events.js | ||
92 | %{prefix}/share/%{name}/samples/extends.coffee | ||
93 | %{prefix}/share/%{name}/samples/extends.js | ||
94 | %{prefix}/share/%{name}/samples/googlelinks.coffee | ||
95 | %{prefix}/share/%{name}/samples/googlelinks.js | ||
96 | %{prefix}/share/%{name}/samples/googlematch.coffee | ||
97 | %{prefix}/share/%{name}/samples/googlematch.js | ||
98 | %{prefix}/share/%{name}/samples/googlepagination.coffee | ||
99 | %{prefix}/share/%{name}/samples/googlepagination.js | ||
100 | %{prefix}/share/%{name}/samples/googletesting.coffee | ||
101 | %{prefix}/share/%{name}/samples/googletesting.js | ||
102 | %{prefix}/share/%{name}/samples/logcolor.coffee | ||
103 | %{prefix}/share/%{name}/samples/logcolor.js | ||
104 | %{prefix}/share/%{name}/samples/metaextract.coffee | ||
105 | %{prefix}/share/%{name}/samples/metaextract.js | ||
106 | %{prefix}/share/%{name}/samples/multirun.coffee | ||
107 | %{prefix}/share/%{name}/samples/multirun.js | ||
108 | %{prefix}/share/%{name}/samples/screenshot.coffee | ||
109 | %{prefix}/share/%{name}/samples/screenshot.js | ||
110 | %{prefix}/share/%{name}/samples/statushandlers.coffee | ||
111 | %{prefix}/share/%{name}/samples/statushandlers.js | ||
112 | %{prefix}/share/%{name}/samples/steptimeout.coffee | ||
113 | %{prefix}/share/%{name}/samples/steptimeout.js | ||
114 | %{prefix}/share/%{name}/samples/timeout.coffee | ||
115 | %{prefix}/share/%{name}/samples/timeout.js | ||
116 | %{prefix}/share/%{name}/tests/site/field-array.html | ||
117 | %{prefix}/share/%{name}/tests/site/images/phantom.png | ||
118 | %{prefix}/share/%{name}/tests/site/result.html | ||
119 | %{prefix}/share/%{name}/tests/site/multiple-forms.html | ||
120 | %{prefix}/share/%{name}/tests/site/global.html | ||
121 | %{prefix}/share/%{name}/tests/site/elementattribute.html | ||
122 | %{prefix}/share/%{name}/tests/site/urls.html | ||
123 | %{prefix}/share/%{name}/tests/site/mouse-events.html | ||
124 | %{prefix}/share/%{name}/tests/site/index.html | ||
125 | %{prefix}/share/%{name}/tests/site/click.html | ||
126 | %{prefix}/share/%{name}/tests/site/page1.html | ||
127 | %{prefix}/share/%{name}/tests/site/prompt.html | ||
128 | %{prefix}/share/%{name}/tests/site/error.html | ||
129 | %{prefix}/share/%{name}/tests/site/dummy.js | ||
130 | %{prefix}/share/%{name}/tests/site/page2.html | ||
131 | %{prefix}/share/%{name}/tests/site/alert.html | ||
132 | %{prefix}/share/%{name}/tests/site/form.html | ||
133 | %{prefix}/share/%{name}/tests/site/confirm.html | ||
134 | %{prefix}/share/%{name}/tests/site/resources.html | ||
135 | %{prefix}/share/%{name}/tests/site/test.html | ||
136 | %{prefix}/share/%{name}/tests/site/page3.html | ||
137 | %{prefix}/share/%{name}/tests/site/visible.html | ||
138 | %{prefix}/share/%{name}/tests/site/waitFor.html | ||
139 | %{prefix}/share/%{name}/tests/sample_modules/csmodule.coffee | ||
140 | %{prefix}/share/%{name}/tests/sample_modules/jsmodule.js | ||
141 | %{prefix}/share/%{name}/tests/testdir/03_a.js | ||
142 | %{prefix}/share/%{name}/tests/testdir/02_b/abc.js | ||
143 | %{prefix}/share/%{name}/tests/testdir/04/02_do.js | ||
144 | %{prefix}/share/%{name}/tests/testdir/04/01_init.js | ||
145 | %{prefix}/share/%{name}/tests/testdir/01_a/abc.js | ||
146 | %{prefix}/share/%{name}/tests/testdir/01_a/def.js | ||
147 | %{prefix}/share/%{name}/tests/testdir/03_b.js | ||
148 | %{prefix}/share/%{name}/tests/suites/casper/capture.js | ||
149 | %{prefix}/share/%{name}/tests/suites/casper/prompt.js | ||
150 | %{prefix}/share/%{name}/tests/suites/casper/resources.coffee | ||
151 | %{prefix}/share/%{name}/tests/suites/casper/auth.js | ||
152 | %{prefix}/share/%{name}/tests/suites/casper/alert.js | ||
153 | %{prefix}/share/%{name}/tests/suites/casper/wait.js | ||
154 | %{prefix}/share/%{name}/tests/suites/casper/flow.coffee | ||
155 | %{prefix}/share/%{name}/tests/suites/casper/events.js | ||
156 | %{prefix}/share/%{name}/tests/suites/casper/evaluate.js | ||
157 | %{prefix}/share/%{name}/tests/suites/casper/logging.js | ||
158 | %{prefix}/share/%{name}/tests/suites/casper/xpath.js | ||
159 | %{prefix}/share/%{name}/tests/suites/casper/elementattribute.js | ||
160 | %{prefix}/share/%{name}/tests/suites/casper/viewport.js | ||
161 | %{prefix}/share/%{name}/tests/suites/casper/.casper | ||
162 | %{prefix}/share/%{name}/tests/suites/casper/steps.js | ||
163 | %{prefix}/share/%{name}/tests/suites/casper/exists.js | ||
164 | %{prefix}/share/%{name}/tests/suites/casper/click.js | ||
165 | %{prefix}/share/%{name}/tests/suites/casper/mouseevents.js | ||
166 | %{prefix}/share/%{name}/tests/suites/casper/fetchtext.js | ||
167 | %{prefix}/share/%{name}/tests/suites/casper/urls.js | ||
168 | %{prefix}/share/%{name}/tests/suites/casper/open.js | ||
169 | %{prefix}/share/%{name}/tests/suites/casper/agent.js | ||
170 | %{prefix}/share/%{name}/tests/suites/casper/formfill.js | ||
171 | %{prefix}/share/%{name}/tests/suites/casper/request.js | ||
172 | %{prefix}/share/%{name}/tests/suites/casper/confirm.js | ||
173 | %{prefix}/share/%{name}/tests/suites/casper/history.js | ||
174 | %{prefix}/share/%{name}/tests/suites/casper/debug.js | ||
175 | %{prefix}/share/%{name}/tests/suites/casper/global.js | ||
176 | %{prefix}/share/%{name}/tests/suites/casper/encode.js | ||
177 | %{prefix}/share/%{name}/tests/suites/casper/onerror.js | ||
178 | %{prefix}/share/%{name}/tests/suites/casper/start.js | ||
179 | %{prefix}/share/%{name}/tests/suites/casper/hooks.js | ||
180 | %{prefix}/share/%{name}/tests/suites/casper/headers.js | ||
181 | %{prefix}/share/%{name}/tests/suites/casper/visible.js | ||
182 | %{prefix}/share/%{name}/tests/suites/coffee.coffee | ||
183 | %{prefix}/share/%{name}/tests/suites/require.js | ||
184 | %{prefix}/share/%{name}/tests/suites/cli.js | ||
185 | %{prefix}/share/%{name}/tests/suites/fs.js | ||
186 | %{prefix}/share/%{name}/tests/suites/.casper | ||
187 | %{prefix}/share/%{name}/tests/suites/tester.js | ||
188 | %{prefix}/share/%{name}/tests/suites/clientutils.js | ||
189 | %{prefix}/share/%{name}/tests/suites/http_status.js | ||
190 | %{prefix}/share/%{name}/tests/suites/xunit.js | ||
191 | %{prefix}/share/%{name}/tests/suites/utils.js | ||
192 | %{prefix}/share/%{name}/tests/selftest.js | ||
193 | %{prefix}/share/%{name}/tests/run.js | ||
194 | |||
195 | %changelog | ||
196 | * Mon Dec 24 2012 Nicolas Perriault <nicolas@perriault.net> | ||
197 | - removed 'injector.js' module | ||
198 | |||
199 | * Mon Dec 10 2012 Jan Schaumann <jschauma@etsy.com> | ||
200 | - include 'tests' | ||
201 | |||
202 | * Mon Nov 26 2012 Jan Schaumann <jschauma@etsy.com> | ||
203 | - first rpm version |
rpm/mkrpm.sh
deleted
100755 → 0
1 | #!/bin/sh | ||
2 | # | ||
3 | # A silly little helper script to build the RPM. | ||
4 | set -e | ||
5 | |||
6 | name=${1:?"Usage: build <toolname>"} | ||
7 | name=${name%.spec} | ||
8 | topdir=$(mktemp -d) | ||
9 | version=$(awk '/define version/ { print $NF }' ${name}.spec) | ||
10 | builddir=${TMPDIR:-/tmp}/${name}-${version} | ||
11 | sourcedir="${topdir}/SOURCES" | ||
12 | buildroot="${topdir}/BUILD/${name}-${version}-root" | ||
13 | mkdir -p ${topdir}/RPMS ${topdir}/SRPMS ${topdir}/SOURCES ${topdir}/BUILD | ||
14 | mkdir -p ${buildroot} ${builddir} | ||
15 | echo "=> Copying sources..." | ||
16 | ( cd .. && tar cf - ./[A-Z]* ./package.json ./bin ./samples ./tests ./modules | tar xf - -C ${builddir} ) | ||
17 | echo "=> Creating source tarball under ${sourcedir}..." | ||
18 | ( cd ${builddir}/.. && tar zcf ${sourcedir}/${name}-${version}.tar.gz ${name}-${version} ) | ||
19 | echo "=> Building RPM..." | ||
20 | #rpmbuild --define "_topdir ${topdir}" --buildroot ${buildroot} --clean -bb ${name}.spec | ||
21 | rpm=$(rpmbuild --define "_topdir ${topdir}" --buildroot ${buildroot} --clean -bb ${name}.spec 2>/dev/null | \ | ||
22 | awk '/\/RPMS\// { print $2; }') | ||
23 | cp ${rpm} ${TMPDIR:-/tmp}/ | ||
24 | rm -fr ${topdir} | ||
25 | echo ${TMPDIR:-/tmp}/${rpm##*/} |
-
Please register or sign in to post a comment