Skip to content
Browse files

some debian fixes

  • Loading branch information...
1 parent 194816d commit 2ac158d430488f43ff1df4e26e3186e2256b463e @unera unera committed Dec 18, 2012
Showing with 24 additions and 15 deletions.
  1. +10 −3 debian/control
  2. +0 −12 debian/copyright
  3. +14 −0 debian/rules
View
13 debian/control
@@ -1,14 +1,21 @@
Source: libmojolicious-plugin-human-perl
Section: perl
Priority: optional
-Maintainer: Roman V. Nikolaev <rshadow@rambler.ru>
-Build-Depends: debhelper (>= 8)
+Maintainer: Dmitry E. Oboukhov <unera@debian.org>
+Uploaders: Roman V. Nikolaev <rshadow@rambler.ru>
+Build-Depends: debhelper (>= 8),
+ libmojolicious-perl,
+ libdatetime-perl,
+ libdatetime-format-dateparse-perl
Build-Depends-Indep: perl
Standards-Version: 3.9.3
Homepage: http://search.cpan.org/dist/Mojolicious-Plugin-Human/
Package: libmojolicious-plugin-human-perl
+Depends: ${misc:Depends}, ${perl:Depends},
+ libmojolicious-perl,
+ libdatetime-perl,
+ libdatetime-format-dateparse-perl
Architecture: all
-Depends: ${misc:Depends}, ${perl:Depends}
Description: Helpers to print values as human readable form.
You can use this module in Mojo template engine to make you users happy.
View
12 debian/copyright
@@ -3,22 +3,10 @@ Upstream-Name: Mojolicious-Plugin-Human
Source: http://search.cpan.org/dist/Mojolicious-Plugin-Human/
Upstream-Contact: Dmitry E. Oboukhov <unera@debian.org>
Roman V. Nikolaev <rshadow@rambler.ru>
-DISCLAIMER: This copyright info was automatically extracted
- from the perl module. It may not be accurate, so you better
- check the module sources in order to ensure the module for its
- inclusion in Debian or for general legal information. Please,
- if licensing information is incorrectly generated, file a bug
- on dh-make-perl.
- NOTE: Don't forget to remove this disclaimer once you are happy
- with this file.
Files: *
Copyright: Dmitry E. Oboukhov <unera@debian.org>
Roman V. Nikolaev <rshadow@rambler.ru>
-License: Artistic
-
-Files: debian/*
-Copyright: 2012, Roman V. Nikolaev <rshadow@rambler.ru>
License: GPL-1+ or Artistic
License: GPL-1+
View
14 debian/rules
@@ -1,4 +1,18 @@
#!/usr/bin/make -f
+PKG := $(shell dpkg-parsechangelog|grep ^Source|awk '{print $$2}')
+MOD := $(shell cat Makefile.PL|grep VERSION_FROM \
+ |sed 's/[[:space:]]\+//g'|sed 's/.*lib/lib/'|sed 's/\.pm.*$$/.pm/')
+MV := $(shell perl -le \
+ "`grep VERSION $(MOD)`; print \$$VERSION")
+DV := $(shell dpkg-parsechangelog |grep ^Version \
+ |awk '{print $$2}'|sed 's/-[[:digit:]]\+$$//')
+
+tarball: clean
+ test "$(MOD) v$(MV)" = "$(MOD) v$(DV)"
+ cd .. && \
+ tar --exclude=debian --exclude=.git -czvf \
+ $(PKG)_$(MV).orig.tar.gz \
+ $(PKG)-$(MV)
%:
dh $@

0 comments on commit 2ac158d

Please sign in to comment.
Something went wrong with that request. Please try again.