%define git 1 %define gitdate 20120127 Name: bumblebee-ui Summary: Bumblebee User Interface Group: System/Configuration/Other Version: 1.0 Release: %mkrel 2 URL: https://github.com/Bumblebee-Project/bumblebee-ui License: GPLv3 # source from git repo git://github.com/Bumblebee-Project/bumblebee-ui.git Source0: %{name}-%{!?git:%{version}}%{?git:%{gitdate}}.tar.xz BuildArch: noarch Requires: bumblebee Requires: indicator-appmenu %description This is a user interface for bumblebee. A complete explanation of the feature of this user interface are explained here : https://github.com/Bumblebee-Project/bumblebee-ui/wiki Please report bugs to: https://github.com/Bumblebee-Project/bumblebee-ui/issues %files %{_sysconfdir}/xdg/autostart/bumblebee-indicator.desktop %{_bindir}/bumblebee* %{_datadir}/%{name}/ %{_datadir}/applications/* %{_iconsdir}/hicolor/* %prep %setup -q%{?git:n %{name}} %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_iconsdir}/hicolor/48x48/apps/ cp icons/*.* %{buildroot}%{_iconsdir}/hicolor/48x48/apps/ mkdir -p %{buildroot}%{_datadir}/{%{name},applications} cp app/*.* %{buildroot}%{_datadir}/%{name} cp bumblebee-app-settings.desktop %{buildroot}%{_datadir}/applications/ cp bumblebee-indicator.desktop %{buildroot}%{_datadir}/applications/ mkdir -p %{buildroot}%{_bindir} ln -s %{_datadir}/%{name}/AppSettings.py %{buildroot}%{_bindir}/bumblebee-app-settings ln -s %{_datadir}/%{name}/Bumblebee-Indicator.py %{buildroot}%{_bindir}/bumblebee-indicator chmod +x %{buildroot}%{_datadir}/applications/bumblebee-app-settings.desktop chmod +x %{buildroot}%{_datadir}/applications/bumblebee-indicator.desktop chmod +x -R %{buildroot}%{_datadir}/%{name} # Always start in boot mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart cp bumblebee-indicator.desktop %{buildroot}%{_sysconfdir}/xdg/autostart %changelog * Tue Apr 10 2012 Simple 1.0-2 - needs indicator-appmenu - move to develop branch - use versioned source - change description as pointed by Anssi * Mon Mar 19 2012 Simple 1.0-1 - initial package