[launchy] commiting first version
lzap
lzap at fedoraproject.org
Thu Dec 1 17:47:30 UTC 2011
commit 9002120553041d5d1381e7d722cf730111224a3d
Author: Lukas Zapletal <lzap+git at redhat.com>
Date: Thu Dec 1 18:47:17 2011 +0100
commiting first version
.gitignore | 1 +
launchy.spec | 134 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 136 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8de1e83 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/launchy-2.5.tar.gz
diff --git a/launchy.spec b/launchy.spec
new file mode 100644
index 0000000..fdee90c
--- /dev/null
+++ b/launchy.spec
@@ -0,0 +1,134 @@
+Name: launchy
+Version: 2.5
+Release: 3%{?dist}
+Summary: Open Source Keystroke Launcher
+
+Group: Applications/File
+License: GPL+
+URL: http://www.launchy.net
+Source0: http://www.launchy.net/downloads/src/launchy-2.5.tar.gz
+
+Patch0: %{name}-X11-lib.patch
+Patch1: %{name}-xdg-icon-path.patch
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: gcc-c++
+BuildRequires: qt-devel boost-devel
+BuildRequires: desktop-file-utils
+
+%description
+Launchy is a free cross-platform utility designed to help you forget about your
+start menu, the icons on your desktop, and even your file manager.
+Launchy indexes the programs in your start menu and can launch your documents,
+project files, folders, and bookmarks with just a few keystrokes!
+
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: pkgconfig
+
+%description devel
+The %{name}-devel package contains libraries and header files
+for developing applications that use %{name}.
+
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+# convert DOS to UNIX
+%{__sed} -i 's/\r//' LICENSE.txt readme.txt
+
+
+%build
+%{_libdir}/qt4/bin/qmake "CONFIG+=debug" Launchy.pro
+make %{?_smp_mflags}
+
+
+%install
+%{__rm} -rf %{buildroot}
+# prefix is hardcoded in the makefile
+install -Dpm 0755 debug/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
+mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins
+install -Dpm 0755 debug/plugins/*so $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/
+install -Dpm 0755 release/plugins/*so $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/
+mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/icons/
+install -Dpm 0644 plugins/*/*png $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/icons/
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps/
+install -Dpm 0644 misc/Launchy_Icon/launchy_icon.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/skins/
+install -dpm 0755 skins $RPM_BUILD_ROOT%{_datadir}/%{name}/skins/
+install -dpm 0755 skins/Black_Glass $RPM_BUILD_ROOT%{_datadir}/%{name}/skins/Black_Glass
+install -dpm 0755 skins/Spotlight_Wide $RPM_BUILD_ROOT%{_datadir}/%{name}/skins/Spotlight_Wide
+install -dpm 0755 skins/Simple $RPM_BUILD_ROOT%{_datadir}/%{name}/skins/Simple
+install -dpm 0755 skins/Note $RPM_BUILD_ROOT%{_datadir}/%{name}/skins/Note
+install -dpm 0755 skins/Default $RPM_BUILD_ROOT%{_datadir}/%{name}/skins/Default
+install -dpm 0755 skins/Mercury_Wide $RPM_BUILD_ROOT%{_datadir}/%{name}/skins/Mercury_Wide
+install -dpm 0755 skins/Black_Glass_Wide $RPM_BUILD_ROOT%{_datadir}/%{name}/skins/Black_Glass_Wide
+install -dpm 0755 skins/Mercury $RPM_BUILD_ROOT%{_datadir}/%{name}/skins/Mercury
+install -dpm 0755 skins/QuickSilver2 $RPM_BUILD_ROOT%{_datadir}/%{name}/skins/QuickSilver2
+install -Dpm 0644 skins/Black_Glass/* $RPM_BUILD_ROOT%{_datadir}/%{name}/skins/Black_Glass
+install -Dpm 0644 skins/Spotlight_Wide/* $RPM_BUILD_ROOT%{_datadir}/%{name}/skins/Spotlight_Wide
+install -Dpm 0644 skins/Simple/* $RPM_BUILD_ROOT%{_datadir}/%{name}/skins/Simple
+install -Dpm 0644 skins/Note/* $RPM_BUILD_ROOT%{_datadir}/%{name}/skins/Note
+install -Dpm 0644 skins/Default/* $RPM_BUILD_ROOT%{_datadir}/%{name}/skins/Default
+install -Dpm 0644 skins/Mercury_Wide/* $RPM_BUILD_ROOT%{_datadir}/%{name}/skins/Mercury_Wide
+install -Dpm 0644 skins/Black_Glass_Wide/* $RPM_BUILD_ROOT%{_datadir}/%{name}/skins/Black_Glass_Wide
+install -Dpm 0644 skins/Mercury/* $RPM_BUILD_ROOT%{_datadir}/%{name}/skins/Mercury
+install -Dpm 0644 skins/QuickSilver2/* $RPM_BUILD_ROOT%{_datadir}/%{name}/skins/QuickSilver2
+install -dm 0755 $RPM_BUILD_ROOT%{_includedir}/%{name}
+install -Dpm 0644 "Plugin API"/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
+desktop-file-install \
+ --dir $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart \
+ --add-only-show-in=GNOME \
+ linux/%{name}.desktop
+desktop-file-install \
+ --dir $RPM_BUILD_ROOT%{_datadir}/applications \
+ --remove-category Application \
+ linux/%{name}.desktop
+
+# autostart is disabled by default
+echo "X-GNOME-Autostart-enabled=false" >> \
+ $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/%{name}.desktop
+
+
+%postun
+touch --no-create %{_datadir}/icons/hicolor
+if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
+ %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+fi
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE.txt readme.txt
+%{_bindir}/%{name}
+%{_libdir}/%{name}/
+%{_datadir}/%{name}/
+%{_datadir}/pixmaps/launchy_icon.png
+%{_datadir}/applications/%{name}.desktop
+%config(noreplace) %{_sysconfdir}/xdg/autostart/%{name}.desktop
+
+
+%files devel
+%defattr(-,root,root,-)
+%doc 'Plugin API/api.html'
+%{_includedir}/%{name}/*.h
+
+
+%changelog
+* Mon Sep 06 2010 Lukas Zapletal <lzap+rpm at redhat.com> - 2.5-3
+- review by msuchy
+
+* Mon Sep 06 2010 Lukas Zapletal <lzap+rpm at redhat.com> - 2.5-2
+- correcting XDG icon path
+
+* Mon Sep 06 2010 Lukas Zapletal <lzap+rpm at redhat.com> - 2.5-1
+- initial package
diff --git a/sources b/sources
index e69de29..b8e1a75 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ca9de9e165d6c327f48aa81dd0ee1a6f launchy-2.5.tar.gz
More information about the scm-commits
mailing list