RPM spec
This commit is contained in:
parent
3e7b4ac432
commit
5d1bc87b76
|
@ -1,5 +1,4 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Value=1.0
|
|
||||||
Version=1.0
|
Version=1.0
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=Clementine
|
Name=Clementine
|
||||||
|
|
|
@ -0,0 +1,59 @@
|
||||||
|
Name: clementine
|
||||||
|
Version: 0.1
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: A music player and library organiser
|
||||||
|
|
||||||
|
Group: Applications/Multimedia
|
||||||
|
License: GPLv3
|
||||||
|
URL: http://code.google.com/p/clementine-player
|
||||||
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
|
BuildRequires: desktop-file-utils liblastfm-devel taglib-devel xine-lib-devel
|
||||||
|
BuildRequires: libnotify-devel
|
||||||
|
Requires: xine-lib-extras-freeworld
|
||||||
|
|
||||||
|
%description
|
||||||
|
Clementine is a modern music player and library organiser.
|
||||||
|
It is largely a port of Amarok 1.4, with some features rewritten to take
|
||||||
|
advantage of Qt4.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
qmake-qt4
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -d %{buildroot}/%{_bindir}
|
||||||
|
install -d %{buildroot}%{_datadir}/applications
|
||||||
|
install -d %{buildroot}%{_datadir}/icons/hicolor/64x64/apps
|
||||||
|
|
||||||
|
install -m 0755 src/%{name} %{buildroot}/%{_bindir}/clementine
|
||||||
|
install -m 0644 dist/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||||
|
install -m 0644 dist/%{name}_64.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/apps/application-x-clementine.png
|
||||||
|
|
||||||
|
desktop-file-install \
|
||||||
|
--dir %{buildroot}%{_datadir}/applications \
|
||||||
|
--delete-original \
|
||||||
|
%{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||||
|
|
||||||
|
%clean
|
||||||
|
make clean
|
||||||
|
rm Makefile src/Makefile
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc
|
||||||
|
%{_bindir}/clementine
|
||||||
|
%{_datadir}/applications/clementine.desktop
|
||||||
|
%{_datadir}/icons/hicolor/64x64/apps/application-x-clementine.png
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sun Jan 17 2010 David Sansome <me@davidsansome.com> - 0.1-1
|
||||||
|
- Initial package
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
name=clementine
|
||||||
|
url=http://clementine-player.googlecode.com/svn/trunk
|
||||||
|
version=`grep Version $name.spec | awk '{print $2}'`
|
||||||
|
|
||||||
|
rm -rf $name-$version
|
||||||
|
svn export $url $name-$version
|
||||||
|
tar -cvzf $name-$version.tar.gz $name-$version
|
||||||
|
tar -cvjf $name-$version.tar.bz2 $name-$version
|
||||||
|
rm -rf $name-$version
|
|
@ -1,6 +1,7 @@
|
||||||
# Change this line to install Clementine somewhere else
|
# Change this line to install Clementine somewhere else
|
||||||
install_prefix = /usr
|
install_prefix = /usr
|
||||||
|
|
||||||
|
VERSION = 0.1
|
||||||
QT += sql \
|
QT += sql \
|
||||||
network \
|
network \
|
||||||
opengl \
|
opengl \
|
||||||
|
|
Loading…
Reference in New Issue