Skip to content

Commit

Permalink
build: update OBS things
Browse files Browse the repository at this point in the history
  • Loading branch information
adriweb committed Sep 5, 2024
1 parent 60862c8 commit 287f5ba
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 55 deletions.
8 changes: 4 additions & 4 deletions obs/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pkgname=cemu
pkgver=1.3
pkgver=2.0
pkgrel=0
pkgdesc='TI-84 Plus CE / TI-83 Premium CE emulator.'
arch=('i686' 'x86_64')
Expand All @@ -14,11 +14,11 @@ md5sums=('SKIP')
build() {
# Compile...
cd "${srcdir}/${pkgname}-${pkgver}"
cd gui/qt/capture/libpng-apng && ./configure --with-libpng-prefix=a --enable-static --disable-shared CFLAGS="-O2 -fPIC" && make libpng16.la && cd ../../../..
cd gui/qt/capture/libpng-apng && autoreconf -vif && ./configure --with-libpng-prefix=a --enable-static --disable-shared CFLAGS="-O2 -fPIC" && make libpng16.la && cd ../../../..
mkdir -p build
cd build
qmake ../gui/qt/CEmu.pro CEMU_VERSION=v1.3 USE_LIBPNG=internal TARGET_NAME=cemu
make
qmake ../gui/qt/CEmu.pro CEMU_VERSION=v2.0 USE_LIBPNG=internal TARGET_NAME=cemu
make -j4
}

package() {
Expand Down
4 changes: 2 additions & 2 deletions obs/_service
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<param name="url">https://github.com/CE-Programming/CEmu.git</param>
<param name="scm">git</param>
<param name="filename">CEmu</param>
<param name="revision">fb53891</param>
<param name="version">1.3</param>
<param name="revision">v2.0</param>
<param name="version">2.0</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
Expand Down
7 changes: 7 additions & 0 deletions obs/cemu.changes
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
-------------------------------------------------------------------
Thu Sep 5 10:00:00 UTC 2024 - [email protected]

- v2.0: Major core and GUI improvements: USB transfers, HW rev M+
support, massive LCD emulation improvements, TI-Basic debugging...
See GitHub release note for more information.

--------------------------------------------------------------------------------------------------------------------------------------
Sat Jun 22 08:12:30 UTC 2019 - [email protected]

- v1.3: Several improvements, bugfixes, minor additions (see GitHub)
Expand Down
4 changes: 2 additions & 2 deletions obs/cemu.dsc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Format: 3.0 (quilt)
Source: cemu
Binary: cemu
Version: 1.3-0
Version: 2.0-0
Architecture: any
Maintainer: Adrien Bertrand <[email protected]>
Homepage: https://github.com/CE-Programming/CEmu
Standards-Version: 3.9.6
Build-Depends: pkg-config, debhelper (>= 9), qtbase5-dev (>= 5.5), qtdeclarative5-dev, qttools5-dev, qttools5-dev-tools, zlib1g-dev, libarchive-dev
Build-Depends: automake, autoconf, libtool, pkg-config, debhelper (>= 9), qtbase5-dev (>= 5.7), qtdeclarative5-dev, qttools5-dev, qttools5-dev-tools, zlib1g-dev, libarchive-dev
69 changes: 26 additions & 43 deletions obs/cemu.spec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

%global debug_package %{nil}
Name: cemu
Version: 1.3
Version: 2.0
Release: 0
Summary: TI-84 Plus CE / TI-83 Premium CE emulator
License: GPL-3.0
Expand All @@ -29,71 +29,50 @@ Source: %{name}-%{version}.tar.xz
BuildRequires: git
BuildRequires: pkgconfig

%if 0%{?suse_version} > 1320
BuildRequires: gcc-c++
%endif
%if 0%{?suse_version} == 1320
BuildRequires: gcc49-c++
#!BuildIgnore: libgcc_s1
%endif

%if 0%{?sle_version} == 120100
# Leap 42.1 / SLE12SP2
BuildRequires: gcc5-c++
%endif

%if 0%{?sle_version} == 120200
# Leap 42.2+ / SLE12SP2Backports
%if 0%{?is_opensuse}
BuildRequires: gcc6-c++
#!BuildIgnore: libasan3
%if 0%{?suse_version} > 1600
BuildRequires: gcc14-c++
%else
BuildRequires: gcc5-c++
%endif
%endif

%if 0%{?sle_version} == 120300
# Leap 42.3+ / SLE12SP2Backports
%if 0%{?is_opensuse}
BuildRequires: gcc6-c++
%if 0%{?sle_version} == 150600
BuildRequires: gcc13-c++
%else
%if 0%{?sle_version} == 150500
BuildRequires: gcc12-c++
%else
BuildRequires: gcc5-c++
BuildRequires: gcc-c++
%endif
%endif

%if 0%{?suse_version} == 1315
#!Buildignore: libgcc_s1
%endif

BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: zlib-devel
BuildRequires: libarchive-devel
BuildRequires: hicolor-icon-theme
Requires: hicolor-icon-theme
%if 0%{?fedora_version}
BuildRequires: openssl-devel
BuildRequires: llvm-libs
%endif
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: qt5-qtbase-devel >= 5.5
BuildRequires: qt5-qtbase-devel >= 5.7
BuildRequires: qt5-qtdeclarative-devel
%else
BuildRequires: libqt5-qtbase-devel >= 5.5
BuildRequires: libqt5-qtbase-devel >= 5.7
BuildRequires: libqt5-qtdeclarative-devel
BuildRequires: update-desktop-files
%endif

%description
Third-party TI-84 Plus CE / TI-83 Premium CE calculator emulator,
focused on developer features.

%prep
%setup -q

%build
export CC=gcc
export CXX=g++
test -x "$(type -p gcc-4.9)" && export CC=gcc-4.9
test -x "$(type -p g++-4.9)" && export CXX=g++-4.9
test -x "$(type -p gcc-5)" && export CC=gcc-5
test -x "$(type -p g++-5)" && export CXX=g++-5
test -x "$(type -p gcc-6)" && export CC=gcc-6
test -x "$(type -p g++-6)" && export CXX=g++-6
test -x "$(type -p gcc-7)" && export CC=gcc-7
test -x "$(type -p g++-7)" && export CXX=g++-7
test -x "$(type -p gcc-8)" && export CC=gcc-8
test -x "$(type -p g++-8)" && export CXX=g++-8
test -x "$(type -p gcc-9)" && export CC=gcc-9
Expand All @@ -104,8 +83,12 @@ test -x "$(type -p gcc-11)" && export CC=gcc-11
test -x "$(type -p g++-11)" && export CXX=g++-11
test -x "$(type -p gcc-12)" && export CC=gcc-12
test -x "$(type -p g++-12)" && export CXX=g++-12
cd gui/qt/capture/libpng-apng && ./configure --with-libpng-prefix=a --enable-static --disable-shared CFLAGS="-O2 -fPIC" && make libpng16.la && cd ../../../..
qmake-qt5 QMAKE_CC="$CC" QMAKE_CXX="$CXX" QMAKE_LINK="$CXX" gui/qt/CEmu.pro CEMU_VERSION=v1.3 USE_LIBPNG=internal TARGET_NAME=cemu
test -x "$(type -p gcc-13)" && export CC=gcc-13
test -x "$(type -p g++-13)" && export CXX=g++-13
test -x "$(type -p gcc-14)" && export CC=gcc-14
test -x "$(type -p g++-14)" && export CXX=g++-14
cd gui/qt/capture/libpng-apng && autoreconf -vif && ./configure --with-libpng-prefix=a --enable-static --disable-shared CFLAGS="-O2 -fPIC" && make libpng16.la && cd ../../../..
qmake-qt5 QMAKE_CC="$CC" QMAKE_CXX="$CXX" QMAKE_LINK="$CXX" gui/qt/CEmu.pro CEMU_VERSION=v2.0 USE_LIBPNG=internal TARGET_NAME=cemu
make %{?_smp_mflags}

%install
Expand Down
8 changes: 8 additions & 0 deletions obs/debian.changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
cemu (2.0-0) unstable; urgency=low

* Major core and GUI improvements: USB transfers, HW rev M+ support,
massive LCD emulation improvements, TI-Basic debugging...
See GitHub release note for more information.

-- Adrien Bertrand <[email protected]> Sat, 22 Jun 2019 15:12:30 +0800

cemu (1.3-0) unstable; urgency=low

* Several improvements, bugfixes, minor additions (see GitHub)
Expand Down
2 changes: 1 addition & 1 deletion obs/debian.control
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Section: devel
Priority: optional
Maintainer: Adrien Bertrand <[email protected]>
Homepage: https://github.com/CE-Programming/CEmu
Build-Depends: pkg-config, debhelper (>= 9), qtbase5-dev (>= 5.5), qtdeclarative5-dev, qttools5-dev, qttools5-dev-tools, zlib1g-dev, libarchive-dev
Build-Depends: automake, autoconf, libtool, pkg-config, debhelper (>= 9), qtbase5-dev (>= 5.7), qtdeclarative5-dev, qttools5-dev, qttools5-dev-tools, zlib1g-dev, libarchive-dev

Package: cemu
Architecture: any
Expand Down
6 changes: 3 additions & 3 deletions obs/debian.rules
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ else
CFLAGS += -O2
endif

CEMU_VERNUM = 1.3
CEMU_VERNUM = 2.0

build: build-stamp
build-stamp:
dh_testdir

# Add here commands to compile the package.
cd cemu-$(CEMU_VERNUM)/gui/qt/capture/libpng-apng && ./configure --with-libpng-prefix=a --enable-static --disable-shared CFLAGS="-O2 -fPIC" && make libpng16.la && cd ../../../../..
cd cemu-$(CEMU_VERNUM)/gui/qt/capture/libpng-apng && autoreconf -vif && ./configure --with-libpng-prefix=a --enable-static --disable-shared CFLAGS="-O2 -fPIC" && make libpng16.la && cd ../../../../..
qmake cemu-$(CEMU_VERNUM)/gui/qt/CEmu.pro CEMU_VERSION=v$(CEMU_VERNUM) USE_LIBPNG=internal TARGET_NAME=cemu
make
make -j4
# --- end custom part for compiling

touch build-stamp
Expand Down

0 comments on commit 287f5ba

Please sign in to comment.