LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File audex.spec of Package audex (Project KDE:Extra)

#
# spec file for package audex
#
# Copyright (c) 2012 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/
#


Name:           audex
Version:        0.76b1
Release:        0
Summary:        KDE4 based CDDA extraction tool
License:        GPL-3.0+
Group:          Productivity/Multimedia/CD/Grabbers

Url:            http://kde.maniatek.com/audex/
Source0:        http://kde.maniatek.com/audex/files/%{name}-%{version}.tar.xz
# PATCH-FIX-OPENSUSE require_cmake_2.6.4.patch asterios.dramis@gmail.com -- make the package use cmake-2.6.4 (fixes build in openSUSE 11.2)
Patch0:         require_cmake_2.6.4.patch
# PATCH-FIX-UPSTREAM install_translations.diff ctrippe@opensuse.org -- install translations
Patch1:         install_translations.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires:  libkcddb4-devel
BuildRequires:  libkcompactdisc4-devel
BuildRequires:  libkde4-devel
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif
BuildRequires:  xz
%if 0%{?suse_version} > 1110
BuildRequires:  cdparanoia-devel
%else
BuildRequires:  cdparanoia
%endif
%kde4_runtime_requires
Recommends:     python-eyeD3
Recommends:     %{name}-lang = %{version}

%description
Due to the lack of a good cdda extraction tool with view on archival funtions,
audex is a new audio grabber tool for CD-ROM drives based on KDE 4.



Authors:
--------
    Marco Nelles <marco@maniatek.de>

%lang_package

%prep
%setup -q
%patch0
%patch1 -p1

%build
%cmake_kde4 -d build
%make_jobs

%install
cd build
%kde4_makeinstall
cd ..

%if 0%{?suse_version}
%suse_update_desktop_file -r %{name} Qt KDE AudioVideo Audio CD
%endif

%find_lang %{name}

%kde_post_install

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc CHANGELOG LICENCE README TODO
%{_kde4_bindir}/audex
%{_kde4_applicationsdir}/audex.desktop
%{_kde4_iconsdir}/hicolor/*/apps/audex.png
%{_kde4_appsdir}/audex
%dir %{_kde4_appsdir}/solid
%dir %{_kde4_appsdir}/solid/actions
%{_kde4_appsdir}/solid/actions/audex-rip-audiocd.desktop

%files lang -f %{name}.lang
%defattr(-,root,root,-)

%changelog