[packages/mtpaint] - updated to 3.50
qboosh
qboosh at pld-linux.org
Mon Oct 6 21:55:06 CEST 2025
commit 70933d538554cd6db98cd07fcf3f95a3712fa305
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Oct 6 21:58:17 2025 +0200
- updated to 3.50
mtpaint.spec | 47 +++++++++++++++++++++++------------------------
1 file changed, 23 insertions(+), 24 deletions(-)
---
diff --git a/mtpaint.spec b/mtpaint.spec
index e33961a..7d03747 100644
--- a/mtpaint.spec
+++ b/mtpaint.spec
@@ -1,24 +1,26 @@
Summary: A simple painting program
Summary(pl.UTF-8): Prosty program graficzny
Name: mtpaint
-Version: 3.40
-Release: 6
+Version: 3.50
+Release: 1
License: GPL v3+
Group: X11/Applications/Graphics
-Source0: http://dl.sourceforge.net/mtpaint/%{name}-%{version}.tar.bz2
-# Source0-md5: 957c8035dd62c6bfdb594cd0a4467d22
+Source0: https://downloads.sourceforge.net/mtpaint/%{name}-%{version}.tar.bz2
+# Source0-md5: bd50c57259e22a96989b9c923743d1d0
Source1: %{name}.desktop
-URL: http://mtpaint.sourceforge.net/
+URL: https://mtpaint.sourceforge.net/
BuildRequires: gettext-tools
BuildRequires: giflib-devel
-BuildRequires: gtk+2-devel
+BuildRequires: gtk+3-devel >= 3.0
+BuildRequires: lcms2-devel >= 2
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel >= 1.2.27
BuildRequires: libtiff-devel
-BuildRequires: openjpeg-devel
+BuildRequires: libwebp-devel
+BuildRequires: openjpeg2-devel >= 2
BuildRequires: perl-tools-pod
BuildRequires: pkgconfig
-BuildRequires: sed >= 4.0
+BuildRequires: rpmbuild(macros) >= 1.311
BuildRequires: which
BuildRequires: zlib-devel
Requires: desktop-file-utils
@@ -36,12 +38,13 @@ Prosty program graficzny oparty na bibliotece GTK+.
%setup -q
%build
-./configure gtk2 thread GIF man pod intl jpeg jp2 tiff \
- --mandir=%{_mandir}/man1 \
+./configure debug gtk3 thread GIF man pod intl jpeg jp2v2 lcms2 tiff \
+ --mandir=%{_mandir} \
--prefix=%{_prefix}
+
cat >> _conf.txt <<EOF
LDFLAG += %{rpmldflags}
-CFLAG += %{rpmcflags} $(pkg-config --cflags-only-I libopenjpeg1)
+CFLAG += %{rpmcflags}
CC = %{__cc} -Wall -Wno-pointer-sign
EOF
@@ -54,8 +57,8 @@ rm -rf $RPM_BUILD_ROOT
DESTDIR=$RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
-install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
-install src/icons1/icon.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.xpm
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+cp -p src/icons1/icon.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.xpm
%find_lang %{name}
@@ -64,21 +67,17 @@ rm -rf $RPM_BUILD_ROOT
%post
%update_desktop_database_post
-umask 022
-update-mime-database %{_datadir}/mime ||:
+%update_mime_database
%postun
%update_desktop_database_postun
-if [ $1 = 0 ]; then
- umask 022
- update-mime-database %{_datadir}/mime
-fi
-
+%update_mime_database
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc NEWS README
-%attr(755,root,root) %{_bindir}/*
-%{_mandir}/*/*
-%{_desktopdir}/*.desktop
-%{_pixmapsdir}/*
+%attr(755,root,root) %{_bindir}/mtpaint
+%{_mandir}/man1/mtpaint.1*
+%{_desktopdir}/mtpaint.desktop
+%{_pixmapsdir}/mtpaint.png
+%{_pixmapsdir}/mtpaint.xpm
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mtpaint.git/commitdiff/70933d538554cd6db98cd07fcf3f95a3712fa305
More information about the pld-cvs-commit
mailing list