Author: magnu5
Update of /cvs/free/rpms/minitube/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv13760/devel
Modified Files:
.cvsignore sources
Added Files:
minitube-lang.patch minitube-qtsingleapp.patch minitube.spec
Log Message:
first commit
minitube-lang.patch:
locale.pri | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- NEW FILE minitube-lang.patch ---
--- minitube/locale/locale1.pri.orig 2010-07-26 23:39:16.000000000 +0100
+++ minitube/locale/locale.pri 2010-08-10 16:24:22.000000000 +0100
@@ -13,7 +13,7 @@ TRANSLATIONS += \
cs_CZ.ts \
uk.ts \
he_IL.ts \
- lat.ts \
+ lv.ts \
hr_HR.ts \
es.ts \
gl.ts \
@@ -36,8 +36,8 @@ isEmpty(QMAKE_LRELEASE) {
}
updateqm.input = TRANSLATIONS
-updateqm.output = build/target/locale/${QMAKE_FILE_BASE}.qm
-updateqm.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm
build/target/locale/${QMAKE_FILE_BASE}.qm
+updateqm.output = build/target/locale/minitube_${QMAKE_FILE_BASE}.qm
+updateqm.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm
build/target/locale/minitube_${QMAKE_FILE_BASE}.qm
updateqm.CONFIG += no_link target_predeps
QMAKE_EXTRA_COMPILERS += updateqm
minitube-qtsingleapp.patch:
minitube.pro | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--- NEW FILE minitube-qtsingleapp.patch ---
diff -up minitube/minitube.pro.patch minitube/minitube.pro
--- minitube/minitube.pro.patch 2010-07-27 01:39:16.000000000 +0300
+++ minitube/minitube.pro 2010-08-09 16:49:46.675766686 +0300
@@ -10,7 +10,9 @@ TARGET = minitube
QT += network \
xml \
phonon
-include(src/qtsingleapplication/qtsingleapplication.pri)
+
+CONFIG += qtsingleapplication
+
include(src/thlibrary/thlibrary.pri)
HEADERS += src/MainWindow.h \
src/SearchView.h \
--- NEW FILE minitube.spec ---
Name: minitube
Version: 1.1
Release: 7%{?dist}
Summary: A YouTube desktop client
Group: Applications/Multimedia
# License info:
###
# LGPLv2.1 with exceptions or GPLv3:
# src/iconloader/qticonloader.h
# src/iconloader/qticonloader.cpp
# src/searchlineedit.h
# src/searchlineedit.cpp
#
# LGPLv2 with exceptions or GPLv3:
# src/urllineedit.h
# src/urllineedit.cpp
#
# GPLv2 or GPLv3:
# src/flickcharm.cpp
# src/flickcharm.h
#
# LGPLv2.1:
# src/minisplitter.h
# src/minisplitter.cpp
#
# All other files are GPLv3+ as per INSTALL file
###
# End Of License info.
# The source files combined together into minitube binary are GPLv3, and the .qm files are
GPLv3+
License: GPLv3 and GPLv3+
URL:
http://flavio.tordini.org/minitube
Source0:
http://flavio.tordini.org/files/%{name}/%{name}-%{version}.tar.gz
# fixes requirement on bundled qtsingleapplication
Patch0: minitube-qtsingleapp.patch
# fix breakage caused by qtsingleapplication-add-api.patch
#Patch1: minitube-QString.patch
# name the lang files
Patch2: minitube-lang.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%{?_qt4_version:Requires: qt4 >= %{_qt4_version}}
BuildRequires: qt4-devel
BuildRequires: desktop-file-utils
BuildRequires: phonon-devel
BuildRequires: qtsingleapplication-devel
Requires: hicolor-icon-theme
Requires: xine-lib-extras-freeworld
%description
Minitube is a YouTube desktop client.
With it you can watch YouTube videos in a new way:
you type a keyword, Minitube gives you an endless video stream.
Minitube is not about cloning the original YouTube web interface,
it aims to create a new TV-like experience.
%prep
%setup -q -n %{name}
# Fix spurious-executable-perm
chmod -x src/*{h,cpp}
# remove bundled copy of qtsingleapplication
rm -rf src/qtsingleapplication
# rename latvian language code
mv locale/lat.ts locale/lv.ts
%patch0 -p 1
#%%patch1 -p 0
%patch2 -p1 -b .lang
%build
%{_qt4_qmake} PREFIX=%{_prefix}
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install INSTALL_ROOT=%{buildroot}
desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications/ \
--delete-original \
%{buildroot}%{_datadir}/applications/%{name}.desktop
# find_lang magic:
%find_lang %{name} --all-name --with-qt
%clean
rm -rf %{buildroot}
%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun
if [ $1 -eq 0 ] ; then
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING LICENSE.LGPL CHANGES TODO INSTALL
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/512x512/apps/%{name}.png
%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
%{_datadir}/icons/hicolor/22x22/apps/%{name}.png
%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/locale
%changelog
* Sun Aug 15 2010 Magnus Tuominen <magnus.tuominen(a)gmail.com> - 1.1-7
- drop minitube-QString.patch
* Wed Aug 11 2010 Magnus Tuominen <magnus.tuominen(a)gmail.com> - 1.1-6
- add BR qt4-devel
- use better naming for patches
- own directories
- sort license information
* Wed Aug 11 2010 Magnus Tuominen <magnus.tuominen(a)gmail.com> - 1.1-5
- add lang patch by Leigh Scott
- rename locale/lat.ts to locale/lv.ts
* Mon Aug 09 2010 Magnus Tuominen <magnus.tuominen(a)gmail.com> - 1.1-4
- add Req: xine-lib-extras-freeworld
- add license information
- add INSTALL file
- use %%find_lang + magic on locale files
- patch to use system qtsingleapplication
- del bundled qtsingleapplication
* Wed Aug 04 2010 Magnus Tuominen <magnus.tuominen(a)gmail.com> - 1.1-3
- add %%post %%postun %%posttrans as suggested by Leigh Scott
- validate desktop file
- remove Req: xine-lib-extras-freeworld
- add Req: desktop-file-utils
* Wed Aug 04 2010 Magnus Tuominen <magnus.tuominen(a)gmail.com> - 1.1-2
- add Req: xine-lib-extras-freeworld
* Sun Aug 01 2010 Magnus Tuominen <magnus.tuominen(a)gmail.com> - 1.1-1
- initial build
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/minitube/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 13 Aug 2010 22:06:01 -0000 1.1
+++ .cvsignore 18 Aug 2010 14:08:47 -0000 1.2
@@ -0,0 +1 @@
+minitube-1.1.tar.gz
Index: sources
===================================================================
RCS file: /cvs/free/rpms/minitube/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 13 Aug 2010 22:06:01 -0000 1.1
+++ sources 18 Aug 2010 14:08:47 -0000 1.2
@@ -0,0 +1 @@
+075841322631486a8bb69575ec05f5ca minitube-1.1.tar.gz