Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions debian/README.Debian
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
dragon-drag-and-drop for Devuan

The binary is named dragon-drag-and-drop for this package to not conflict
with dragonplayer.
Added a manpage with help2man.

-- B. Stack <bgstack15@gmail.com> Mon, 18 Jan 2021 11:25:38 -0500
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dragon-drag-and-drop (1.1.2-1) obs; urgency=low

* Initial release. Closes: packages-want#000

-- B. Stack <bgstack15@gmail.com> Mon, 18 Jan 2021 11:25:38 -0500
18 changes: 18 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Source: dragon-drag-and-drop
Section: x11
Priority: optional
Maintainer: B. Stack <bgstack15@gmail.com>
Build-Depends: debhelper-compat (= 12),
pkg-config,
libgtk-3-dev
Standards-Version: 4.5.0
Homepage: https://github.com/mwh/dragon

Package: dragon-drag-and-drop
Architecture: any
Multi-Arch: foreign
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: simple drag-and-drop source/sink for X or Wayland
If you don't habitually use a file manager, dragging a file
into a web application can be a problem. Dragon solves this
problem by acting as a drag-and-drop source for X.
705 changes: 705 additions & 0 deletions debian/copyright

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions debian/dragon-drag-and-drop.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16.
.TH DRAGON-DRAG-AND-DROP "1" "January 2021" "dragon 1.1.2" "General Commands Manual"
.SH NAME
dragon \- lightweight drag-and-drop source/target
.SH SYNOPSIS
.B dragon-drag-and-drop
[\fI\,OPTION\/\fR] [\fI\,FILENAME\/\fR]
.SH DESCRIPTION
dragon\-drag\-and\-drop \- lightweight DnD source/target
.TP
\fB\-\-and\-exit\fR, \fB\-x\fR
exit after a single completed drop
.TP
\fB\-\-target\fR, \fB\-t\fR
act as a target instead of source
.TP
\fB\-\-keep\fR, \fB\-k\fR
with \fB\-\-target\fR, keep files to drag out
.TP
\fB\-\-print\-path\fR, \fB\-p\fR
with \fB\-\-target\fR, print file paths instead of URIs
.TP
\fB\-\-all\fR, \fB\-a\fR
drag all files at once
.TP
\fB\-\-on\-top\fR, \fB\-T\fR
make window always\-on\-top
.TP
\fB\-\-verbose\fR, \fB\-v\fR
be verbose
.TP
\fB\-\-help\fR
show help
.TP
\fB\-\-version\fR
show version details
.SH COPYRIGHT
Copyright \(co 2014\-2018 Michael Homer
This program comes with ABSOLUTELY NO WARRANTY.
See the source for copying conditions.
.SH MANPAGE
This manpage was generated with help2man and corrected by B. Stack
.B <bgstack15@gmail.com>
1 change: 1 addition & 0 deletions debian/dragon-drag-and-drop.docs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
example/download.sh
12 changes: 12 additions & 0 deletions debian/dragon-drag-and-drop.dsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Format: 3.0 (quilt)
Source: dragon-drag-and-drop
Binary: dragon-drag-and-drop
Architecture: any
Version: 1.1.2-1
Maintainer: B. Stack <bgstack15@gmail.com>
Homepage: https://github.com/mwh/dragon
Standards-Version: 4.5.0
Build-Depends: debhelper-compat (= 12), pkg-config, libgtk-3-dev
Files:
00000000000000000000000000000000 1 dragon-drag-and-drop.orig.tar.gz
00000000000000000000000000000000 1 dragon-drag-and-drop.debian.tar.xz
Empty file.
Empty file.
1 change: 1 addition & 0 deletions debian/dragon-drag-and-drop.manpages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
debian/dragon-drag-and-drop.1
1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# You must remove unused comment lines for the released package.
24 changes: 24 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/make -f

DESTDIR=$(CURDIR)/debian/dragon-drag-and-drop
PREFIX=$(DESTDIR)/usr
BINDIR=$(PREFIX)/bin

DEFINES=-g

%:
dh $@

override_dh_auto_install:
# The install recipe uses some incorrect values like prefix=~/.local/bin so just ignore it entirely
echo DESTDIR=$(DESTDIR)
install -m0755 -d $(PREFIX) $(BINDIR)
# Plus we have to customize the name for Devuan anyway
install -m0755 dragon $(BINDIR)/dragon-drag-and-drop

override_dh_auto_build:
echo DEFINES=$(DEFINES)
dh_auto_build -- DEFINES=$(DEFINES)

override_dh_auto_clean:
rm -f $(CURDIR)/dragon
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
1 change: 1 addition & 0 deletions debian/source/lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
file-without-copyright-information debian/*
2 changes: 2 additions & 0 deletions debian/source/local-options
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#abort-on-upstream-changes
#unapply-patches
2 changes: 2 additions & 0 deletions debian/watch
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# You must remove unused comment lines for the released package.
version=3
65 changes: 65 additions & 0 deletions dragon-drag-and-drop.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# File: dragon-drag-and-drop.spec
# Location: https://gitlab.com/bgstack15/dragon.git
# Author: bgstack15
# Startdate: 2021-01-20
# Title: Rpm spec for dragon-drag-and-drop package
# Purpose: Provide build instructions for rpm for package
# History:
# Usage:
# Reference:
# bgstack15 package
# https://gitlab.com/jeremieglbd/xdragon/-/blob/master/xdragon.spec
# Improve:
# Documentation:
# Dependencies:

%define sname dragon
%define branch packages
%define devtty "/dev/null"
%define debug_package %{nil}

Summary: simple drag-and-drop source/sink for X or Wayland
Name: dragon-drag-and-drop
Version: 1.1.2
Release: 1
License: GPL-3.0
Source0: https://gitlab.com/bgstack15/%{sname}/-/archive/%{branch}/%{sname}-%{branch}.tar.gz
URL: https://github.com/mwh/dragon
Packager: B. Stack <bgstack15@gmail.com>
BuildRequires: gtk3-devel
BuildRequires: gcc

%description
Many programs, particularly web applications, expect files to be dragged
into them now. If you don't habitually use a file manager that is a
problem. dragon is a lightweight drag-and-drop source for X that solves
this problem.

%prep
%setup -q -c %{name}
ls1="$( ls -1 2>/dev/null )"
test -d "${ls1}" && { find "${ls1}" -mindepth 1 -maxdepth 1 -exec mv {} . \; ; }
rmdir "${ls1}"
exit 0

%build
%make_build

%install
%{__install} -m0755 -d %{buildroot}%{_bindir} %{buildroot}%{_pkgdocdir} \
%{buildroot}%{_mandir}/man1
%{__install} -m0755 dragon %{buildroot}%{_bindir}/dragon-drag-and-drop
%{__install} -m0644 example/download.sh %{buildroot}%{_pkgdocdir}
%{__install} -m0644 debian/dragon-drag-and-drop.1 %{buildroot}%{_mandir}/man1

%clean
rm -rf %{buildroot}

%files
%{_bindir}/*
%{_mandir}/man1/*
%doc %{_pkgdocdir}/download.sh

%changelog
* Wed Jan 20 2021 B. Stack <bgstack15@gmail.com> - 1.1.2-1
- Initial rpm spec