[appmenu-qt5/f22] Initial commit

Mario Blättermann mariobl at fedoraproject.org
Tue Feb 17 20:34:03 UTC 2015


commit a1a67d2413b75810505ef2b632162e6fb5d8931a
Author: Mario Blättermann <mario.blaettermann at gmail.com>
Date:   Tue Feb 17 21:33:44 2015 +0100

    Initial commit

 .gitignore                |    1 +
 appmenu-qt5-README.fedora |   11 ++++++
 appmenu-qt5.spec          |   80 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 4 files changed, 93 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..627c912 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/appmenu-qt5-0.r26.tar.gz
diff --git a/appmenu-qt5-README.fedora b/appmenu-qt5-README.fedora
new file mode 100644
index 0000000..b98929d
--- /dev/null
+++ b/appmenu-qt5-README.fedora
@@ -0,0 +1,11 @@
+This package contains a sample script in the doc directory named
+appmenu-qt5.sh which activates the global menu for Qt5 applications.
+
+To activate it globally for all users, save it in
+/etc/profile.d/ and make it executable. This is not recommended, because
+it works currently only with plasma-widget-menubar in KDE SC4, all other
+desktops are not affected. It would cause that the menubar of
+Qt5 applications is not visible there.
+
+To activate it for a certain user, integrate it in the appropriate autostart
+toolchain of your desktop environment or session/window manager.
\ No newline at end of file
diff --git a/appmenu-qt5.spec b/appmenu-qt5.spec
new file mode 100644
index 0000000..9b6e350
--- /dev/null
+++ b/appmenu-qt5.spec
@@ -0,0 +1,80 @@
+Name:           appmenu-qt5
+Version:        0.r26
+Release:        3%{?dist}
+Summary:        Support for global DBus-exported application menu in Qt5
+
+License:        LGPLv3
+URL:            https://launchpad.net/%{name}
+
+# The source tarball can be created with the following commands:
+# bzr branch -r 26 lp:appmenu-qt5
+# mv -f appmenu-qt5 appmenu-qt5-0.r26
+# tar -zcvf appmenu-qt5-0.r26.tar.gz appmenu-qt5-0.r26
+Source0:        %{name}-0.r26.tar.gz
+Source1:        %{name}-README.fedora
+
+BuildRequires:  dbusmenu-qt5-devel
+BuildRequires:  gtk2-devel
+BuildRequires:  qt5-qtbase-devel
+BuildRequires:  qt5-qtbase-static
+BuildRequires:  systemd-devel
+
+Requires:       qt5-qtbase-gui
+
+%description
+This is a different, Qt5-compatible approach of the existing appmenu-qt
+(https://launchpad.net/appmenu-qt).
+
+appmenu-qt5 is a Qt5 QPA theme plugin that adds support for application
+menus to Qt5 applications. This only works for Qt5 versions >= 5.2
+currently. To enable the support, set QT_QPA_PLATFORMTHEME=appmenu-qt5
+in your environment.
+
+%package        devel
+Summary:        Development files for %{name}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%prep
+%setup -q %{name}
+
+
+%build
+mkdir -p %{_target_platform}
+pushd %{_target_platform}
+%{qmake_qt5} CONFIG+=enable-by-default ../appmenu.pro
+make %{?_smp_mflags}
+popd
+
+%install
+make install INSTALL_ROOT=%{buildroot} -C %{_target_platform}
+mkdir -p %{buildroot}%{_docdir}/%{name}
+mv -f %{buildroot}%{_sysconfdir}/profile.d/appmenu-qt5.sh %{buildroot}%{_docdir}/%{name}
+chmod -x %{buildroot}%{_docdir}/%{name}/appmenu-qt5.sh
+install -p -m 644 %{SOURCE1} %{buildroot}%{_docdir}/%{name}/README.fedora
+
+%files
+%doc README
+%license COPYING
+%{_docdir}/%{name}/%{name}.sh
+%{_docdir}/%{name}/README.fedora
+%{_libdir}/qt5/plugins/platformthemes/libappmenu-qt5.so
+
+%files devel
+%{_libdir}/cmake/Qt5Gui/Qt5Gui_AppMenuPlatformThemePlugin.cmake
+
+%changelog
+* Tue Feb 17 2015 Mario Blättermann <mario.blaettermann at gmail.com> - 0.r26-3
+- %%changelog cleanup
+- Move the .cmake file to a -devel subpackage
+
+* Sun Jan 25 2015 Mario Blättermann <mario.blaettermann at gmail.com> - 0.r26-2
+- Dropped non-existent version number
+- Use the script as example, move it to %%doc
+- Add README.fedora
+
+* Wed Dec 17 2014 Mario Blättermann <mario.blaettermann at gmail.com> - 0.r26-1
+- Initial package
diff --git a/sources b/sources
index e69de29..74910dc 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0c87f5cea207ceb368dfc439b70a7c9e  appmenu-qt5-0.r26.tar.gz


More information about the scm-commits mailing list