Projects
mingw:32
mingw32-tomahawk-installer
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 2
View file
mingw32-tomahawk-player-installer.spec
Changed
@@ -1,8 +1,14 @@ %define __os_install_post /usr/lib/rpm/brp-compress %{nil} -%define _tomahawk_version() %(rpm -q mingw32-tomahawk-player --qf="%{VERSION}") -%define _tomahawk_release() %(rpm -q mingw32-tomahawk-player --qf="%{RELEASE}") -Name: mingw32-tomahawk-player-installer +%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 array1}' ) +%define _tomahawk_minor_version() %(echo '%{_tomahawk_version}'| awk '{split($0,array,".")} END{print array2}' ) +%define _tomahawk_patch_version() %(echo '%{_tomahawk_version}'| awk '{split($0,array,".")} END{print array3}' ) + +Name: mingw32-tomahawk-unstable-installer License: PD Group: Applications/File Autoreqprov: on @@ -15,7 +21,7 @@ #!BuildIgnore: post-build-checks BuildRequires: mingw32-filesystem -BuildRequires: mingw32-tomahawk-player +BuildRequires: %{_tomahawk_package} BuildRequires: mingw32-cross-nsis @@ -26,15 +32,21 @@ %build cp -rvf %{_mingw32_datadir}/tomahawk/admin/win/nsi/* . sed -i "/LICENSE.txt/d" tomahawk.nsi -cat tomahawk.nsi | makensis -DINSTALL_PATH=%{_mingw32_prefix}/ - + +#%%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}/ \ + -DVER_MAJOR=%{_tomahawk_major_version} \ + -DVER_MINOR=%{_tomahawk_minor_version} \ + -DVER_BUILD=%{_tomahawk_patch_version} \ + - %install mkdir -p %{buildroot}%{_mingw32_prefix} -install tomahawk-*.exe %{buildroot}%{_mingw32_prefix} +install tomahawk-.exe %{buildroot}%{_mingw32_prefix} %files %defattr(-,root,root) -%{_mingw32_prefix}/tomahawk-*.exe +%{_mingw32_prefix}/tomahawk-%{_tomahawk_version}.exe -%changelog \ No newline at end of file +%changelog
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
.