This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
amarokFS/amarokFS.spec

117 lines
4.1 KiB
RPMSpec

Name: amarokFS
Version: 0.4.2
Release: 4%{?dist}
Summary: Simple, nice looking full screen front-end for Amarok
Group: Applications/Multimedia
License: GPL
URL: http://www.kde-apps.org/content/show.php?content=52641
Source0: http://www.kde-apps.org/CONTENT/content-files/52641-amarokFS-qt3-%{version}.tar.gz
# Source1 is an Amarok integration script
Source1: http://www.kde-apps.org/CONTENT/content-files/53125-amarokFS.amarokscript.tar
Patch0: amarokFS-0.4.2-fedora_paths.patch
Patch1: amarokFS-0.4.2-config_dialog_layout.patch
Patch2: amarokFS-0.4.2-large_cover_images.patch
Patch3: amarokFS-0.4.2-start_amarok.patch
Patch4: amarokFS-0.4.2-theme_howto.patch
Patch5: amarokFS-0.4.2-theme_prev_button.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: kdelibs-devel desktop-file-utils ImageMagick
Requires: amarok
%description
AmarokFS (Amarok Full Screen) is a full screen front-end for Amarok that
provides a simple and nice looking graphical user interface. It is very
suitable for parties and public terminals. The front-end's appearance can be
customized using themes.
This package also contains a script that allows AmarokFS to be launched
from within Amarok itself.
%prep
%setup -q -n %{name}-qt3-%{version}
%patch0 -p1 -b .fedora_paths
%patch1 -p1 -b .config_dialog_layout
%patch2 -p1 -b .large_cover_images
%patch3 -p1 -b .start_amarok
%patch4 -p1 -b .theme_howto
%patch5 -p1 -b .theme_prev_button
sed -i 's/Application;//' amarokFS.desktop
sed -i 's/\/usr\/share\/icons\/amarokFS.png/amarokFS/' amarokFS.desktop
chmod a-x amarokFS.png
chmod a-x images/*
%build
qmake
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install INSTALL_ROOT=$RPM_BUILD_ROOT
desktop-file-install --vendor="fedora" \
--dir=$RPM_BUILD_ROOT%{_datadir}/applications/ \
amarokFS.desktop
# Install Amarok integration script
mkdir -p $RPM_BUILD_ROOT%{_datadir}/apps/amarok/scripts
cd $RPM_BUILD_ROOT%{_datadir}/apps/amarok/scripts
tar -xf %{SOURCE1}
# Install a 48x48 icon
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
convert $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/amarokFS.png \
-sample 48x48 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/amarokFS.png
%clean
rm -rf $RPM_BUILD_ROOT
%post
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
%postun
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
%files
%defattr(-,root,root,-)
%doc README theme-howto.txt
%{_bindir}/amarokFS
%{_datadir}/amarokFS
%{_datadir}/applications/fedora-amarokFS.desktop
%{_datadir}/icons/hicolor/48x48/apps/amarokFS.png
%{_datadir}/icons/hicolor/128x128/apps/amarokFS.png
%{_datadir}/apps/amarok/scripts/amarokFS
%changelog
* Mon Feb 19 2007 Francois Aucamp <faucamp@csir.co.za> - 0.4.2-4
- Created "theme_prev_button" patch to fix default theme's "previous" button
- Fixed file permissions of image files
* Wed Feb 14 2007 Francois Aucamp <faucamp@csir.co.za> - 0.4.2-3
- Added BuildRequires: ImageMagick
- Create and install a 48x48 icon
* Tue Feb 13 2007 Francois Aucamp <faucamp@csir.co.za> - 0.4.2-2
- Added BuildRequires: desktop-file-utils
- Fixed source URLs
- Removed "Application" from .desktop file's "Categories" tag
- Install application icon to correct location
- Added KDE/GTK icon cache update scriptlets
- Cleaned up the application's qmake file a bit
* Sun Feb 11 2007 Francois Aucamp <faucamp@csir.co.za> - 0.4.2-1
- Initial RPM build
- Created "fedora_paths" patch to install files to correct directories in Fedora
- Created "config_dialog_layout" patch to fix the layout of the configuration dialog
- Created "large_cover_images" patch to fix filename resolution issues when displaying large CD cover images
- Created "start_amarok" patch to let AmarokFS start Amarok (upon startup) if it is not already running
- Created "theme_howto" patch to fix errors in the "theme howto" documentation file
- Created amarokFS integration script for Asterisk