Skip to content

Commit dba6f84

Browse files
committed
Merge pull request andris9#37 from dr-co/master
Debian infrastructure
2 parents 2bb8413 + 40d54dd commit dba6f84

File tree

10 files changed

+95
-0
lines changed

10 files changed

+95
-0
lines changed

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
libjs-jstorage (0.3.1-1) unstable; urgency=low
2+
3+
* Initial release, closes: #696432.
4+
5+
-- Dmitry E. Oboukhov <unera@debian.org> Thu, 20 Dec 2012 20:35:00 +0400

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8

debian/control

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Source: libjs-jstorage
2+
Maintainer: Dmitry E. Oboukhov <unera@debian.org>
3+
Section: web
4+
Priority: optional
5+
Build-Depends: debhelper (>= 8),
6+
cdbs,
7+
yui-compressor
8+
Standards-Version: 3.9.3
9+
Homepage: http://www.jstorage.info/
10+
11+
Package: libjs-jstorage
12+
Architecture: all
13+
Depends: ${misc:Depends}, ${shlibs:Depends}
14+
Recommends: libjs-jquery, libjs-prototype
15+
Description: store data locally with JavaScript
16+
Storage is a cross-browser key-value store database to store data locally
17+
in the browser - jStorage supports all major browsers, both in desktop
18+
and in mobile.

debian/copyright

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
2+
Maintainer: Andris Reinman <andris.reinman@gmail.com>
3+
Source: http://www.jstorage.info/
4+
Name: jstorage
5+
6+
Files: debian/*
7+
Copyright: 2012, Dmitry E. Oboukhov <unera@debian.org>
8+
License: MIT
9+
10+
Files: *
11+
Copyright: 2010-2012, Andris Reinman <andris.reinman@gmail.com>
12+
License: MIT
13+
Permission is hereby granted, free of charge, to any person obtaining a copy
14+
of this software and associated documentation files (the "Software"), to deal
15+
in the Software without restriction, including without limitation the rights
16+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17+
copies of the Software, and to permit persons to whom the Software is
18+
furnished to do so, subject to the following conditions:
19+
.
20+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26+
SOFTWARE.

debian/libjs-jstorage.dirs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/usr/share/javascript/jstorage/
2+
/usr/share/docs/libjs-jstorage/examples/

debian/libjs-jstorage.docs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
README.md

debian/libjs-jstorage.install

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
build/jstorage.min.js /usr/share/javascript/jstorage/
2+
build/jstorage.js /usr/share/javascript/jstorage/
3+
test.html /usr/share/doc/libjs-jstorage/examples
4+
build/test.min.html /usr/share/doc/libjs-jstorage/examples
5+
tests /usr/share/doc/libjs-jstorage/examples
6+
build/testrunner.min.html /usr/share/doc/libjs-jstorage/examples/tests/

debian/libjs-jstorage.links

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/usr/share/javascript/jstorage/jstorage.js /usr/share/docs/libjs-jstorage/examples/jstorage.js
2+
/usr/share/javascript/jstorage/jstorage.min.js /usr/share/docs/libjs-jstorage/examples/jstorage.min.js

debian/rules

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/usr/bin/make -f
2+
3+
include /usr/share/cdbs/1/rules/debhelper.mk
4+
5+
package := $(shell dpkg-parsechangelog|grep ^Source|awk '{print $$2}')
6+
version := $(shell dpkg-parsechangelog|grep ^Version|awk '{print $$2}' \
7+
|sed 's/-[[:digit:]]\+$$//')
8+
9+
clean::
10+
rm -fr build
11+
12+
build/stamp:
13+
mkdir -p build
14+
touch $@
15+
16+
build/libjs-jstorage:: build/stamp
17+
install -m 0644 jstorage.js build/
18+
yui-compressor --type js \
19+
--charset utf-8 \
20+
--nomunge \
21+
--disable-optimizations \
22+
--preserve-semi \
23+
build/jstorage.js -o build/jstorage.min.js
24+
sed 's/"jstorage.js"/"jstorage.min.js"/' test.html > build/test.min.html
25+
sed 's/jstorage.js"/jstorage.min.js"/' tests/testrunner.html \
26+
> build/testrunner.min.html
27+
28+
tarball: clean
29+
test -d ../$(package)-$(version)
30+
cd .. && \
31+
tar --exclude=.git --exclude=debian \
32+
-czvf $(package)_$(version).orig.tar.gz \
33+
$(package)-$(version)

debian/source/format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (quilt)

0 commit comments

Comments
 (0)