public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Grulich <jgrulich@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/mediawriter] epel10: 4.2.1
Date: Tue, 29 Sep 2026 15:27:47 GMT	[thread overview]
Message-ID: <179069566717.1.11508558668936478749.rpms-mediawriter-04125d1facb3@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/mediawriter
Branch : epel10
Commit : 04125d1facb3e709e40b71d03bd766320ce31d21
Author : Jan Grulich <jgrulich@redhat.com>
Date   : 2021-03-22T12:08:46+01:00
Stats  : +16/-176 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/mediawriter/c/04125d1facb3e709e40b71d03bd766320ce31d21?branch=epel10

Log:
4.2.1

---
diff --git a/.gitignore b/.gitignore
index 4286aeb..fd9ed59 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,3 +21,4 @@
 /MediaWriter-4.1.6.tar.gz
 /MediaWriter-4.1.7.tar.gz
 /MediaWriter-4.2.0.tar.gz
+/MediaWriter-4.2.1.tar.gz

diff --git a/mediawriter-fix-windows-build.patch b/mediawriter-fix-windows-build.patch
deleted file mode 100644
index 8cbd464..0000000
--- a/mediawriter-fix-windows-build.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-diff --git a/dist/win/build.sh b/dist/win/build.sh
-index 93c9be2..3a5eda6 100755
---- a/dist/win/build.sh
-+++ b/dist/win/build.sh
-@@ -40,7 +40,7 @@ ROOTPATH=$(realpath "$SCRIPTDIR/../../")
- BUILDPATH="$ROOTPATH/build"
- 
- MEDIAWRITER="$BUILDPATH/app/release/mediawriter.exe"
--HELPER="$BUILDPATH/app/helper.exe"
-+HELPER="$BUILDPATH/app/release/helper.exe"
- 
- if ! $opt_nosign; then
-     if [ -z "$CERTPATH" ]; then
-@@ -197,7 +197,8 @@ popd >/dev/null
- popd >/dev/null
- 
- echo "=== Composing installer"
--unix2dos < "$ROOTPATH/LICENSE" > "$BUILDPATH/app/release/LICENSE.txt"
-+unix2dos < "$ROOTPATH/LICENSE.GPL-2" > "$BUILDPATH/app/release/LICENSE.GPL-2.txt"
-+unix2dos < "$ROOTPATH/LICENSE.LGPL-2" > "$BUILDPATH/app/release/LICENSE.LGPL-2.txt"
- INSTALLED_SIZE=$(du -k -d0 "$BUILDPATH/app/release" | cut -f1)
- cp "$SCRIPTDIR/mediawriter.nsi" "$SCRIPTDIR/mediawriter.tmp.nsi"
- sed -i "s/#!define VERSIONMAJOR/!define VERSIONMAJOR ${VERSION_MAJOR}/" "$SCRIPTDIR/mediawriter.tmp.nsi"

diff --git a/mediawriter-md5.patch b/mediawriter-md5.patch
deleted file mode 100644
index 8db72d2..0000000
--- a/mediawriter-md5.patch
+++ /dev/null
@@ -1,140 +0,0 @@
-diff --git a/lib/isomd5/libcheckisomd5.c b/lib/isomd5/libcheckisomd5.c
-index 1edb0d7..93384f0 100644
---- a/lib/isomd5/libcheckisomd5.c
-+++ b/lib/isomd5/libcheckisomd5.c
-@@ -226,7 +226,7 @@ static int checkmd5sum(int isofd, char *mediasum, char *computedsum, checkCallba
-     /* rewind, compute md5sum */
-     lseek64(isofd, 0LL, SEEK_SET);
- 
--    MD5_Init(&md5ctx);
-+    ISOMD5_Init(&md5ctx);
- 
-     offset = 0;
-     apoff = pvd_offset + APPDATA_OFFSET;
-@@ -267,13 +267,13 @@ static int checkmd5sum(int isofd, char *mediasum, char *computedsum, checkCallba
-             memset(buf+appdata_start_offset, ' ', len);
-         }
- 
--        MD5_Update(&md5ctx, buf, nread);
-+        ISOMD5_Update(&md5ctx, buf, nread);
-         if (fragmentcount) {
-             current_fragment = offset * (fragmentcount+1) / (isosize - skipsectors*2048);
-             /* if we're onto the next fragment, calculate the previous sum and check */
-             if ( current_fragment != previous_fragment ) {
-                 memcpy(&fragmd5ctx, &md5ctx, sizeof(MD5_CTX));
--                MD5_Final(fragmd5sum, &fragmd5ctx);
-+                ISOMD5_Final(fragmd5sum, &fragmd5ctx);
-                 *computedsum = '\0';
-                 j = (current_fragment-1)*FRAGMENT_SUM_LENGTH/fragmentcount;
-                 for (i=0; i<FRAGMENT_SUM_LENGTH/fragmentcount; i++) {
-@@ -305,7 +305,7 @@ static int checkmd5sum(int isofd, char *mediasum, char *computedsum, checkCallba
- 
-     free(buf_unaligned);
- 
--    MD5_Final(md5sum, &md5ctx);
-+    ISOMD5_Final(md5sum, &md5ctx);
- 
-     *computedsum = '\0';
-     for (i=0; i<16; i++) {
-diff --git a/lib/isomd5/md5.c b/lib/isomd5/md5.c
-index 4fba281..15223e5 100644
---- a/lib/isomd5/md5.c
-+++ b/lib/isomd5/md5.c
-@@ -24,7 +24,7 @@
- #include <string.h>
- #include "md5.h"
- 
--void MD5_Transform(uint32 *buf, uint32 const *in);
-+void ISOMD5_Transform(uint32 *buf, uint32 const *in);
- 
- volatile union {
-     uint32_t i;
-@@ -56,7 +56,7 @@ static void byteReverse(unsigned char *buf, unsigned longs)
-  * Start MD5 accumulation.  Set bit count to 0 and buffer to mysterious
-  * initialization constants.
-  */
--void MD5_Init(struct MD5Context *ctx)
-+void ISOMD5_Init(struct MD5Context *ctx)
- {
-         ctx->buf[0] = 0x67452301U;
-         ctx->buf[1] = 0xefcdab89U;
-@@ -77,7 +77,7 @@ void MD5_Init(struct MD5Context *ctx)
-  * Update context to reflect the concatenation of another buffer full
-  * of bytes.
-  */
--void MD5_Update(struct MD5Context *ctx, unsigned const char *buf, unsigned len)
-+void ISOMD5_Update(struct MD5Context *ctx, unsigned const char *buf, unsigned len)
- {
-         uint32 t;
- 
-@@ -102,7 +102,7 @@ void MD5_Update(struct MD5Context *ctx, unsigned const char *buf, unsigned len)
-                 }
-                 memcpy(p, buf, t);
-                 if (ctx->doByteReverse) byteReverse(ctx->in, 16);
--                MD5_Transform(ctx->buf, (uint32 *) ctx->in);
-+                ISOMD5_Transform(ctx->buf, (uint32 *) ctx->in);
-                 buf += t;
-                 len -= t;
-         }
-@@ -111,7 +111,7 @@ void MD5_Update(struct MD5Context *ctx, unsigned const char *buf, unsigned len)
-         while (len >= 64) {
-                 memcpy(ctx->in, buf, 64);
-                 if (ctx->doByteReverse) byteReverse(ctx->in, 16);
--                MD5_Transform(ctx->buf, (uint32 *) ctx->in);
-+                ISOMD5_Transform(ctx->buf, (uint32 *) ctx->in);
-                 buf += 64;
-                 len -= 64;
-         }
-@@ -125,7 +125,7 @@ void MD5_Update(struct MD5Context *ctx, unsigned const char *buf, unsigned len)
-  * Final wrapup - pad to 64-byte boundary with the bit pattern 
-  * 1 0* (64-bit count of bits processed, MSB-first)
-  */
--void MD5_Final(unsigned char digest[16], struct MD5Context *ctx)
-+void ISOMD5_Final(unsigned char digest[16], struct MD5Context *ctx)
- {
-         unsigned count;
-         unsigned char *p;
-@@ -146,7 +146,7 @@ void MD5_Final(unsigned char digest[16], struct MD5Context *ctx)
-                 /* Two lots of padding:  Pad the first block to 64 bytes */
-                 memset(p, 0, count);
-                 if (ctx->doByteReverse) byteReverse(ctx->in, 16);
--                MD5_Transform(ctx->buf, (uint32 *) ctx->in);
-+                ISOMD5_Transform(ctx->buf, (uint32 *) ctx->in);
- 
-                 /* Now fill the next block with 56 bytes */
-                 memset(ctx->in, 0, 56);
-@@ -159,7 +159,7 @@ void MD5_Final(unsigned char digest[16], struct MD5Context *ctx)
-         /* Append length in bits and transform */
-         memcpy(ctx->in+56, ctx->bits, sizeof(ctx->bits));
- 
--        MD5_Transform(ctx->buf, (uint32 *) ctx->in);
-+        ISOMD5_Transform(ctx->buf, (uint32 *) ctx->in);
-         if (ctx->doByteReverse) byteReverse((unsigned char *) ctx->buf, 4);
-         memcpy(digest, ctx->buf, 16);
-         memset(ctx, 0, sizeof(*ctx));    /* In case it's sensitive */
-@@ -184,7 +184,7 @@ void MD5_Final(unsigned char digest[16], struct MD5Context *ctx)
-  * reflect the addition of 16 longwords of new data.  MD5Update blocks
-  * the data and converts bytes into longwords for this routine.
-  */
--void MD5_Transform(uint32 buf[4], uint32 const in[16])
-+void ISOMD5_Transform(uint32 buf[4], uint32 const in[16])
- {
-         register uint32 a, b, c, d;
- 
-diff --git a/lib/isomd5/md5.h b/lib/isomd5/md5.h
-index 64161e8..8da5576 100644
---- a/lib/isomd5/md5.h
-+++ b/lib/isomd5/md5.h
-@@ -15,9 +15,9 @@ struct MD5Context {
- 	int doByteReverse;
- };
- 
--void MD5_Init(struct MD5Context *);
--void MD5_Update(struct MD5Context *, unsigned const char *, unsigned);
--void MD5_Final(unsigned char digest[16], struct MD5Context *);
-+void ISOMD5_Init(struct MD5Context *);
-+void ISOMD5_Update(struct MD5Context *, unsigned const char *, unsigned);
-+void ISOMD5_Final(unsigned char digest[16], struct MD5Context *);
- 
- /*
-  * This is needed to make RSAREF happy on some MS-DOS compilers.

diff --git a/mediawriter.spec b/mediawriter.spec
index e0bae42..80eb27a 100644
--- a/mediawriter.spec
+++ b/mediawriter.spec
@@ -1,20 +1,18 @@
 Name:           mediawriter
-Version:        4.2.0
-Release:        3%{?dist}
+Version:        4.2.1
+Release:        1%{?dist}
 Summary:        Fedora Media Writer
 
 License:        GPLv2+
 URL:            https://github.com/FedoraQt/MediaWriter
 Source0:        https://github.com/FedoraQt/MediaWriter/archive/MediaWriter-%{version}.tar.gz
 
-Patch0:         mediawriter-md5.patch
-Patch1:         mediawriter-fix-windows-build.patch
-
 Provides:       liveusb-creator = %{version}-%{release}
 Obsoletes:      liveusb-creator <= 3.95.4-2
 
 BuildRequires:  gcc-c++
 BuildRequires:  gettext
+BuildRequires:  cmake
 BuildRequires:  make
 BuildRequires:  libappstream-glib
 BuildRequires:  libadwaita-qt5-devel
@@ -46,19 +44,20 @@ like flash drives or memory cards.
 
 %prep
 %autosetup -p1 -n MediaWriter-%{version}
-mkdir %{_target_platform}
+
+# Remove 1024x1024 icon
+rm -rf app/data/icons/hicolor/1024x1024
 
 # Install the theme into correct prefix when building for /app
-sed -i 's@\$\$\[QT_INSTALL_QML\]@%{_qt5_qmldir}@' theme/theme.pro
+sed -i 's@\${QT_INSTALL_QML}@%{_qt5_qmldir}@' theme/CMakeLists.txt
 
 %build
-pushd %{_target_platform}
-%{qmake_qt5} PREFIX=%{_prefix} MEDIAWRITER_VERSION=%{version}-%{release} ..
-popd
-%make_build -C %{_target_platform}
+%cmake
+
+%cmake_build
 
 %install
-make install INSTALL_ROOT=%{buildroot} -C %{_target_platform}
+%cmake_install
 
 %check
 appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/org.fedoraproject.MediaWriter.appdata.xml
@@ -81,6 +80,9 @@ appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/org.fedo
 
 
 %changelog
+* Mon Mar 22 2021 Jan Grulich <jgrulich@redhat.com> - 4.2.1-1
+- 4.2.1
+
 * Wed Mar 03 2021 Jan Grulich <jgrulich@redhat.com> - 4.2.0-3
 - Fix windows build script
 

diff --git a/sources b/sources
index f57ec60..e8d6cc0 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (MediaWriter-4.2.0.tar.gz) = 0e25717d68311e25022db764a69c71d20783333a68b37a51ea91c8748a56913204edb243880e7d63417020be6c8c59076f866ece8236ab061d679af8478f3c57
+SHA512 (MediaWriter-4.2.1.tar.gz) = c358ef364fc3bb9b5d0d8249b892c8763bbe468c19374fbb5d07d0604412d4e98171f6f262a81786b2d0b50e21d769e00b29fd2591af91c334fa4ed4f61de9fb

                 reply	other threads:[~2026-09-29 15:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179069566717.1.11508558668936478749.rpms-mediawriter-04125d1facb3@fedoraproject.org \
    --to=jgrulich@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox