File dvda-author-gui.spec of Package dvda-author-gui

#
# spec file for package dvda-author-gui
#
# Copyright (c) 2018 SUSE LINUX 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:           dvda-author-gui
Version:        10.05
Release:        0
Summary:        GUI for DVDA-Author
License:        GPL-3.0
Group:          Productivity/Multimedia/Sound/Editors and Convertors
Url:            http://dvd-audio.sourceforge.net/
Source0:        %{name}-%{version}.7z
BuildRequires:  ImageMagick
BuildRequires:  dos2unix
BuildRequires:  gcc-c++
BuildRequires:  libqt4-devel
%if 0%{?suse_version} && 0%{?suse_version} > 1500
BuildRequires:  p7zip-full
%else
BuildRequires:  p7zip
%endif
BuildRequires:  update-desktop-files
Requires:       dvda-author

%global desktop_file_name %{summary}

%package doc
Summary:        Documentation for DVDA-Author-GUI
Group:          Documentation/HTML
BuildArch:      noarch
Requires:       %{name} = %{version}

%description
This is a Qt4 GUI for DVDA-Author.

%description doc
This package contains the documentation for the DVDA-Author-GUI.

%prep
%setup -q

%build
%{__make} %{?_smp_mflags} -f %{name}
%{__strip} -s gui
/usr/bin/dos2unix -k README
/usr/bin/convert %{name}.ico png32:%{name}.png

%install
%{__mkdir_p} -p %{buildroot}%{_bindir}
%{__mkdir_p} %{buildroot}%{_datadir}/pixmaps
%{__mkdir_p} %{buildroot}%{_defaultdocdir}/%{name}
%{__mkdir_p} %{buildroot}%{_defaultdocdir}/%{name}/images
%{__mkdir_p} %{buildroot}%{_defaultdocdir}/%{name}/images/nsis
%{__mkdir_p} %{buildroot}%{_defaultdocdir}/%{name}/images/web
%{__install} -m 0755 -p gui %{buildroot}%{_bindir}/%{name}
%{__install} -m 0644 -p -t %{buildroot}%{_datadir}/pixmaps %{name}.png
%{__install} -m 0644 -p -t %{buildroot}%{_defaultdocdir}/%{name} COPYING ChangeLog GUI.shtml README
%{__install} -m 0644 -p -t %{buildroot}%{_defaultdocdir}/%{name}/images images/*.png
%{__install} -m 0644 -p --t %{buildroot}%{_defaultdocdir}/%{name}/images/nsis images/nsis/*.bmp
%{__install} -m 0644 -p --t %{buildroot}%{_defaultdocdir}/%{name}/images/web images/web/*.png
%suse_update_desktop_file -c %{name} DVDA-Author "%{desktop_file_name}" %{name} %{name} AudioVideo DiscBurning

%files
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop

%files doc
%defattr(-,root,root,-)
%{_defaultdocdir}/%{name}/

%changelog
openSUSE Build Service is sponsored by