public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sandro Mani <manisandro@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/pgmodeler] rawhide: Update to 2.0.0
Date: Sat, 31 Oct 2026 12:51:32 GMT	[thread overview]
Message-ID: <179345109287.1.3192444333612369169.rpms-pgmodeler-63eaf8f34ee6@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/pgmodeler
Branch : rawhide
Commit : 63eaf8f34ee6f0e93ad937e8ac3fc758a6670d31
Author : Sandro Mani <manisandro@gmail.com>
Date   : 2026-10-31T13:51:20+01:00
Stats  : +55/-36 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/pgmodeler/c/63eaf8f34ee6f0e93ad937e8ac3fc758a6670d31?branch=rawhide

Log:
Update to 2.0.0

---
diff --git a/.gitignore b/.gitignore
index 98872bf..77e7e4e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,4 @@
 /pgmodeler-1.2.0.tar.gz
 /pgmodeler-1.2.1.tar.gz
 /pgmodeler-1.2.2.tar.gz
+/pgmodeler-2.0.0.tar.gz

diff --git a/pgmodeler.spec b/pgmodeler.spec
index ff6c1b5..25b6710 100644
--- a/pgmodeler.spec
+++ b/pgmodeler.spec
@@ -3,8 +3,8 @@
 %global __requires_exclude (%{_privatelibs})
 
 Name:             pgmodeler
-Version:          1.2.2
-Release:          4%{?dist}
+Version:          2.0.0
+Release:          1%{?dist}
 Summary:          PostgreSQL Database Modeler
 
 License:          GPL-3.0-only
@@ -14,21 +14,21 @@ Source0:          https://github.com/%{name}/%{name}/archive/v%{version}/%{name}
 Source1:          %{name}.desktop
 Source2:          pgmodeler-mime-dbm.xml
 
+# Don't override system default C/C++ compiler
+Patch0:           pgmodeler_compiler.patch
+
 Requires:         hicolor-icon-theme
 Requires:         shared-mime-info
 
+BuildRequires:    cmake
+BuildRequires:    cups-devel
 BuildRequires:    desktop-file-utils
-BuildRequires:    gettext
 BuildRequires:    libappstream-glib
 BuildRequires:    libpq-devel
-BuildRequires:    libXext-devel
 BuildRequires:    libxml2-devel
-BuildRequires:    make
 BuildRequires:    qt6-qtbase-devel
 BuildRequires:    qt6-qtsvg-devel
-# for convert 300x300 logo file to 256x256
-BuildRequires:    ImageMagick
-BuildRequires:    moreutils
+BuildRequires:    qt6-qttools-devel
 
 
 %description
@@ -45,31 +45,24 @@ by the user to SQL code and apply them onto database clusters (Version
 
 
 %build
-
-# @TODO Due to the bug (https://github.com/pgmodeler/pgmodeler/issues/559) CONFDIR, LANGDIR, SAMPLESDIR, SCHEMASDIR seems ignored?
-# SHAREDIR=%%{_sharedstatedir}/%%{name} \
-# CONFDIR=%%{_sysconfdir}/%%{name} \
-# LANGDIR=%%{_datadir}/locale \
-# SCHEMASDIR=%%{_sysconfdir}/%%{name} \
-%qmake_qt6 \
- PREFIX=%{_prefix} \
- BINDIR=%{_bindir} \
- PRIVATEBINDIR=%{_libexecdir} \
- PLUGINSDIR=%{_libdir}/%{name}/plugins \
- SHAREDIR=%{_datarootdir}/%{name} \
- DOCDIR=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}} \
- PRIVATELIBDIR=%{_libdir}/%{name} \
- %{name}.pro
-
-%make_build
+%cmake \
+    -DPGM_PREFIX=%{_prefix} \
+    -DPGM_PRIVATEBINDIR=%{_libexecdir} \
+    -DPGM_PRIVATELIBDIR=%{_libdir}/%{name}/ \
+    -DPGM_PLUGINSDIR=%{_libdir}/%{name}/plugins/ \
+    -DPGM_CONFDIR=%{_sysconfdir}/%{name} \
+    -DPGM_DOCDIR=%{_defaultdocdir}/%{name} \
+    -DPGM_LANGDIR=%{_datadir}/%{name}/lang \
+    -DPGM_SAMPLESDIR=%{_datadir}/%{name}/samples \
+    -DPGM_SCHEMASDIR=%{_datadir}/%{name}/schemas
+%cmake_build
 
 
 %install
-%make_install INSTALL_ROOT=%{buildroot}
+%cmake_install
 
 desktop-file-install --mode 644 --dir %{buildroot}%{_datadir}/applications/ %{SOURCE1}
 # icon, mime and menu-entry
-convert -resize 256x256 pgmodeler_logo.png - | sponge pgmodeler_logo.png
 install -p -dm 755 %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/ %{buildroot}%{_datadir}/mime/packages/
 install -p -m 644 assets/conf/%{name}_logo.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/
 install -p -m 644 %{SOURCE2} %{buildroot}%{_datadir}/mime/packages/%{name}.xml
@@ -78,9 +71,8 @@ mkdir -p %{buildroot}%{_libdir}/%{name}/plugins
 
 install -Dp -m 644 %{name}.appdata.xml %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
 appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
-
-# License installed separately
-rm -f %{buildroot}/%{_docdir}/%{name}/LICENSE
+# Installed via %%license
+rm -f %{buildroot}%{_defaultdocdir}/%{name}/LICENSE
 
 
 %files
@@ -90,17 +82,19 @@ rm -f %{buildroot}/%{_docdir}/%{name}/LICENSE
 %{_bindir}/%{name}-cli
 %{_libexecdir}/%{name}-ch
 %{_libexecdir}/%{name}-se
-# %%{_libdir}/%%{name}/lib*.so are not devel files! All in subdirectory and needs to load plugins only
 %{_libdir}/%{name}
-%{_datarootdir}/%{name}
-%exclude %{_datarootdir}/%{name}/lang/*
+%{_sysconfdir}/%{name}
+%{_datadir}/%{name}
+%{_datadir}/appdata/%{name}.appdata.xml
+%{_datadir}/applications/%{name}.desktop
 %{_datadir}/icons/hicolor/256x256/apps/pgmodeler_logo.png
 %{_datadir}/mime/packages/%{name}.xml
-%{_datadir}/applications/%{name}.desktop
-%{_datadir}/appdata/%{name}.appdata.xml
 
 
 %changelog
+* Fri Oct 30 2026 Sandro Mani <manisandro@gmail.com> - 2.0.0-1
+- Update to 2.0.0
+
 * Thu Sep 10 2026 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.2.2-4
 - Rebuilt for libxml-2.5.4
 

diff --git a/pgmodeler_compiler.patch b/pgmodeler_compiler.patch
new file mode 100644
index 0000000..0e20b18
--- /dev/null
+++ b/pgmodeler_compiler.patch
@@ -0,0 +1,24 @@
+diff -rupN pgmodeler-2.0.0/BuildConfs.cmake pgmodeler-2.0.0-new/BuildConfs.cmake
+--- pgmodeler-2.0.0/BuildConfs.cmake	2026-10-30 14:18:17.000000000 +0100
++++ pgmodeler-2.0.0-new/BuildConfs.cmake	2026-10-30 21:47:51.729657248 +0100
+@@ -3,13 +3,13 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
+ # set(CMAKE_VERBOSE_MAKEFILE ON)
+ 
+ # By default the compiler used is clang/clang++
+-if(LINUX)
+-  set(CMAKE_C_COMPILER /usr/bin/clang)
+-  set(CMAKE_CXX_COMPILER /usr/bin/clang++)
+-elseif(WIN32)
+-  set(CMAKE_C_COMPILER C:/msys64/mingw64/bin/clang)
+-  set(CMAKE_CXX_COMPILER C:/msys64/mingw64/bin/clang++)
+-endif()
++#if(LINUX)
++#  set(CMAKE_C_COMPILER /usr/bin/clang)
++#  set(CMAKE_CXX_COMPILER /usr/bin/clang++)
++#elseif(WIN32)
++#  set(CMAKE_C_COMPILER C:/msys64/mingw64/bin/clang)
++#  set(CMAKE_CXX_COMPILER C:/msys64/mingw64/bin/clang++)
++#endif()
+ 
+ set(CMAKE_CXX_STANDARD 17)
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)

diff --git a/sources b/sources
index 7ca9c2e..108b823 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pgmodeler-1.2.2.tar.gz) = 867f5cd07c67c0d3811d14e02c59837c7380e0dae56e530c2bd7288a9b22a6d58e311b507b774582048adc90bab359d4b835aba647828ea4c3098c5b6cf01107
+SHA512 (pgmodeler-2.0.0.tar.gz) = efd39a0fc9ce0d5e4a757273b7adb6b5d20993e3520f0052f797f3bdecf7f43a1686f36ed2893c8a4f3cd806496540a5cf901fc0bcd5a16090d88aff566c53c8

                 reply	other threads:[~2026-10-31 12:51 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=179345109287.1.3192444333612369169.rpms-pgmodeler-63eaf8f34ee6@fedoraproject.org \
    --to=manisandro@gmail.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