Fetching contributors…
Cannot retrieve contributors at this time
363 lines (294 sloc) 9.16 KB
# norootforbuild
%define have_polkit 0
%if 0%{?fedora} || 0%{?centos_version} || 0%{?rhel_version}
%define breq qt4-devel >= 4.6.0, libXcomposite-devel
%if 0%{?fedora}
BuildRequires: polkit-qt-devel
%define have_polkit 1
%define qmake /usr/bin/qmake-qt4
%define lrelease /usr/bin/lrelease-qt4
%define uic /usr/bin/uic-qt4
%define qtxdglib libqtxdg
%define qtxdglibdevel libqtxdg-devel
%if 0%{?mdkversion}
%define breq libqt4-devel >= 4.6.0, qt4-linguist, libxcomposite-devel
%define qmake /usr/lib/qt4/bin/qmake
%define lrelease /usr/lib/qt4/bin/lrelease
%define uic /usr/lib/qt4/bin/uic
%define qtxdglib libqtxdg
%define qtxdglibdevel libqtxdg-devel
%if 0%{?suse_version}
%define breq libqt4-devel >= 4.6.0, update-desktop-files, fdupes
%define qmake /usr/bin/qmake
%define lrelease /usr/bin/lrelease
%define uic /usr/bin/uic
%define qtxdglib libqtxdg0
%define qtxdglibdevel libqtxdg-devel
%if 0%{?sles_version} == 0 && 0%{suse_version} >= 1210
BuildRequires: libpolkit-qt-1-devel
%define have_polkit 1
Name: razorqt
Version: 0.4.1
Release: 0
License: GPL
Source: razor-qt-%{version}.tar.bz2
Group: System/GUI/Other
Summary: Razor a lightweight desktop toolbox
Vendor: Razor-qt team
BuildRequires: gcc-c++, cmake, make, file-devel, %{breq}, doxygen
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: %{name}-desktop = %{version}, %{name}-panel = %{version}, %{name}-session = %{version}
Requires: %{name}-appswitcher = %{version}, %{name}-runner = %{version}
Requires: %{name}-config = %{version}, %{name}-data = %{version}
Requires: %{name}-power = %{version}
Requires: %{qtxdglib} = %{version}
%if 0%{?have_polkit} == 1
Requires: %{name}-policykit-agent = %{version}
Prefix: /usr
#Recommends: qterminal, juffed, ptbatterysystemtray, qlipper, qxkb, qasmixer, screengrab
%package devel
Summary: RazorQt development package
Group: Development/Libraries/C and C++
Requires: %{name}-libraries
Obsoletes: razorqt-x11info <= %{version}
%package libraries
Summary: RazorQt shared library
Group: System/Libraries
Requires: upower
# it's quite a big dependency - but there are manu bugreports with (I cannot see any
# icons...) and at least one icon theme has to be installed
Requires: oxygen-icon-theme
# names before 0.4
Obsoletes: razorqt-libs <= %{version}, librazorqt0 <= %{version}
%package -n %{qtxdglib}
Summary: QtXdg library
Group: System/Libraries
%package -n %{qtxdglibdevel}
Summary: Development files for QtXdg library
Group: Development/Libraries/C and C++
Requires: %{qtxdglib} = %{version}
%package appswitcher
Summary: RazorQt application switcher
Group: System/X11/Utilities
Requires: %{name}-data
%package desktop
Summary: RazorQt desktop
Group: System/GUI/Other
Requires: %{name}-data
%package panel
Summary: RazorQt panel
Group: System/GUI/Other
Requires: %{name}-data xscreensaver
%if 0%{?have_polkit} == 1
%package policykit-agent
Summary: RazorQt policykit agent
Group: System/GUI/Other
%package power
Summary: RazorQt power management apps
Group: System/GUI/Other
Requires: %{name}-data
%package data
Summary: RazorQt resources and shared data
Group: System/GUI/Other
Obsoletes: %{name}-resources <= %{version}
%package runner
Summary: RazorQt runner application
Group: System/GUI/Other
Requires: %{name}-data
%package session
Summary: RazorQt session
Group: System/GUI/Other
Requires: %{name}-data, openbox
Obsoletes: %{name}-openbox <= %{version}, %{name}-wm <= %{version}
%package config
Summary: RazorQt config tools
Group: System/GUI/Other
Description: A metapackage for Razor-qt DE. It will install all components.
%description libraries
Description: Base runtime libraries for Razor-qt DE,
%description -n %{qtxdglib}
Description: Implementation of XDG standards in Qt.
%description -n %{qtxdglibdevel}
Description: A development environment for qtxdg.
%description devel
Description: A development environment for Razor-qt.
%description appswitcher
Description: A alt+tab appliaction switcher for window managers where it is not available natively.
%description desktop
Description: Razor-qt desktop implementation.
%description panel
Description: Razor-qt panel and its plugins.
%if 0%{?have_polkit} == 1
%description policykit-agent
Description: A lightweight PolicyKit agent primarily writen for Razor-qt DE. But it can be used standalone as well.
%description power
Description: Power management apps for Razor-qt DE
%description data
Description: Shared data for Razor-qt. For example: themes, images, etc.
%description runner
Description: Quick launch/runner application for Razor-qt.
%description config
Description: Razor-qt configuration GUI tools.
%description session
Description: Razor-qt session environment.
%setup -q -n razor-qt-%{version}
_libsuffix=$(echo %{_lib} | cut -b4-)
%{__rm} -rf %{buildroot}
%{makeinstall} DESTDIR=%{buildroot}
%if 0%{?suse_version}
%suse_update_desktop_file -r razor-autosuspend Utility DesktopUtility
%fdupes -s "%{buildroot}"
%{__rm} -rf %{buildroot}
%post libraries
%post -n %{qtxdglib}
%postun libraries
%postun -n %{qtxdglib}
%files libraries
%files -n %{qtxdglib}
%files -n %{qtxdglibdevel}
%files devel
%files appswitcher
%files desktop
%dir %{_datadir}/razor
%files panel
%if 0%{?have_polkit} == 1
%files policykit-agent
%files power
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/apps/
%files runner
%files config
%files session
%dir %{_datadir}/apps/
%dir %{_datadir}/apps/kdm
%dir %{_datadir}/apps/kdm/sessions
%files data
%config /etc/xdg/menus/
%dir /etc/xdg/menus
%dir %{_datadir}/desktop-directories
# temp files - it will be removed when it becomes part of upstream
* Wed Jan 26 2012 Petr Vanek <> 0.4.1
- preparing 0.4.1 release
* Thu Sep 15 2011 Petr Vanek <> 0.4.0
- version bump: 0.4.0
* Fri Jul 22 2011 TI_Eugene <> 0.3.99
- Next version
- razor-runner added
- razor-x11info added
* Fri May 12 2011 Petr Vanek <> 0.3.0
- version bump. New packages structure
* Tue Feb 15 2011 TI_Eugene <> 0.2-206
- cleaning up spec
- openbox and eggwm session subpackages
* Mon Feb 07 2011 Petr Vanek <> 0.2-206
- suse fixes. Resources are split into library and resources package
* Sat Jan 29 2011 TI_Eugene <> 0.2-206
- appswitcher added
* Thu Jan 06 2011 TI_Eugene <> 0.2-190
- Next build
* Wed Mar 04 2009 TI_Eugene <> 0.1
- Initital build in OBS