ensure correct debian packaging
This commit is contained in:
parent
77c81dc4d3
commit
98306c05b8
|
@ -1,18 +1,9 @@
|
|||
/sdist/
|
||||
/static/*/style.css
|
||||
/static/*/style.css.map
|
||||
/static/minint/css/styles.css
|
||||
/static/minint/css/styles.css.map
|
||||
/src/tmp-*.svg
|
||||
.sass-cache
|
||||
/static/*/_data_uris.scss
|
||||
/static/grandlyon/img/
|
||||
/static/grandlyon-gnm/img/signalement/*.png
|
||||
/static/orleans/img/
|
||||
/static/publik/img/
|
||||
/static/somme-cd80/img/
|
||||
/static/tournai/img/
|
||||
/static/chateauroux/img/
|
||||
/debian/publik-base-theme/
|
||||
/debian/publik-base-theme.substvars
|
||||
/debian/publik-base-theme.debhelper.log
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
@Library('eo-jenkins-lib@master') import eo.Utils
|
||||
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('Packaging') {
|
||||
steps {
|
||||
script {
|
||||
if (env.JOB_NAME == 'rouen-publik-theme' && env.GIT_BRANCH == 'origin/master') {
|
||||
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder rouen-publik-theme'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
script {
|
||||
utils = new Utils()
|
||||
utils.mail_notify(currentBuild, env, 'admin+jenkins-rouen-publik-theme@entrouvert.com')
|
||||
}
|
||||
}
|
||||
success {
|
||||
cleanWs()
|
||||
}
|
||||
}
|
||||
}
|
15
Makefile
15
Makefile
|
@ -6,20 +6,21 @@ prefix = /usr
|
|||
all: css
|
||||
|
||||
publik-base-theme/static/includes/_data_uris.scss: $(wildcard publik-base-theme/static/includes/img/*)
|
||||
cd publik-base-theme
|
||||
python make_data_uris.py static/includes/
|
||||
cd publik-base-theme; python make_data_uris.py static/includes/
|
||||
|
||||
css: publik-base-theme/static/includes/_data_uris.scss
|
||||
css: publik-base-theme/static/includes/_data_uris.scss $(wildcard static/rouen/*.scss)
|
||||
cd static/rouen/ && sass style.scss:style.css
|
||||
rm -rf static/*/.sass-cache/
|
||||
rm -rf static/rouen/.sass-cache/
|
||||
|
||||
clean:
|
||||
rm -rf sdist
|
||||
rm -f static/rouen/_data_uris.scss
|
||||
rm -rf sdist publik-base-theme/static/includes/_data_uris.scss
|
||||
|
||||
DIST_FILES = \
|
||||
Makefile static\
|
||||
templates themes.json \
|
||||
publik-base-theme
|
||||
themes.json \
|
||||
publik-base-theme
|
||||
|
||||
dist: clean
|
||||
-mkdir sdist
|
||||
|
@ -31,7 +32,7 @@ dist: clean
|
|||
|
||||
install:
|
||||
mkdir -p $(DESTDIR)$(prefix)/share/publik/themes/rouen
|
||||
cp -r static templates themes.json $(DESTDIR)$(prefix)/share/publik/themes/rouen
|
||||
cp -r static themes.json $(DESTDIR)$(prefix)/share/publik/themes/rouen
|
||||
|
||||
dist-bzip2: dist
|
||||
-mkdir sdist
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
rouen-publik-theme (0.1-1) unstable; urgency=low
|
||||
|
||||
* Initial packaging.
|
||||
|
||||
-- Emmanuel Cazenave <ecazenave@entrouvert.com> Wed, 27 Nov 2018 07:27:48 +0200
|
|
@ -0,0 +1 @@
|
|||
9
|
|
@ -0,0 +1,14 @@
|
|||
Source: rouen-publik-theme
|
||||
Section: web
|
||||
Priority: optional
|
||||
Maintainer: Emmanuel Cazenave <ecazenave@entrouvert.com>
|
||||
Build-Depends: debhelper (>= 8.0.0), ruby-sass (>= 3.4.23), inkscape
|
||||
Standards-Version: 3.9.4
|
||||
Homepage: http://git.entrouvert.org/rouen-publik-theme.git
|
||||
|
||||
Package: rouen-publik-theme
|
||||
Architecture: all
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, python-xstatic-abrilfatface
|
||||
Conflicts: python-authentic2 (< 2.1.20.742.gb6ee096-0)
|
||||
Breaks: combo (< 0.7.1)
|
||||
Description: Rouen Publik Theme
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
# Sample debian/rules that uses debhelper.
|
||||
# This file was originally written by Joey Hess and Craig Small.
|
||||
# As a special exception, when this file is copied by dh-make into a
|
||||
# dh-make output file, you may use that output file without restriction.
|
||||
# This special exception was added by Craig Small in version 0.37 of dh-make.
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
%:
|
||||
dh $@
|
|
@ -0,0 +1 @@
|
|||
3.0 (quilt)
|
Reference in New Issue