--- /dev/null
+.download_stamp
+downloads
--- /dev/null
+VERSION = $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
+DIST = $(shell dpkg-parsechangelog | sed -n 's/^Distribution: //p')
+
+REDMINE = https://redmine.auf.org
+PROJECT = modeles-openoffice
+HEADERS =
+#HEADERS = --header='Pragma: no-cache'
+
+all: build
+
+.download_stamp:
+ mkdir -p downloads
+ cd downloads ; \
+ wget -O- $(HEADERS) $(REDMINE)/projects/$(PROJECT)/files \
+ | sed -n '/class="filename"/s/^.*href="\([^"]*\)".*$$/\1/p' \
+ | while read path ; do wget -N $(HEADERS) $(REDMINE)$$path ; done
+ touch .download_stamp
+
+build: .download_stamp
+
+install:
+ cd downloads ; for file in * ; do \
+ install -m 0644 $$file $(DESTDIR)/usr/share/modeles-openoffice/AuF/ \
+ ; done
+
+clean:
+
+mrproper:
+ rm -rf .download_stamp downloads
+
+test:
+ debuild -I.git -I*.ex -b -us -uc && sudo debi
+
+release:
+ debuild -I.git -I*.ex -tc && debrelease --dput $(DIST)-test
+
--- /dev/null
+auf-modeles-openoffice (1.0) jaunty; urgency=low
+
+ * Version initiale
+
+ -- Progfou <jean-christophe.andre@auf.org> Wed, 31 Mar 2010 00:23:12 +0700
--- /dev/null
+Source: auf-modeles-openoffice
+Section: text
+Priority: optional
+Maintainer: Progfou <jean-christophe.andre@auf.org>
+Build-Depends: debhelper (>= 5), wget
+Standards-Version: 3.7.2
+
+Package: auf-modeles-openoffice
+Architecture: all
+Depends: openoffice.org-common (>= 1:3.1.1) | openoffice.org3 (>= 3.2.0)
+Description: modèles AuF pour OpenOffice.org
+ Ce paquet fournit des modèles de documents AuF pour OpenOffice.org.
+ .
+ Ces modèles viennent du projet « Modèles pour OpenOffice.org » sur
+ https://redmine.auf.org/projects/modeles-openoffice/
+Homepage: https://redmine.auf.org/projects/modeles-openoffice/
+
--- /dev/null
+This package was debianized by Progfou <jean-christophe.andre@auf.org> on
+Wed, 31 Mar 2010 00:30:29 +0700.
+
+It was downloaded from http://git.auf.org/?p=modeles-openoffice.git
+
+Upstream Author:
+
+ Progfou <jean-christophe.andre@auf.org>
+
+Copyright Holder:
+
+ Copyright (C) 2010 Agence universitaire de la Francophonie
+ http://www.auf.org/
+
+License:
+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+The Debian packaging is (C) 2010, Progfou <jean-christophe.andre@auf.org>
+and is licensed under the GPL, see above.
+
--- /dev/null
+usr/share/modeles-openoffice/AuF
--- /dev/null
+#!/bin/sh
+
+set -e
+
+TEMPLATEDIR="/usr/share/modeles-openoffice/AuF"
+
+if [ "$1" = "configure" -o "$1" = "upgrade" ]; then
+ cd "$TEMPLATEDIR"
+ for dir in \
+ /usr/lib/openoffice/basis*/share/template/fr \
+ /opt/openoffice.org/basis*/share/template/fr
+ do
+ mkdir -p $dir/AuF
+ for file in *
+ do
+ test -L $dir/AuF/$file || ln -s $TEMPLATEDIR/$file $dir/AuF/
+ done
+ done
+fi
+
+#DEBHELPER#
+
+exit 0
--- /dev/null
+#!/bin/sh
+
+set -e
+
+TEMPLATEDIR="/usr/share/modeles-openoffice/AuF"
+
+if [ "$1" = "remove" -o "$1" = "purge" ] ; then
+ cd "$TEMPLATEDIR"
+ for dir in \
+ /usr/lib/openoffice/basis*/share/template/fr \
+ /opt/openoffice.org/basis*/share/template/fr
+ do
+ for file in *
+ do
+ test -L $dir/AuF/$file && rm $dir/AuF/$file
+ done
+ rmdir $dir/AuF >/dev/null 2>&1 || true
+ done
+fi
+
+#DEBHELPER#
+
+exit 0
--- /dev/null
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+#export DH_VERBOSE=1
+
+configure:
+
+build:
+ dh_testdir
+ $(MAKE)
+
+clean:
+ dh_testdir
+ dh_testroot
+ $(MAKE) clean
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+ $(MAKE) DESTDIR=$(CURDIR)/debian/auf-modeles-openoffice install
+
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+# dh_installexamples
+# dh_install
+# dh_installmenu
+# dh_installdebconf
+# dh_installmime
+# dh_installman
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary-arch: build install
+
+binary: binary-indep binary-arch
+.PHONY: configure build clean install binary binary-indep binary-arch