Projects
mingw:32
mingw32-tomahawk-installer
mingw32-tomahawk-player-installer.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mingw32-tomahawk-player-installer.spec of Package mingw32-tomahawk-installer
%define __os_install_post /usr/lib/rpm/brp-compress %{nil} %define _tomahawk_package mingw32-tomahawk-unstable %define _tomahawk_version() %(rpm -q %{_tomahawk_package} --qf="%{VERSION}") %define _tomahawk_release() %(rpm -q %{_tomahawk_package} --qf="%{RELEASE}") %define _tomahawk_major_version() %(echo '%{_tomahawk_version}'| awk '{split($0,array,".")} END{print array[1]}' ) %define _tomahawk_minor_version() %(echo '%{_tomahawk_version}'| awk '{split($0,array,".")} END{print array[2]}' ) %define _tomahawk_patch_version() %(echo '%{_tomahawk_version}'| awk '{split($0,array,".")} END{print array[3]}' ) %define _tomahawk_installer_version %{_tomahawk_major_version}.%{_tomahawk_minor_version}.%{_tomahawk_patch_version} %define _tomahawk_installer_executable tomahawk-%{_tomahawk_installer_version}.exe Name: mingw32-tomahawk-unstable-installer License: PD Group: Applications/File Autoreqprov: on Version: %{_tomahawk_version} Release: 0 Summary: Tomahawk Player Installer BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch #!BuildIgnore: post-build-checks BuildRequires: mingw32-filesystem BuildRequires: %{_tomahawk_package} BuildRequires: mingw32-cross-nsis # Tomahawk itself and all linked deps BuildRequires: %{_tomahawk_package} # Plugins BuildRequires: mingw32-phonon-vlc # Installer generation BuildRequires: mingw32-cross-nsis mingw32-cross-nsis-plugin-processes mingw32-cross-nsis-plugin-uac %description %prep %build cp -rvf %{_mingw32_datadir}/tomahawk/admin/win/nsi/* . sed -i "/LICENSE.txt/d" tomahawk.nsi #%%define _tomahawk_installer_options() %(echo '%{_tomahawk_version}'| awk -F. '{print "-DVER_MAJOR=" $1 " -DVER_MINOR=" $2 " -DVER_BUILD=" $3 }' ) cat tomahawk.nsi | makensis -DINSTALL_PATH=%{_mingw32_prefix}/ \ -DMING_PATH=%{_mingw32_prefix} \ -DVER_MAJOR=%{_tomahawk_major_version} \ -DVER_MINOR=%{_tomahawk_minor_version} \ -DVER_BUILD=%{_tomahawk_patch_version} \ - %install mkdir -p %{buildroot}%{_mingw32_prefix} install -D -m 644 %{_tomahawk_installer_executable} %{buildroot}%{_mingw32_bindir}/%{_tomahawk_installer_executable} %files %defattr(-,root,root) %{_mingw32_bindir}/%{_tomahawk_installer_executable}
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.