Compare commits
7 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fee4dfa995 | ||
|
|
f9fe53d132 | ||
|
|
970a112d1a | ||
|
|
db77df619b | ||
|
|
2fadffa605 | ||
|
|
71886142f6 | ||
|
|
69ea184c12 |
2 changed files with 31 additions and 11 deletions
36
gmic.spec
36
gmic.spec
|
|
@ -1,16 +1,15 @@
|
|||
%global gimpplugindir %(%___build_pre; gimptool --gimpplugindir)/plug-ins/gmic_gimp_qt
|
||||
%global gimpplugindir %(%___build_pre; gimptool --gimpplugindir)/plug-ins
|
||||
|
||||
%global use_system_cimg 1
|
||||
|
||||
# As generated by new-snapshot.sh script
|
||||
%global zart_version 20231127gitd014169
|
||||
%global gmic_qt_version 20250520gitb55b8ca
|
||||
%global gmic_community_version 20250608git8bbd3d4a
|
||||
|
||||
%global gmic_community_version 20251227git7e21d80b
|
||||
|
||||
Summary: GREYC's Magic for Image Computing
|
||||
Name: gmic
|
||||
Version: 3.5.5
|
||||
Version: 3.6.6
|
||||
%global shortver %(foo=%{version}; echo ${foo//./})
|
||||
Release: %autorelease
|
||||
Source0: https://gmic.eu/files/source/%{name}_%{version}.tar.gz
|
||||
|
|
@ -157,9 +156,7 @@ iconv -f iso8859-1 -t utf-8 COPYING > COPYING.conv && mv -f COPYING.conv COPYING
|
|||
iconv -f iso8859-1 -t utf-8 COPYING-libcgmic > COPYING-libcgmic.conv && mv -f COPYING-libcgmic.conv COPYING-libcgmic
|
||||
|
||||
cd src
|
||||
# Makefile hardcodes gimptool-2.0 for setting PLUGIN var, so
|
||||
# override for gimp-3 compat until upstream fixes its rules
|
||||
make DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} LIB=%{_lib} PLUGIN=%{gimpplugindir} install
|
||||
make DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} LIB=%{_lib} install
|
||||
|
||||
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/gmic_qt.desktop
|
||||
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/zart.desktop
|
||||
|
|
@ -193,16 +190,36 @@ fi
|
|||
# cpio can't handle file -> dir replacements, so must manually
|
||||
# purge the old file path.
|
||||
#
|
||||
# Then also handle upgrades from a botched update to 3.5.5 which
|
||||
# created an extra sub-directory level.
|
||||
#
|
||||
# cpio can't handle dir -> file replacements, so must manually
|
||||
# purge the old directory path.
|
||||
#
|
||||
# Workaround could be removed in Fedora >= 45 timeframe at which
|
||||
# point we shouldn't see any legacy files around in a normal
|
||||
# upgrade scenario.
|
||||
%pretrans -p <lua> gimp
|
||||
path = "%{gimpplugindir}"
|
||||
path = "%{gimpplugindir}/gmic_gimp_qt"
|
||||
st = posix.stat(path)
|
||||
if st and st.type == "regular" then
|
||||
os.remove(path)
|
||||
end
|
||||
|
||||
path = "%{gimpplugindir}/gmic_gimp_qt/gmic_gimp_qt"
|
||||
st = posix.stat(path)
|
||||
if st and st.type == "directory" then
|
||||
status = os.rename(path, path .. ".rpmmoved")
|
||||
if not status then
|
||||
suffix = 0
|
||||
while not status do
|
||||
suffix = suffix + 1
|
||||
status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix)
|
||||
end
|
||||
os.rename(path, path .. ".rpmmoved")
|
||||
end
|
||||
end
|
||||
|
||||
%posttrans
|
||||
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
|
||||
|
|
@ -231,6 +248,9 @@ end
|
|||
%files gimp
|
||||
%dir %{gimpplugindir}
|
||||
%{gimpplugindir}/gmic_gimp_qt
|
||||
# Remove ghosts in Fedora >= 45, see pretrans script
|
||||
%ghost %{gimpplugindir}/gmic_gimp_qt/gmic_gimp_qt.rpmmoved
|
||||
%ghost %{gimpplugindir}/gmic_gimp_qt/gmic_gimp_qt.rpmmoved/gmic_gimp_qt
|
||||
%dir %{_datadir}/gmic
|
||||
%{_datadir}/gmic/gmic_cluts.gmz
|
||||
%{_datadir}/gmic/gmic_denoise_cnn.gmz
|
||||
|
|
|
|||
6
sources
6
sources
|
|
@ -1,4 +1,4 @@
|
|||
SHA512 (gmic-community-20250608git8bbd3d4a.tar.gz) = 0494f8e7af13150767e705fc611956d6715e2aa5409d41ac253effa68955b673edf700b896d11ddcd1ca8787555ddc3e0cc2b6ee99d27ef33c41410ee9bc25fe
|
||||
SHA512 (gmic-qt-20250520gitb55b8ca.tar.gz) = 31c6d2e0d407bad32a7e8eabe1c09d03766e9703af447f1986dab113a958c5472ae128f974f0346a26c02bcd6f3e13a08a5ef4d918d71466237339ed44a74f71
|
||||
SHA512 (zart-20231127gitd014169.tar.gz) = a9b9497e764e785811b7fca66f305207842bf71f9cfbebfd474cf325b067d3145875ad530a5ac3d6f130284d509949cb10ff7c9004b3820f2fbc60a3873fb225
|
||||
SHA512 (gmic_3.5.5.tar.gz) = df7e436e8f6c5849f31c6c039b7cd26b2565a9feb16b855f6f0246b3e0c5214179b1bda36d70d9853b7d5184f94c962039d2e9256099703776278d8c5030f649
|
||||
SHA512 (gmic_3.6.6.tar.gz) = 500cc5f860b9e4791858f36785913871677ce125e0359693ffaaee68234ce2808ff94b1153f131042795c8888366a280430ad2647769b03c9ac2ae803b540ff9
|
||||
SHA512 (gmic-community-20251227git7e21d80b.tar.gz) = 8f472a79b609b1e6562587df77126f5fe0a2837960a34df16fe2376a7b20ac208fa094720d8c539cb23d04b1039b20b1bf3c546312fcc0cb2e666624c7adaeb6
|
||||
SHA512 (gmic-qt-20250520gitb55b8ca.tar.gz) = 31c6d2e0d407bad32a7e8eabe1c09d03766e9703af447f1986dab113a958c5472ae128f974f0346a26c02bcd6f3e13a08a5ef4d918d71466237339ed44a74f71
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue