[dwb] Initial import (#799694).

Sébastien Willmann wilqu at fedoraproject.org
Tue Mar 6 18:53:16 UTC 2012


commit 7de3eb2bc7246c927aa616539a89378c1b92d969
Author: Sébastien Willmann <Sébastien Willmann sebastien.willmann at gmail.com>
Date:   Tue Mar 6 19:52:16 2012 +0100

    Initial import (#799694).

 .gitignore         |    1 +
 dwb-mimetype.patch |    9 ++++++++
 dwb.spec           |   58 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 4 files changed, 69 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2b853fa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dwb-2012.02.01.tar.gz
diff --git a/dwb-mimetype.patch b/dwb-mimetype.patch
new file mode 100644
index 0000000..44dc36c
--- /dev/null
+++ b/dwb-mimetype.patch
@@ -0,0 +1,9 @@
+diff -up dwb-2012.02.01/share/dwb.desktop.orig dwb-2012.02.01/share/dwb.desktop
+--- dwb-2012.02.01/share/dwb.desktop.orig	2012-03-04 16:10:06.019171730 +0100
++++ dwb-2012.02.01/share/dwb.desktop	2012-03-04 16:10:23.580757901 +0100
+@@ -6,4 +6,4 @@ Icon=dwb
+ Terminal=false
+ Type=Application
+ Categories=Network;WebBrowser;
+-MimeType=text/html;text/xml;application/xhtml+xml;
++MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;
diff --git a/dwb.spec b/dwb.spec
new file mode 100644
index 0000000..f9b69c0
--- /dev/null
+++ b/dwb.spec
@@ -0,0 +1,58 @@
+Name:           dwb
+Version:        2012.02.01
+Release:        3%{?dist}
+Summary:        Dynamic web browser based on WebKit and GTK+
+
+License:        GPLv3+
+URL:            https://bitbucket.org/portix/dwb/wiki/Home
+Source0:        https://bitbucket.org/portix/dwb/downloads/%{name}-%{version}.tar.gz
+Patch0:         %{name}-mimetype.patch
+
+BuildRequires:  gtk3-devel
+BuildRequires:  webkitgtk3-devel
+BuildRequires:  desktop-file-utils
+
+%description
+dwb is small webkit-based web-browser in the spirit of tiling window managers,
+that aims to be mostly keyboard-driven.
+
+%prep
+%setup -q
+# Adding Mime type so that dwb can be detected as a web browser
+# See https://bitbucket.org/portix/dwb/issue/115/add-x-scheme-handler-to-mimetype
+%patch0 -p1 -b .orig
+
+%build
+make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
+
+%post
+update-desktop-database &> /dev/null || :
+
+%postun
+update-desktop-database &> /dev/null || :
+
+%files
+%{_bindir}/%{name}
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/%{name}
+%{_mandir}/man1/%{name}.1.gz
+%{_datadir}/pixmaps/%{name}.png
+
+%doc README gpl-3.0.txt
+
+%changelog
+* Sun Mar 04 2012 Sébastien Willmann <sebastien.willmann at gmail.com> - 2012.02.01-3
+- Added desktop file validation
+
+* Sun Mar 04 2012 Sébastien Willmann <sebastien.willmann at gmail.com> - 2012.02.01-2
+- Added Mime type and desktop database update
+- Split BR on two lines, removed deffattr, removed blank lines
+
+* Sun Mar 04 2012 Sébastien Willmann <sebastien.willmann at gmail.com> - 2012.02.01-1
+- Initial version
+
diff --git a/sources b/sources
index e69de29..7a62fa3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9d1da367b745f4185aa35309747bb8c9  dwb-2012.02.01.tar.gz


More information about the scm-commits mailing list