tellico/tellico.spec
OBS User autobuild 40d32e19f6 Accepting request 20835 from KDE:KDE4:Factory:Desktop
Copy from KDE:KDE4:Factory:Desktop/tellico based on submit request 20835 from user Beineri

OBS-URL: https://build.opensuse.org/request/show/20835
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tellico?expand=0&rev=23
2009-09-22 21:54:31 +00:00

88 lines
2.5 KiB
RPMSpec

#
# spec file for package tellico (Version 2.0)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: tellico
BuildRequires: cmake fdupes kdemultimedia4 kdepim4-devel libkde4-devel libpoppler-qt4-devel libqimageblitz-devel
Summary: A book collection manager
Version: 2.0
Release: 1
License: GPL v2 or later
Group: Productivity/Other
Source: %{name}-%{version}.tar.bz2
Provides: bookcase
Obsoletes: bookcase
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://www.periapsis.org/tellico/
# PATCH-FIX-UPSTREAM fix-compile.diff pgajdos@suse.cz
Requires: %{name}-lang = %{version}
%kde4_pimlibs_requires
%description
Tellico is an KDE application for keeping track of your collections. It
provides default templates for books, bibliographies, videos, music,
coins, stamps, trading cards, comic books, and wines.
%lang_package
%prep
%setup -q
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%makeinstall
cd ..
rm -r $RPM_BUILD_ROOT/nogo
%suse_update_desktop_file %name Office Database
%find_lang %{name}
%kde_post_install
%if %suse_version < 1120
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/sv/common
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/en/common
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/fr/common
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/uk/common
%endif
fdupes -r $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,0755)
%doc AUTHORS COPYING ChangeLog
%{_bindir}/tellico
%{_datadir}/applications/kde4/tellico.desktop
%{_datadir}/icons/hicolor/*/apps/tellico.png
%{_datadir}/icons/hicolor/*/mimetypes/application-x-tellico.png
%{_datadir}/mime/packages/tellico.xml
%{_kde_share_dir}/apps/kconf_update/tellico*
%{_kde_share_dir}/config.kcfg/tellico_config.kcfg
%{_kde_share_dir}/apps/%{name}
%{_kde_config_dir}/*
%files lang -f %{name}.lang
%changelog