LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File moviethumbs-kde.spec of Package moviethumbs-kde (Project home:mdemeyer)

#
# spec file for package MovieThumbs kde (Version 0.4.0)
#
# Copyright 2013 Maarten De Meyer <de.meyer.maarten@gmail.com>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# norootforbuild
%if 0%{?fedora version}
#Disable debuginfo packages to limit amount of binaries listed on http://kde-apps.org/content/show.php?content=157543
#If this is wrong and fedora users can no longer use my packages please let me know
%global debug_package %{nil}
%endif

Name:           moviethumbs-kde
Version:        0.4.0
Release:        0
Summary:        Movie Thumbnailer for KDE
License:        GPL-2.0+
Group:          System/GUI/KDE
URL:            http://kde-apps.org/content/show.php?content=157543
Source0:        %{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Obsoletes:      MovieThumbs
Requires:	    libmoviethumbs0

# openSUSE
%if 0%{?suse_version}
BuildRequires:  libkde4-devel
BuildRequires:  kdebase4-workspace-devel
BuildRequires:  moviethumbs-core-devel
Requires:       kdebase4-workspace
%endif

# Fedora
%if 0%{?fedora_version}
BuildRequires:	cmake
BuildRequires:  kdebase4
BuildRequires:  kdelibs-devel
BuildRequires:	kde-filesystem
BuildRequires:	samba4-libs
BuildRequires:  moviethumbs-core-devel
%endif

%description
MovieThumbs generates thumbnails for movies and optionally series.

For downloading the posters a working internet connection is needed. MovieThumbs works with all KDE file managers.
If the wrong thumbnail is downloaded include the year when the movie was released in the file name. This will help fetch the correct poster.
All information that is between brackets () and [] will not be used to search. You can still put the year in brackets.

Movie posters are downloaded from tmdb.org (The Movie DataBase)
Series posters are from thetvdb.com (The TV DataBase)

I would like to thank the tmdb and thetvdb teams for allowing the use of their api.

Thank you for checking out MovieThumbs. Bug reports and feedback welcome.

%prep
%setup -q -n %{name}-%{version}

%if 0%{?suse_version}
%build
%cmake_kde4 -d build
%make_jobs

%install
cd build
%makeinstall
%endif

%if 0%{?fedora_version}
%build
%cmake .
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%endif

%files
%defattr(-,root,root)
%doc README

%if 0%{?mandriva_version}
%post
%update_menus
%postun
%clean_menus
%else
%{_libdir}/kde4/*
/usr/share/kde4/services/*
%endif

%changelog
* Sat Mar 01 2014 Maarten De Meyer <de.meyer.maarten@gmail.com>
-Version 0.4.0
* Thu Jan 23 2014 Maarten De Meyer <de.meyer.maarten@gmail.com>
-Version 0.3.3 
* Sat Aug 10 2013 Maarten De Meyer <de.meyer.maarten@gmail.com>
-Start package