Projects
Games
zsdx
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 3
View file
zsdx.changes
Changed
@@ -1,4 +1,20 @@ ------------------------------------------------------------------- +Wed Apr 4 20:22:25 UTC 2018 - antoine.belvire@opensuse.org + +- Make build reproducible: + * Add zsdx-1.11.0-reproducible-build.patch: Sort data files list + before zipping. + * Touch data files in order to have timestamps such as zip + produces a deterministic output. +- Drop useless C++ compiler requirement: + * Add zsdx-1.11.0-dont-require-cpp-compiler.patch: Set NONE as + supported language to prevent CMake from checking default + languages (C, C++). +- Add quest to solarus launcher in %post. +- Use %license instead of %doc for license file (boo#1082318). +- Clean with spec-cleaner. + +------------------------------------------------------------------- Mon Aug 14 10:59:47 UTC 2017 - aloisio@gmx.com - Update to version 1.11.0
View file
zsdx.spec
Changed
@@ -2,6 +2,7 @@ # spec file for package zsdx # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 The Packman Team. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,16 +21,18 @@ Version: 1.11.0 Release: 0 Summary: Zelda Mystery of Solarus DX -License: GPL-3.0 and CC-BY-SA-3.0 and SUSE-NonFree +License: GPL-3.0-only AND CC-BY-SA-3.0 AND NonFree Group: Amusements/Games/RPG -Url: http://www.solarus-games.org/games/zelda-mystery-of-solarus-dx/ +URL: http://www.solarus-games.org/games/zelda-mystery-of-solarus-dx/ Source: https://github.com/christopho/zsdx/archive/%{name}-%{version}.tar.gz -BuildArch: noarch +# PATCH-FIX-UPSTREAM zsdx-1.11.0-dont-require-cpp-compiler.patch -- it's not written in C++ +Patch0: zsdx-1.11.0-dont-require-cpp-compiler.patch +# PATCH-FIX-UPSTREAM zsdx-1.11.0-reproducible-build.patch -- attempt to make the build reproducible +Patch1: zsdx-1.11.0-reproducible-build.patch BuildRequires: cmake -BuildRequires: gcc-c++ BuildRequires: zip -Requires: solarus >= 1.5 -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires(post): solarus >= 1.5 +BuildArch: noarch %description The Legend of Zelda: Mystery of Solarus DX is set to be a @@ -41,6 +44,15 @@ %prep %setup -q -n %{name}-%{name}-%{version} +%patch0 -p1 +%patch1 -p1 + +# Touch files to ensure zip will produce a deterministic output +# See https://reproducible-builds.org/docs/archives/ +if [ -n "$SOURCE_DATE_EPOCH" ]; then + find data -print0 | + xargs -0r touch --no-dereference --date="@${SOURCE_DATE_EPOCH}" +fi %build %cmake @@ -48,11 +60,17 @@ %install cd build -make DESTDIR=%{buildroot} install +%make_install + +%post +if [ -n "$DISPLAY" ]; then + # Add quest to solarus launcher + solarus -add %{_datadir}/solarus/zsdx/ +fi %files -%defattr(-,root,root,-) -%doc readme.md license.txt changelog.txt +%doc readme.md changelog.txt +%license license.txt %{_bindir}/zsdx %dir %{_datadir}/solarus/ %dir %{_datadir}/solarus/zsdx
View file
zsdx-1.11.0-dont-require-cpp-compiler.patch
Added
@@ -0,0 +1,10 @@ +diff -up ./CMakeLists.txt.orig ./CMakeLists.txt +--- ./CMakeLists.txt.orig 2018-04-04 22:16:34.836269551 +0200 ++++ ./CMakeLists.txt 2018-04-04 22:16:40.188269773 +0200 +@@ -1,5 +1,5 @@ + cmake_minimum_required(VERSION 2.6) +-project(ZSDX) ++project(ZSDX NONE) + + set(quest_name "zsdx") +
View file
zsdx-1.11.0-reproducible-build.patch
Added
@@ -0,0 +1,21 @@ +diff -up ./CMakeLists.txt.orig ./CMakeLists.txt +--- ./CMakeLists.txt.orig 2018-04-04 20:52:58.444061583 +0200 ++++ ./CMakeLists.txt 2018-04-04 20:53:30.424062909 +0200 +@@ -27,6 +27,8 @@ file(GLOB_RECURSE data_files + ${CMAKE_CURRENT_SOURCE_DIR}/data/*.fon + ) + ++list(SORT data_files) ++ + file(GLOB_RECURSE data_files_prefixed + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/data/*.spc +@@ -40,6 +42,8 @@ file(GLOB_RECURSE data_files_prefixed + ${CMAKE_CURRENT_SOURCE_DIR}/data/*.fon + ) + ++list(SORT data_files_prefixed) ++ + # add other data to zip archive + add_custom_command( + OUTPUT data.solarus
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
.