[screenie-composer] Initial import (#728555).
Martin Gieseking
mgieseki at fedoraproject.org
Wed Aug 17 05:48:07 UTC 2011
commit db0e7fc147bdc848308315b13edb63e761f171ab
Author: Martin Gieseking <martin.gieseking at uos.de>
Date: Wed Aug 17 07:46:30 2011 +0200
Initial import (#728555).
.gitignore | 1 +
screenie-composer-1.0.0-mime.patch | 14 +++++++
screenie-composer-1.0.0-rpath.patch | 16 ++++++++
screenie-composer-1.0.0-static.patch | 65 ++++++++++++++++++++++++++++++++++
screenie-composer.desktop | 10 +++++
screenie-composer.spec | 64 +++++++++++++++++++++++++++++++++
sources | 1 +
7 files changed, 171 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5415c36 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ariya-screenie-49c2630.tar.gz
diff --git a/screenie-composer-1.0.0-mime.patch b/screenie-composer-1.0.0-mime.patch
new file mode 100644
index 0000000..cdc85d3
--- /dev/null
+++ b/screenie-composer-1.0.0-mime.patch
@@ -0,0 +1,14 @@
+diff --git a/src/Kernel/src/Clipboard/MimeHelper.cpp b/src/Kernel/src/Clipboard/MimeHelper.cpp
+index 37a006b..6a75a9f 100644
+--- a/src/Kernel/src/Clipboard/MimeHelper.cpp
++++ b/src/Kernel/src/Clipboard/MimeHelper.cpp
+@@ -32,7 +32,7 @@
+
+ // public
+
+-const QString MimeHelper::ScreenieMimeType = QString("application/x-") + Version::getApplicationName().toLower();
++const QString MimeHelper::ScreenieMimeType = QString("application/x-screenie"); // + Version::getApplicationName().toLower();
+ const QString MimeHelper::XmlMimeType = QString("text/xml");
+ const QString MimeHelper::TextMimeType = QString("text/plain");
+
+
diff --git a/screenie-composer-1.0.0-rpath.patch b/screenie-composer-1.0.0-rpath.patch
new file mode 100644
index 0000000..013d849
--- /dev/null
+++ b/screenie-composer-1.0.0-rpath.patch
@@ -0,0 +1,16 @@
+diff --git a/src/Common.pri b/src/Common.pri
+index eb717f4..6c6be38 100644
+--- a/src/Common.pri
++++ b/src/Common.pri
+@@ -38,10 +38,8 @@ target.path = $$PWD/../dist
+ INSTALLS += target
+
+ unix:linux* {
+- QMAKE_CXXFLAGS += -Wall -Woverloaded-virtual -Wno-deprecated -Wuninitialized -O
++ QMAKE_CXXFLAGS += -Wall -Woverloaded-virtual -Wno-deprecated -Wuninitialized
+ QMAKE_CFLAGS += -Wstrict-prototypes -Wmissing-prototypes
+-
+- QMAKE_LFLAGS += -Wl,--rpath=\'\$\$ORIGIN\'
+ }
+
+ win32-g++ {
diff --git a/screenie-composer-1.0.0-static.patch b/screenie-composer-1.0.0-static.patch
new file mode 100644
index 0000000..add2341
--- /dev/null
+++ b/screenie-composer-1.0.0-static.patch
@@ -0,0 +1,65 @@
+diff --git a/src/Kernel/Kernel.pro b/src/Kernel/Kernel.pro
+index c37367d..3c75100 100644
+--- a/src/Kernel/Kernel.pro
++++ b/src/Kernel/Kernel.pro
+@@ -4,6 +4,7 @@ include(Sources.pri)
+
+ TEMPLATE = lib
+ DEFINES += KERNEL_EXPORT
++CONFIG += staticlib
+
+ win32 {
+ LIBS += -L$${DESTDIR} \
+diff --git a/src/Model/Model.pro b/src/Model/Model.pro
+index 3fa2742..c98c58b 100644
+--- a/src/Model/Model.pro
++++ b/src/Model/Model.pro
+@@ -4,6 +4,7 @@ include(Sources.pri)
+
+ TEMPLATE = lib
+ DEFINES += MODEL_EXPORT
++CONFIG += staticlib
+
+ win32 {
+ LIBS += -L$${DESTDIR} \
+diff --git a/src/Resources/Resources.pro b/src/Resources/Resources.pro
+index 54c8247..a70e8fc 100644
+--- a/src/Resources/Resources.pro
++++ b/src/Resources/Resources.pro
+@@ -4,7 +4,7 @@ include(Sources.pri)
+
+ TEMPLATE = lib
+ DEFINES += RESOURCES_EXPORT
+-
++CONFIG += staticlib
+
+
+
+diff --git a/src/Screenie/Screenie.pro b/src/Screenie/Screenie.pro
+index dac6bd3..0e7fe7b 100644
+--- a/src/Screenie/Screenie.pro
++++ b/src/Screenie/Screenie.pro
+@@ -28,10 +28,10 @@ win32 {
+ -lResources$${VERSION_MAJ} \
+ -lKernel$${VERSION_MAJ}
+ } else {
+- LIBS += -lUtils \
++ LIBS += -lKernel\
+ -lModel \
+- -lResources \
+- -lKernel
++ -lUtils\
++ -lResources
+ }
+
+ macx {
+diff --git a/src/Utils/Utils.pro b/src/Utils/Utils.pro
+index 4e8e348..d0f71a4 100644
+--- a/src/Utils/Utils.pro
++++ b/src/Utils/Utils.pro
+@@ -4,4 +4,5 @@ include(Sources.pri)
+
+ TEMPLATE = lib
+ DEFINES += UTILS_EXPORT
++CONFIG += staticlib
+
diff --git a/screenie-composer.desktop b/screenie-composer.desktop
new file mode 100644
index 0000000..ea7f2fa
--- /dev/null
+++ b/screenie-composer.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Screenie
+GenericName=Screenshot composer
+Comment=Create fancy screenshots
+Exec=screenie-composer
+Icon=screenie-composer
+Terminal=false
+Type=Application
+Categories=Graphics;2DGraphics;
+
diff --git a/screenie-composer.spec b/screenie-composer.spec
new file mode 100644
index 0000000..dd9038d
--- /dev/null
+++ b/screenie-composer.spec
@@ -0,0 +1,64 @@
+%global snapshot 49c2630
+
+Name: screenie-composer
+Version: 1.0.0
+Release: 0.1.20110805git%{snapshot}%{?dist}
+Summary: Fancy screenshot composer
+Group: Applications/Multimedia
+
+License: GPLv2+
+URL: http://code.google.com/p/screenie
+# Tarballs are only available via github. The current snapshot can be downloaded at
+# https://github.com/ariya/screenie/tarball/49c2630c393b003a473263001a18e27144744178
+Source0: ariya-screenie-%{snapshot}.tar.gz
+Source1: %{name}.desktop
+
+# Link program libraries statically as they are not intended to
+# be used by third-party developers. Their names are way too generic as well.
+Patch0: %{name}-%{version}-static.patch
+# Fix segfault occured due to call of uninitialized class variables.
+Patch1: %{name}-%{version}-mime.patch
+# remove rpath definition
+Patch2: %{name}-%{version}-rpath.patch
+
+BuildRequires: desktop-file-utils
+BuildRequires: qt4-devel
+
+%description
+Screenie is an easy to use screenshot composer tool that lets you create fancy
+and stylish screenshots from a given set of images.
+
+
+%prep
+%setup -q -n ariya-screenie-%{snapshot}
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+
+find -type f -exec chmod 644 {} \;
+
+%build
+qmake-qt4
+make %{?_smp_mflags}
+
+
+%install
+install -D bin/release/Screenie %{buildroot}%{_bindir}/%{name}
+install -D -p -m 644 src/Resources/img/application-icon.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
+
+desktop-file-install \
+ --dir=%{buildroot}%{_datadir}/applications \
+ %{SOURCE1}
+
+
+%files
+%doc LICENSE.GPL2 README.txt
+%{_bindir}/%{name}
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/pixmaps/%{name}.png
+
+
+%changelog
+* Fri Aug 05 2011 Martin Gieseking <martin.gieseking at uos.de> 1.0.0-0.1.20110805git49c2630
+- initial package
+
diff --git a/sources b/sources
index e69de29..9dedaad 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+090053ebfeb443a7c930a548a64f70be ariya-screenie-49c2630.tar.gz
More information about the scm-commits
mailing list