[caja-rename] 01/02: debian/

Mike Gabriel sunweaver at debian.org
Sat Aug 12 19:01:26 UTC 2017


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository caja-rename.

commit 03b1a6ccd36533ddd83db37e2acad93ff4b95bc4
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Sat Aug 12 14:53:06 2017 -0400

    debian/
    
    initial packaging draft
---
 debian/changelog                         |  5 +++
 debian/compat                            |  1 +
 debian/control                           | 38 +++++++++++++++++++++
 debian/copyright                         | 30 +++++++++++++++++
 debian/files                             |  1 +
 debian/patches/1001_ignore-potfile.patch | 28 ++++++++++++++++
 debian/patches/README                    |  3 ++
 debian/patches/series                    |  1 +
 debian/rules                             | 57 ++++++++++++++++++++++++++++++++
 debian/source/format                     |  1 +
 debian/watch                             |  2 ++
 11 files changed, 167 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d8ace93
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+caja-rename (17.3.28~bzr14+repack1-1) UNRELEASED; urgency=medium
+
+  * Initial release to Debian. (Closes: #871928).
+
+ -- Mike Gabriel <sunweaver at debian.org>  Sat, 12 Aug 2017 14:25:22 -0400
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..449b2d8
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,38 @@
+Source: caja-rename
+Section: utils
+Priority: optional
+Maintainer: MATE Packaging Team <pkg-mate-team at lists.alioth.debian.org>
+Uploaders:
+ Mike Gabriel <sunweaver at debian.org>,
+ Robert Tari <robert.tari at gmail.com>,
+Build-Depends:
+ debhelper (>= 10),
+ dh-python,
+ python (>= 2.7),
+ python-setuptools,
+ python-polib,
+Standards-Version: 4.0.1
+Homepage: https://tari.in/www/software/cajarename/
+Vcs-Browser: https://anonscm.debian.org/git/pkg-mate/caja-rename.git
+Vcs-Git: https://anonscm.debian.org/git/pkg-mate/caja-rename.git
+X-Python-Version: >= 2.7
+
+Package: caja-rename
+Architecture: all
+Depends:
+ ${misc:Depends},
+ ${python:Depends},
+ python-gi,
+ gir1.2-gtk-3.0,
+ caja,
+ python-caja,
+Breaks: cajarename,
+Replaces: cajarename,
+Description: Batch renaming extension for Caja
+ An extension for the Caja file browser allowing users to rename multiple
+ files/folders in a single pass.
+ .
+ The application can change the case, insert, replace and delete strings,
+ as well as enumerate the selection. Any changes are instantly visible in
+ the preview list. The user interface strives to be as simple as
+ possible, without confusing advanced operations.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..47a26b2
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,30 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: cajarename
+Upstream-Contact: Robert Tari <robert.tari at gmail.com>
+Source: https://code.launchpad.net/~robert-tari/cajarename/trunk
+
+Files: *
+Copyright: 2017, Robert Tari <robert.tari at gmail.com>
+License: GPL-3+
+
+Files: debian/*
+Copyright: 2017, Robert Tari <robert.tari at gmail.com>
+  2017, Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
+License: GPL-3+
+
+License: GPL-3+
+ This program 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 3 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 program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
diff --git a/debian/files b/debian/files
new file mode 100644
index 0000000..7fa5606
--- /dev/null
+++ b/debian/files
@@ -0,0 +1 @@
+caja-rename_17.3.28~bzr14+repack1-1_source.buildinfo utils optional
diff --git a/debian/patches/1001_ignore-potfile.patch b/debian/patches/1001_ignore-potfile.patch
new file mode 100644
index 0000000..3b213d7
--- /dev/null
+++ b/debian/patches/1001_ignore-potfile.patch
@@ -0,0 +1,28 @@
+Description: Ignore all non-.po files in po/ subfolder.
+Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
+
+--- a/setup.py
++++ b/setup.py
+@@ -11,16 +11,16 @@
+ 
+     for strFilename in lstFilenames:
+ 
+-        strLocale = os.path.splitext(strFilename)[0]
++        if not strFilename.endswith('.po'): continue
+ 
+-        if strLocale != APPNAME:
++        strLocale = os.path.splitext(strFilename)[0]
+ 
+-            strLocaleDir = 'data/usr/share/locale/' + strLocale + '/LC_MESSAGES/'
++        strLocaleDir = 'data/usr/share/locale/' + strLocale + '/LC_MESSAGES/'
+ 
+-            if not os.path.isdir(strLocaleDir):
+-                os.makedirs(strLocaleDir)
++        if not os.path.isdir(strLocaleDir):
++            os.makedirs(strLocaleDir)
+ 
+-            polib.pofile('po/' + strFilename).save_as_mofile(strLocaleDir + APPNAME + '.mo')
++        polib.pofile('po/' + strFilename).save_as_mofile(strLocaleDir + APPNAME + '.mo')
+ 
+ for strRoot, lstDirnames, lstFilenames in os.walk('data'):
+ 
diff --git a/debian/patches/README b/debian/patches/README
new file mode 100644
index 0000000..80c1584
--- /dev/null
+++ b/debian/patches/README
@@ -0,0 +1,3 @@
+0xxx: Grabbed from upstream development.
+1xxx: Possibly relevant for upstream adoption.
+2xxx: Only relevant for official Debian release.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6ee6558
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+1001_ignore-potfile.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..180b135
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,57 @@
+#!/usr/bin/make -f
+# -*- mode: makefile; coding: utf-8 -*-
+
+include /usr/share/dpkg/pkg-info.mk
+
+NULL  =
+PKD   = $(word 2, abspath $(dir $(MAKEFILE_LIST)))
+PKG   = $(DEB_SOURCE)
+UVER  = $(shell echo $(DEB_VERSION) | cut -d "-" -f1)
+DTYPE = +repack1
+VER  ?= $(subst $(DTYPE),,$(UVER))
+REV   = $(shell echo $(VER) | perl -ne 'print "$$1" if m/(?:git|svn|hg|bzr)(\d+)/;')
+
+
+%:
+	dh ${@} --with python2
+
+override_dh_installchangelogs:
+	dh_installchangelogs ChangeLog.bzr
+
+
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -Rfv data/usr/share/locale
+	rm -fv cajarename.egg-info/PKG-INFO
+	rm -fv cajarename.egg-info/SOURCES.txt
+	rm -fv cajarename.egg-info/dependency_links.txt
+	rm -fv cajarename.egg-info/requires.txt
+	rm -fv cajarename.egg-info/top_level.txt
+
+override_dh_fixperms:
+	dh_fixperms
+	chmod a-x debian/*/usr/share/cajarename/cajarename2.glade
+
+## http://wiki.debian.org/onlyjob/get-orig-source
+.PHONY: get-orig-source
+get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.xz $(info I: $(PKG)_$(VER)$(DTYPE))
+	@
+
+## checkout from bzr (add "bzr (>= 2.6.0~bzr6520)" to Build-Depends, see #666496)
+UURL = lp:cajarename
+$(PKG)_$(VER)$(DTYPE).orig.tar.xz:
+	$(if $(wildcard $(PKG)-$(VER)),$(error $(PKG)-$(VER) exist, aborting..))
+	bzr checkout --hardlink --lightweight --revision=$(REV) $(UURL) $(PKG)-$(VER) \
+	    || $(RM) -r $(PKG)-$(VER)
+	@echo "# Creating ChangeLog..."
+	cd $(PKG)-$(VER) && bzr log --log-format=line > ChangeLog.bzr
+	@echo "# Modifying..."
+	cd $(PKG)-$(VER) && rm -Rfv \
+	    .bzr-builddeb \
+	    .bzr \
+	    debian \
+	    $(NULL)
+	@echo "# Packing..."
+	find -L "$(PKG)-$(VER)" -xdev -type f -print | sort \
+	    | XZ_OPT="-6v" tar -caf "../$(PKG)_$(VER)$(DTYPE).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \
+	    && $(RM) -r "$(PKG)-$(VER)"
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..eaee49a
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://launchpad.net/cajarename/+download .*/dbus-test-runner-([0-9.]+)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/caja-rename.git



More information about the pkg-mate-commits mailing list