releasing version 1.0
authorProgfou <jean-christophe.andre@auf.org>
Tue, 30 Mar 2010 19:33:36 +0000 (02:33 +0700)
committerProgfou <jean-christophe.andre@auf.org>
Tue, 30 Mar 2010 19:33:36 +0000 (02:33 +0700)
auf-modeles-openoffice/.gitignore [new file with mode: 0644]
auf-modeles-openoffice/Makefile [new file with mode: 0644]
auf-modeles-openoffice/debian/changelog [new file with mode: 0644]
auf-modeles-openoffice/debian/compat [new file with mode: 0644]
auf-modeles-openoffice/debian/control [new file with mode: 0644]
auf-modeles-openoffice/debian/copyright [new file with mode: 0644]
auf-modeles-openoffice/debian/dirs [new file with mode: 0644]
auf-modeles-openoffice/debian/postinst [new file with mode: 0644]
auf-modeles-openoffice/debian/prerm [new file with mode: 0644]
auf-modeles-openoffice/debian/rules [new file with mode: 0755]

diff --git a/auf-modeles-openoffice/.gitignore b/auf-modeles-openoffice/.gitignore
new file mode 100644 (file)
index 0000000..2e5ed21
--- /dev/null
@@ -0,0 +1,2 @@
+.download_stamp
+downloads
diff --git a/auf-modeles-openoffice/Makefile b/auf-modeles-openoffice/Makefile
new file mode 100644 (file)
index 0000000..029dabf
--- /dev/null
@@ -0,0 +1,36 @@
+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
+
diff --git a/auf-modeles-openoffice/debian/changelog b/auf-modeles-openoffice/debian/changelog
new file mode 100644 (file)
index 0000000..38c15e5
--- /dev/null
@@ -0,0 +1,5 @@
+auf-modeles-openoffice (1.0) jaunty; urgency=low
+
+  * Version initiale
+
+ -- Progfou <jean-christophe.andre@auf.org>  Wed, 31 Mar 2010 00:23:12 +0700
diff --git a/auf-modeles-openoffice/debian/compat b/auf-modeles-openoffice/debian/compat
new file mode 100644 (file)
index 0000000..7ed6ff8
--- /dev/null
@@ -0,0 +1 @@
+5
diff --git a/auf-modeles-openoffice/debian/control b/auf-modeles-openoffice/debian/control
new file mode 100644 (file)
index 0000000..44521ac
--- /dev/null
@@ -0,0 +1,17 @@
+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/
+
diff --git a/auf-modeles-openoffice/debian/copyright b/auf-modeles-openoffice/debian/copyright
new file mode 100644 (file)
index 0000000..406cd42
--- /dev/null
@@ -0,0 +1,36 @@
+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.
+
diff --git a/auf-modeles-openoffice/debian/dirs b/auf-modeles-openoffice/debian/dirs
new file mode 100644 (file)
index 0000000..755f569
--- /dev/null
@@ -0,0 +1 @@
+usr/share/modeles-openoffice/AuF
diff --git a/auf-modeles-openoffice/debian/postinst b/auf-modeles-openoffice/debian/postinst
new file mode 100644 (file)
index 0000000..9099402
--- /dev/null
@@ -0,0 +1,23 @@
+#!/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
diff --git a/auf-modeles-openoffice/debian/prerm b/auf-modeles-openoffice/debian/prerm
new file mode 100644 (file)
index 0000000..7d7c290
--- /dev/null
@@ -0,0 +1,23 @@
+#!/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
diff --git a/auf-modeles-openoffice/debian/rules b/auf-modeles-openoffice/debian/rules
new file mode 100755 (executable)
index 0000000..4ddca45
--- /dev/null
@@ -0,0 +1,46 @@
+#!/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