Skip to content

Commit

Permalink
RPM build restored
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Dec 7, 2024
1 parent c395ad6 commit 729a77f
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions ImageMagick.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

# Disable automatic .la file removal
%global __brp_remove_la_files %nil

%global Version @PACKAGE_BASE_VERSION@
%global Patchlevel @MAGICK_PATCHLEVEL_VERSION@
%global libsover 7
Expand Down Expand Up @@ -96,7 +97,8 @@ ImageMagick is widely used in web development, graphic design, and other
areas where image processing is required. It provides a versatile and
efficient way to handle a variety of image-related tasks. Additionally,
ImageMagick has bindings for various programming languages, making it easy
to integrate into software applications and workflows.
to integrate into software applications
and workflows.


%package devel
Expand Down Expand Up @@ -217,6 +219,11 @@ however.
%prep
%autosetup -p1 -n %{name}-%{Version}-%{Patchlevel}

# for %%doc
mkdir Magick++/examples
cp -p Magick++/demo/*.cpp Magick++/demo/*.miff Magick++/examples


%build
autoconf -f -i -v
# Reduce thread contention, upstream sets this flag for Linux hosts
Expand All @@ -242,7 +249,6 @@ export CFLAGS="%{optflags} -DIMPNG_SETJMP_IS_THREAD_SAFE"
--with-xml \
--with-urw-base35-font-dir="%{urw_base35_fontpath}" \
--without-dps \
--enable-openmp \
--without-gcc-arch \
--with-jbig \
--with-jxl \
Expand All @@ -254,7 +260,7 @@ export CFLAGS="%{optflags} -DIMPNG_SETJMP_IS_THREAD_SAFE"
--with-gvc \
--with-raqm \
%if %{with libheif}
--with-heic \
--with-heic \
%endif

# Do *NOT* use %%{?_smp_mflags}, this causes PerlMagick to be silently misbuild
Expand All @@ -266,12 +272,11 @@ make html-local
%install
%make_install

cp -a www/source %{buildroot}%{_datadir}/doc/%{name}-%{Version}
# Do NOT remove .la files for codecs
rm %{buildroot}%{_libdir}/*.la

%if %{with perl}
chmod 755 %{buildroot}%{perl_vendorarch}/auto/Image/Magick/Q16HDRI/Q16HDRI.so

# perlmagick: fix perl path of demo files
%{__perl} -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)' PerlMagick/demo/*.pl

Expand Down Expand Up @@ -326,15 +331,18 @@ export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}
%endif
rm PerlMagick/demo/Generic.ttf

%ldconfig_scriptlets libs
%ldconfig_scriptlets c++

%files
%doc NOTICE AUTHORS.txt
%doc README.txt NOTICE AUTHORS.txt NEWS.txt
%license LICENSE
%{_bindir}/[a-z]*
%{_mandir}/man[145]/[a-z]*
%{_mandir}/man1/%{name}.*

%files libs
%doc NOTICE AUTHORS.txt
%doc NOTICE AUTHORS.txt QuickStart.txt
%license LICENSE
%{_libdir}/libMagickCore-6.Q16.so.%{libsover}{,.*}
%{_libdir}/libMagickWand-6.Q16.so.%{libsover}{,.*}
Expand Down Expand Up @@ -383,8 +391,8 @@ rm PerlMagick/demo/Generic.ttf
%doc LICENSE

%files c++
%doc Magick++/AUTHORS
%license Magick++/LICENSE
%doc Magick++/AUTHORS Magick++/ChangeLog Magick++/NEWS Magick++/README
%doc www/Magick++/COPYING
%{_libdir}/libMagick++-6.Q16.so.%{libcxxsover}{,.*}

%files c++-devel
Expand Down

0 comments on commit 729a77f

Please sign in to comment.