aboutsummaryrefslogtreecommitdiffstats
path: root/setup-files/linux
diff options
context:
space:
mode:
authorJesús Eduardo <heckyel@hyperbola.info>2017-05-31 18:08:31 -0500
committerJesús Eduardo <heckyel@hyperbola.info>2017-05-31 18:08:31 -0500
commite1180428ed3e7634fe1596103511fbb1da05f228 (patch)
tree13de9592bcde7050b089b9644839668024c518b3 /setup-files/linux
downloadlibrevideoconverter-e1180428ed3e7634fe1596103511fbb1da05f228.tar.lz
librevideoconverter-e1180428ed3e7634fe1596103511fbb1da05f228.tar.xz
librevideoconverter-e1180428ed3e7634fe1596103511fbb1da05f228.zip
first commit
Diffstat (limited to 'setup-files/linux')
-rw-r--r--setup-files/linux/debian-precise/changelog5
-rw-r--r--setup-files/linux/debian-precise/compat1
-rw-r--r--setup-files/linux/debian-precise/control17
-rw-r--r--setup-files/linux/debian-precise/copyright38
-rwxr-xr-xsetup-files/linux/debian-precise/rules7
-rw-r--r--setup-files/linux/debian-precise/source/format1
-rw-r--r--setup-files/linux/debian-quantal/changelog5
-rw-r--r--setup-files/linux/debian-quantal/compat1
-rw-r--r--setup-files/linux/debian-quantal/control17
-rw-r--r--setup-files/linux/debian-quantal/copyright38
-rwxr-xr-xsetup-files/linux/debian-quantal/rules7
-rw-r--r--setup-files/linux/debian-quantal/source/format1
-rw-r--r--setup-files/linux/icons/hicolor/16x16/apps/librevideoconverter.pngbin0 -> 693 bytes
-rw-r--r--setup-files/linux/icons/hicolor/22x22/apps/librevideoconverter.pngbin0 -> 1070 bytes
-rw-r--r--setup-files/linux/icons/hicolor/32x32/apps/librevideoconverter.pngbin0 -> 1375 bytes
-rw-r--r--setup-files/linux/icons/hicolor/48x48/apps/librevideoconverter.pngbin0 -> 2617 bytes
-rw-r--r--setup-files/linux/librevideoconverter.desktop11
-rw-r--r--setup-files/linux/setup.py95
18 files changed, 244 insertions, 0 deletions
diff --git a/setup-files/linux/debian-precise/changelog b/setup-files/linux/debian-precise/changelog
new file mode 100644
index 0000000..d0c742b
--- /dev/null
+++ b/setup-files/linux/debian-precise/changelog
@@ -0,0 +1,5 @@
+mirovideoconverter (3.0.2-1ubuntu1~ppa1~precise) precise; urgency=low
+
+ * Initial packaging
+
+ -- Ben Dean-Kawamura <ben@pculture.org> Thu, 27 Dec 2012 13:10:14 -0500
diff --git a/setup-files/linux/debian-precise/compat b/setup-files/linux/debian-precise/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/setup-files/linux/debian-precise/compat
@@ -0,0 +1 @@
+7
diff --git a/setup-files/linux/debian-precise/control b/setup-files/linux/debian-precise/control
new file mode 100644
index 0000000..c0bbda1
--- /dev/null
+++ b/setup-files/linux/debian-precise/control
@@ -0,0 +1,17 @@
+Source: librevideoconverter
+Maintainer: Jesús Eduardo <heckyel@openmailbox.org>
+Section: python
+Priority: optional
+Build-Depends: python-setuptools (>= 0.6b3),
+ python-all (>= 2.7),
+ debhelper (>= 7.4.3)
+Standards-Version: 3.9.3
+
+Package: mirovideoconverter
+Architecture: all
+Depends: ${misc:Depends},
+ ${python:Depends},
+ python-gtk2,
+ ffmpeg,
+ ffmpeg2theora
+Description: Simple video converter for WebM (vp8), Ogg Theora, MP4 and others, fork of Miro Video Converter.
diff --git a/setup-files/linux/debian-precise/copyright b/setup-files/linux/debian-precise/copyright
new file mode 100644
index 0000000..b5f4d88
--- /dev/null
+++ b/setup-files/linux/debian-precise/copyright
@@ -0,0 +1,38 @@
+This package was made for the PCF Ubuntu PPA by Ben Dean-Kawamura
+<ben@pculture.org> on Thu, 27 Dec 2012 13:10:14 -0500
+
+The current maintainer is Jesús Eduardo <heckyel@openmailbox.org>
+
+It was downloaded from:
+
+ https://notabug.org/Heckyel/LibreVideoConverter
+
+-----
+
+Files: *
+Copyright: © 2017 Jesús Eduardo (Heckyel)
+License: GPL-3+ | other
+ You must obey the GNU General Public License in all respects for
+ all of the code used other than OpenSSL. If you modify file(s)
+ with this exception, you may extend this exception to your version
+ of the file(s), but you are not obligated to do so. If you do not
+ wish to do so, delete this exception statement from your
+ version. If you delete this exception statement from all source
+ files in the program, then also delete it here.
+
+On Debian systems, the complete text of the GNU General
+
+Files: debian/*
+Copyright: © 2017 Jesús Eduardo (Heckyel)
+License: GPL-3+ | other
+ You must obey the GNU General Public License in all respects for
+ all of the code used other than OpenSSL. If you modify file(s)
+ with this exception, you may extend this exception to your version
+ of the file(s), but you are not obligated to do so. If you do not
+ wish to do so, delete this exception statement from your
+ version. If you delete this exception statement from all source
+ files in the program, then also delete it here.
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+Public License can be found in `/usr/share/common-licenses/GPL'.
diff --git a/setup-files/linux/debian-precise/rules b/setup-files/linux/debian-precise/rules
new file mode 100755
index 0000000..1c69663
--- /dev/null
+++ b/setup-files/linux/debian-precise/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+# This file was automatically generated by stdeb 0.6.0+git at
+# Thu, 27 Dec 2012 13:08:13 -0500
+
+%:
+ dh $@ --with python2 --buildsystem=python_distutils
diff --git a/setup-files/linux/debian-precise/source/format b/setup-files/linux/debian-precise/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/setup-files/linux/debian-precise/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/setup-files/linux/debian-quantal/changelog b/setup-files/linux/debian-quantal/changelog
new file mode 100644
index 0000000..77fb6fa
--- /dev/null
+++ b/setup-files/linux/debian-quantal/changelog
@@ -0,0 +1,5 @@
+librevideoconverter (3.0.2-1ubuntu1~ppa1~quantal) quantal; urgency=low
+
+ * Initial packaging
+
+ -- Jesús Eduardo <heckyel@openmailbox.org> Thu, 27 Dec 2017 13:10:14 -0500
diff --git a/setup-files/linux/debian-quantal/compat b/setup-files/linux/debian-quantal/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/setup-files/linux/debian-quantal/compat
@@ -0,0 +1 @@
+7
diff --git a/setup-files/linux/debian-quantal/control b/setup-files/linux/debian-quantal/control
new file mode 100644
index 0000000..fbe150e
--- /dev/null
+++ b/setup-files/linux/debian-quantal/control
@@ -0,0 +1,17 @@
+Source: librevideoconverter
+Maintainer: Jesús Eduardo <heckyel@openmailbox.org>
+Section: python
+Priority: optional
+Build-Depends: python-setuptools (>= 0.6b3),
+ python-all (>= 2.7),
+ debhelper (>= 7.4.3)
+Standards-Version: 3.9.3
+
+Package: librevideoconverter
+Architecture: all
+Depends: ${misc:Depends},
+ ${python:Depends},
+ python-gtk2,
+ ffmpeg
+ ffmpeg2theora
+Description: Simple video converter for WebM (vp8), Ogg Theora, MP4 and others, fork of Miro Video Converter.
diff --git a/setup-files/linux/debian-quantal/copyright b/setup-files/linux/debian-quantal/copyright
new file mode 100644
index 0000000..c7d1a25
--- /dev/null
+++ b/setup-files/linux/debian-quantal/copyright
@@ -0,0 +1,38 @@
+This package was made for the PCF Ubuntu PPA by Ben Dean-Kawamura
+<ben@pculture.org> on Thu, 27 Dec 2012 13:10:14 -0500
+
+The current maintainer is Jesús Eduardo <heckyel@openmailbox.org>
+
+It was downloaded from:
+
+ https://notabug.org/Heckyel/LibreVideoConverter
+
+-----
+
+Files: *
+Copyright: © 2017 Jesus Eduardo (Heckyel)
+License: GPL-2+ | other
+ You must obey the GNU General Public License in all respects for
+ all of the code used other than OpenSSL. If you modify file(s)
+ with this exception, you may extend this exception to your version
+ of the file(s), but you are not obligated to do so. If you do not
+ wish to do so, delete this exception statement from your
+ version. If you delete this exception statement from all source
+ files in the program, then also delete it here.
+
+On Debian systems, the complete text of the GNU General
+
+Files: debian/*
+Copyright: © 2017 Jesus Eduardo (Heckyel)
+License: GPL-2+ | other
+ You must obey the GNU General Public License in all respects for
+ all of the code used other than OpenSSL. If you modify file(s)
+ with this exception, you may extend this exception to your version
+ of the file(s), but you are not obligated to do so. If you do not
+ wish to do so, delete this exception statement from your
+ version. If you delete this exception statement from all source
+ files in the program, then also delete it here.
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+Public License can be found in `/usr/share/common-licenses/GPL'.
diff --git a/setup-files/linux/debian-quantal/rules b/setup-files/linux/debian-quantal/rules
new file mode 100755
index 0000000..1c69663
--- /dev/null
+++ b/setup-files/linux/debian-quantal/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+# This file was automatically generated by stdeb 0.6.0+git at
+# Thu, 27 Dec 2012 13:08:13 -0500
+
+%:
+ dh $@ --with python2 --buildsystem=python_distutils
diff --git a/setup-files/linux/debian-quantal/source/format b/setup-files/linux/debian-quantal/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/setup-files/linux/debian-quantal/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/setup-files/linux/icons/hicolor/16x16/apps/librevideoconverter.png b/setup-files/linux/icons/hicolor/16x16/apps/librevideoconverter.png
new file mode 100644
index 0000000..da270ee
--- /dev/null
+++ b/setup-files/linux/icons/hicolor/16x16/apps/librevideoconverter.png
Binary files differ
diff --git a/setup-files/linux/icons/hicolor/22x22/apps/librevideoconverter.png b/setup-files/linux/icons/hicolor/22x22/apps/librevideoconverter.png
new file mode 100644
index 0000000..fbf0467
--- /dev/null
+++ b/setup-files/linux/icons/hicolor/22x22/apps/librevideoconverter.png
Binary files differ
diff --git a/setup-files/linux/icons/hicolor/32x32/apps/librevideoconverter.png b/setup-files/linux/icons/hicolor/32x32/apps/librevideoconverter.png
new file mode 100644
index 0000000..c042992
--- /dev/null
+++ b/setup-files/linux/icons/hicolor/32x32/apps/librevideoconverter.png
Binary files differ
diff --git a/setup-files/linux/icons/hicolor/48x48/apps/librevideoconverter.png b/setup-files/linux/icons/hicolor/48x48/apps/librevideoconverter.png
new file mode 100644
index 0000000..24b7f8d
--- /dev/null
+++ b/setup-files/linux/icons/hicolor/48x48/apps/librevideoconverter.png
Binary files differ
diff --git a/setup-files/linux/librevideoconverter.desktop b/setup-files/linux/librevideoconverter.desktop
new file mode 100644
index 0000000..349bcb2
--- /dev/null
+++ b/setup-files/linux/librevideoconverter.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Name=Libre Video Converter
+GenericName=Media player
+Comment=A siple video converter for WebM (vp8), Ogg Theora, MP4 and others, fork of Miro Video Converter.
+Comment[es]=Un convertidor simple de vídeo para los formatos Webm (vp8), Ogg Theora, MP4 y otros, basado en Miro Video Converter.
+Icon=librevideoconverter
+TryExec=libre-video-converter.py
+Exec=libre-video-converter.py %F
+Terminal=false
+Categories=AudioVideo;AudioVideoEditing; \ No newline at end of file
diff --git a/setup-files/linux/setup.py b/setup-files/linux/setup.py
new file mode 100644
index 0000000..841e86a
--- /dev/null
+++ b/setup-files/linux/setup.py
@@ -0,0 +1,95 @@
+import glob
+import os
+import shutil
+import subprocess
+import sys
+from distutils.cmd import Command
+from setuptools import setup
+
+if sys.version < '2.7':
+ raise RuntimeError('LVC requires Python 2.7')
+
+def icon_data_files():
+ sizes = [16, 22, 32, 48]
+ data_files = []
+ for size in sizes:
+ d = os.path.join("icons", "hicolor", "%sx%s" % (size, size), "apps")
+ source = os.path.join(SETUP_DIR, d, "librevideoconverter.png")
+ dest = os.path.join("/usr/share/", d)
+ data_files.append((dest, [source]))
+
+ return data_files
+
+def application_data_files():
+ return [
+ ('/usr/share/applications',
+ [os.path.join(SETUP_DIR, 'librevideoconverter.desktop')]),
+ ]
+
+def data_files():
+ return application_data_files() + icon_data_files()
+
+class sdist_deb(Command):
+ description = ("Build a debian source package.")
+ user_options = [
+ ('dist-dir=', 'd',
+ "directory to put the source distribution archive(s) in "
+ "[default: dist]"),
+ ]
+
+ def initialize_options(self):
+ self.dist_dir = None
+
+ def finalize_options(self):
+ if self.dist_dir is None:
+ self.dist_dir = 'dist'
+ self.dist_dir = os.path.abspath(self.dist_dir)
+
+ def run(self):
+ self.run_command("sdist")
+ self.setup_dirs()
+ for debian_dir in glob.glob(os.path.join(SETUP_DIR, 'debian-*')):
+ self.build_for_release(debian_dir)
+ os.chdir(self.orig_dir)
+ print
+ print "debian source build complete"
+ print "files are in %s" % self.work_dir
+
+ def build_for_release(self, debian_dir):
+ os.chdir(self.work_dir)
+ source_tree = os.path.join(self.work_dir,
+ 'librevideoconverter-%s' % VERSION)
+ if os.path.exists(source_tree):
+ shutil.rmtree(source_tree)
+ self.extract_tarball()
+ self.copy_debian_directory(debian_dir)
+ os.chdir('librevideoconverter-%s' % VERSION)
+ subprocess.check_call(['dpkg-buildpackage', '-S'])
+
+ def setup_dirs(self):
+ self.orig_dir = os.getcwd()
+ self.work_dir = os.path.join(self.dist_dir, 'deb')
+ if os.path.exists(self.work_dir):
+ shutil.rmtree(self.work_dir)
+ os.makedirs(self.work_dir)
+
+ def extract_tarball(self):
+ tarball = os.path.join(self.dist_dir,
+ "librevideoconverter-%s.tar.gz" % VERSION)
+ subprocess.check_call(["tar", "zxf", tarball])
+ shutil.copyfile(tarball,
+ "librevideoconverter_%s.orig.tar.gz" % VERSION)
+
+ def copy_debian_directory(self, debian_dir):
+ dest = os.path.join(self.work_dir,
+ 'librevideoconverter-%s/debian' % VERSION)
+ shutil.copytree(debian_dir, dest)
+
+setup(
+ cmdclass={
+ 'sdist_deb': sdist_deb,
+ },
+ data_files=data_files(),
+ scripts=['scripts/libre-video-converter.py'],
+ **SETUP_ARGS
+)