commit
3f43f0d36e
12
GraphicsMagick-1.3.14-perl_linkage.patch
Normal file
12
GraphicsMagick-1.3.14-perl_linkage.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up GraphicsMagick-1.3.14/PerlMagick/Makefile.PL.in.perl_linkage GraphicsMagick-1.3.14/PerlMagick/Makefile.PL.in
|
||||||
|
--- GraphicsMagick-1.3.14/PerlMagick/Makefile.PL.in.perl_linkage 2012-02-25 14:43:38.000000000 -0600
|
||||||
|
+++ GraphicsMagick-1.3.14/PerlMagick/Makefile.PL.in 2012-02-26 07:35:38.542731280 -0600
|
||||||
|
@@ -78,7 +78,7 @@ WriteMakefile
|
||||||
|
'INSTALLBIN' => $magick_BIN_DIR,
|
||||||
|
|
||||||
|
# Library specification
|
||||||
|
- 'LIBS' => ["-L$magick_LIB_DIR -lGraphicsMagick $magick_LDFLAGS $magick_DEP_LIBS"],
|
||||||
|
+ 'LIBS' => ["-L$magick_LIB_DIR -L../magick/.libs -lGraphicsMagick $magick_LDFLAGS $magick_DEP_LIBS"],
|
||||||
|
|
||||||
|
# Perl binary name (if a Perl binary is built)
|
||||||
|
'MAP_TARGET' => 'PerlMagick',
|
||||||
43
GraphicsMagick-1.3.16-multilib.patch
Normal file
43
GraphicsMagick-1.3.16-multilib.patch
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
diff -up GraphicsMagick-1.3.16/Magick++/bin/GraphicsMagick++-config.in.multilib GraphicsMagick-1.3.16/Magick++/bin/GraphicsMagick++-config.in
|
||||||
|
--- GraphicsMagick-1.3.16/Magick++/bin/GraphicsMagick++-config.in.multilib 2011-11-12 14:39:22.000000000 -0600
|
||||||
|
+++ GraphicsMagick-1.3.16/Magick++/bin/GraphicsMagick++-config.in 2012-06-24 11:25:12.603862643 -0500
|
||||||
|
@@ -33,13 +33,13 @@ while test $# -gt 0; do
|
||||||
|
echo '@MAGICK_API_CPPFLAGS@'
|
||||||
|
;;
|
||||||
|
--cxxflags)
|
||||||
|
- echo '@CXXFLAGS@'
|
||||||
|
+ echo ''
|
||||||
|
;;
|
||||||
|
--ldflags)
|
||||||
|
- echo '@MAGICK_API_LDFLAGS@'
|
||||||
|
+ echo ''
|
||||||
|
;;
|
||||||
|
--libs)
|
||||||
|
- echo '-lGraphicsMagick++ @MAGICK_API_LIBS@'
|
||||||
|
+ echo '-lGraphicsMagick++'
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "${usage}" 1>&2
|
||||||
|
diff -up GraphicsMagick-1.3.16/magick/GraphicsMagick-config.in.multilib GraphicsMagick-1.3.16/magick/GraphicsMagick-config.in
|
||||||
|
--- GraphicsMagick-1.3.16/magick/GraphicsMagick-config.in.multilib 2011-11-12 14:39:26.000000000 -0600
|
||||||
|
+++ GraphicsMagick-1.3.16/magick/GraphicsMagick-config.in 2012-06-24 11:14:55.947571850 -0500
|
||||||
|
@@ -30,16 +30,16 @@ while test $# -gt 0; do
|
||||||
|
echo @PACKAGE_VERSION@
|
||||||
|
;;
|
||||||
|
--cflags)
|
||||||
|
- echo '@CFLAGS@'
|
||||||
|
+ echo ''
|
||||||
|
;;
|
||||||
|
--cppflags)
|
||||||
|
echo '@MAGICK_API_CPPFLAGS@'
|
||||||
|
;;
|
||||||
|
--ldflags)
|
||||||
|
- echo '@MAGICK_API_LDFLAGS@'
|
||||||
|
+ echo ''
|
||||||
|
;;
|
||||||
|
--libs)
|
||||||
|
- echo '@MAGICK_API_LIBS@'
|
||||||
|
+ echo '-lGraphicsMagick'
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "${usage}" 1>&2
|
||||||
BIN
GraphicsMagick-1.3.30.tar.xz
Normal file
BIN
GraphicsMagick-1.3.30.tar.xz
Normal file
Binary file not shown.
221
GraphicsMagick.spec
Normal file
221
GraphicsMagick.spec
Normal file
@ -0,0 +1,221 @@
|
|||||||
|
%ifarch x86_64
|
||||||
|
%if ! 0%{?__isa_bits:1}
|
||||||
|
%ifarch x86_64
|
||||||
|
%global __isa_bits 64
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%global __provides_exclude_from ^%{_libdir}/GraphicsMagick-%{version}/.*\\.(la|so)$
|
||||||
|
|
||||||
|
Name: GraphicsMagick
|
||||||
|
Version: 1.3.30
|
||||||
|
Release: 4
|
||||||
|
Summary: Derived from ImageMagick, providing faster image generation speed and better quality
|
||||||
|
License: MIT
|
||||||
|
Source0: http://downloads.sourceforge.net/sourceforge/graphicsmagick/GraphicsMagick-%{version}.tar.xz
|
||||||
|
Url: http://www.graphicsmagick.org/
|
||||||
|
|
||||||
|
Patch0000: GraphicsMagick-1.3.14-perl_linkage.patch
|
||||||
|
Patch0001: GraphicsMagick-1.3.16-multilib.patch
|
||||||
|
|
||||||
|
|
||||||
|
BuildRequires: bzip2-devel freetype-devel gcc-c++ giflib-devel jasper-devel lcms2-devel libjpeg-devel
|
||||||
|
BuildRequires: libpng-devel librsvg2-devel libtiff-devel libtool-ltdl-devel libxml2-devel lpr
|
||||||
|
BuildRequires: libX11-devel libXext-devel libXt-devel perl-devel perl-generators perl(ExtUtils::MakeMaker)
|
||||||
|
BuildRequires: xdg-utils xz-devel zlib-devel time jbigkit-devel libwebp-devel
|
||||||
|
|
||||||
|
Requires: urw-fonts
|
||||||
|
|
||||||
|
%description
|
||||||
|
GraphicsMagick is the swiss army knife of image processing. Comprised of 267K physical lines
|
||||||
|
(according to David A. Wheeler's SLOCCount) of source code in the base package
|
||||||
|
(or 1,225K including 3rd party libraries) it provides a robust and efficient collection of tools
|
||||||
|
and libraries which support reading, writing, and manipulating an image in over 89 major formats
|
||||||
|
including important formats like DPX, GIF, JPEG, JPEG-2000, PNG, PDF, PNM, TIFF, and WebP.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Libraries and header files for GraphicsMagick
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
GraphicsMagick-devel contains libraries and header files needed to
|
||||||
|
develop GraphicsMagick applications. This is an image processing program.
|
||||||
|
|
||||||
|
If you want to create an application that will use GraphicsMagick code
|
||||||
|
or API, you need to install GraphicsMagick-devel and GraphicsMagick.
|
||||||
|
If you just want to use, don't install
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Provides: %{name}-doc = %{version}-%{release}
|
||||||
|
Obsoletes: %{name}-doc < %{version}-%{release}
|
||||||
|
Summary: GraphicsMagick documentation and usage introduction
|
||||||
|
Obsoletes: GraphicsMagick < 1.3.19-4
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description help
|
||||||
|
GraphicsMagick documentation and usage introduction.
|
||||||
|
|
||||||
|
%package perl
|
||||||
|
Summary: GraphicsMagick perl package
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
|
||||||
|
%description perl
|
||||||
|
GraphicsMagick's perl package
|
||||||
|
|
||||||
|
Use GraphicsMagick's perl script to install the GraphicsMagick-perl package.
|
||||||
|
|
||||||
|
%package c++
|
||||||
|
Summary: GraphicsMagick c ++ package
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description c++
|
||||||
|
This package contains the GraphicsMagick ++ library, which is
|
||||||
|
a C ++ library for the GraphicsMagick graphics manipulation library.
|
||||||
|
|
||||||
|
To use any application that uses GraphicsMagick ++,
|
||||||
|
install GraphicsMagick-c ++.
|
||||||
|
|
||||||
|
%package c++-devel
|
||||||
|
Summary: GraphicsMagick's C ++ Development Kit
|
||||||
|
Requires: %{name}-c++ = %{version}-%{release}
|
||||||
|
Requires: %{name}-devel = %{version}-%{release}
|
||||||
|
|
||||||
|
%description c++-devel
|
||||||
|
GraphicsMagick-devel contains libraries and header files needed to
|
||||||
|
develop GraphicsMagick applications using Magick ++ C ++ bindings.
|
||||||
|
|
||||||
|
If you want to create an application that uses Magick ++ code or API,
|
||||||
|
you need to install GraphicsMagick-c ++-devel, ImageMagick devel, and GraphicsMagick.
|
||||||
|
|
||||||
|
If you are just using GraphicsMagick, or you want to develop / compile
|
||||||
|
applications using the GraphicsMagick C interface, you do not need to install it.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
%if "%{_libdir}" != "/usr/lib"
|
||||||
|
sed -i -e 's|"/lib /usr/lib|"%{_lib} %{_libdir}|' configure
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --enable-shared --disable-static --docdir=%{_pkgdocdir} --with-lcms2 --with-magick_plus_plus \
|
||||||
|
--with-modules --with-perl --with-perl-options="INSTALLDIRS=vendor %{?perl_prefix}" \
|
||||||
|
--with-quantum-depth=16 --enable-quantum-library-names --with-threads --with-wmf --with-x \
|
||||||
|
--with-xml --without-dps --without-gslib --with-gs-font-dir=%{_datadir}/fonts/default/Type1
|
||||||
|
|
||||||
|
%make_build
|
||||||
|
%make_build perl-build
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
%make_install -C PerlMagick
|
||||||
|
|
||||||
|
%{__perl} -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)' PerlMagick/demo/*.pl
|
||||||
|
|
||||||
|
find %{buildroot} -type f -name "*.bs" -delete
|
||||||
|
find %{buildroot} -type f -name ".packlist" -delete
|
||||||
|
find %{buildroot} -type f -name "perllocal.pod" -delete
|
||||||
|
|
||||||
|
chmod 755 %{buildroot}%{perl_vendorarch}/auto/Graphics/Magick/Magick.so
|
||||||
|
|
||||||
|
find %{buildroot}/%{_libdir}/perl* -type f -print \
|
||||||
|
| sed "s@^%{buildroot}@@g" > perl-pkg-files
|
||||||
|
find %{buildroot}%{perl_vendorarch} -type d -print \
|
||||||
|
| sed "s@^%{buildroot}@%dir @g" \
|
||||||
|
| grep -v '^%dir %{perl_vendorarch}$' \
|
||||||
|
| grep -v '/auto$' >> perl-pkg-files
|
||||||
|
if [ -z perl-pkg-files ] ; then
|
||||||
|
echo "ERROR: FILE LIST EMPTY"
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -rf %{buildroot}%{_datadir}/GraphicsMagick
|
||||||
|
rm -rf %{buildroot}%{_datadir}/%{name}-%{version}/[a-b,d-z,A-Z]*
|
||||||
|
find %{buildroot}%{_libdir} -type f -name "lib*.la" -delete
|
||||||
|
|
||||||
|
%ifarch x86_64
|
||||||
|
mv %{buildroot}%{_includedir}/GraphicsMagick/magick/magick_types.h \
|
||||||
|
%{buildroot}%{_includedir}/GraphicsMagick/magick/magick_types-%{__isa_bits}.h
|
||||||
|
|
||||||
|
cat >%{buildroot}%{_includedir}/GraphicsMagick/magick/magick_types.h <<EOF
|
||||||
|
#ifndef MAGICK_TYPES_MULTILIB
|
||||||
|
#define MAGICK_TYPES_MULTILIB
|
||||||
|
|
||||||
|
#include <bits/wordsize.h>
|
||||||
|
|
||||||
|
#if __WORDSIZE == 32
|
||||||
|
# include "magick/magick_types-32.h"
|
||||||
|
#elif __WORDSIZE == 64
|
||||||
|
# include "magick/magick_types-64.h"
|
||||||
|
#else
|
||||||
|
# error "unexpected value for __WORDSIZE macro"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
EOF
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
time %make_build check ||:
|
||||||
|
|
||||||
|
%post
|
||||||
|
/sbin/ldconfig
|
||||||
|
%postun
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
|
%post c++ -p /sbin/ldconfig
|
||||||
|
%postun c++ -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files
|
||||||
|
%dir %{_pkgdocdir}
|
||||||
|
%license %{_pkgdocdir}/Copyright.txt
|
||||||
|
%{_libdir}/libGraphicsMagick-Q16.so.3*
|
||||||
|
%{_libdir}/libGraphicsMagickWand-Q16.so.2*
|
||||||
|
%{_bindir}/[a-z]*
|
||||||
|
%{_libdir}/GraphicsMagick-%{version}/
|
||||||
|
%{_datadir}/GraphicsMagick-%{version}/
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_bindir}/GraphicsMagick-config
|
||||||
|
%{_bindir}/GraphicsMagickWand-config
|
||||||
|
%{_libdir}/libGraphicsMagick.so
|
||||||
|
%{_libdir}/libGraphicsMagickWand.so
|
||||||
|
%{_libdir}/pkgconfig/GraphicsMagick.pc
|
||||||
|
%{_libdir}/pkgconfig/GraphicsMagickWand.pc
|
||||||
|
%dir %{_includedir}/GraphicsMagick/
|
||||||
|
%{_includedir}/GraphicsMagick/magick/
|
||||||
|
%{_includedir}/GraphicsMagick/wand/
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%dir %{_pkgdocdir}
|
||||||
|
%{_pkgdocdir}/ChangeLog*
|
||||||
|
%{_pkgdocdir}/*.txt
|
||||||
|
%{_pkgdocdir}/www/
|
||||||
|
%{_mandir}/man[145]/[a-z]*
|
||||||
|
%{_mandir}/man1/GraphicsMagick-config.*
|
||||||
|
%{_mandir}/man1/GraphicsMagickWand-config.*
|
||||||
|
%{_mandir}/man1/GraphicsMagick++-config.*
|
||||||
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
|
%files c++
|
||||||
|
%{_libdir}/libGraphicsMagick++-Q16.so.12*
|
||||||
|
|
||||||
|
%files c++-devel
|
||||||
|
%{_bindir}/GraphicsMagick++-config
|
||||||
|
%{_includedir}/GraphicsMagick/Magick++/
|
||||||
|
%{_includedir}/GraphicsMagick/Magick++.h
|
||||||
|
%{_libdir}/libGraphicsMagick++.so
|
||||||
|
%{_libdir}/pkgconfig/GraphicsMagick++.pc
|
||||||
|
|
||||||
|
%files perl -f perl-pkg-files
|
||||||
|
%doc PerlMagick/demo/ PerlMagick/Changelog PerlMagick/README.txt
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Dec 13 2019 yangjian<yangjian79@huawei.com> - 1.3.30-4
|
||||||
|
- Package init
|
||||||
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
|||||||
# GraphicsMagick
|
|
||||||
|
|
||||||
#### Description
|
|
||||||
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
|
|
||||||
|
|
||||||
#### Software Architecture
|
|
||||||
Software architecture description
|
|
||||||
|
|
||||||
#### Installation
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Instructions
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Contribution
|
|
||||||
|
|
||||||
1. Fork the repository
|
|
||||||
2. Create Feat_xxx branch
|
|
||||||
3. Commit your code
|
|
||||||
4. Create Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### Gitee Feature
|
|
||||||
|
|
||||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
||||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
||||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
||||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
39
README.md
39
README.md
@ -1,39 +0,0 @@
|
|||||||
# GraphicsMagick
|
|
||||||
|
|
||||||
#### 介绍
|
|
||||||
{**以下是码云平台说明,您可以替换此简介**
|
|
||||||
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
|
||||||
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
|
||||||
|
|
||||||
#### 软件架构
|
|
||||||
软件架构说明
|
|
||||||
|
|
||||||
|
|
||||||
#### 安装教程
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 使用说明
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 参与贡献
|
|
||||||
|
|
||||||
1. Fork 本仓库
|
|
||||||
2. 新建 Feat_xxx 分支
|
|
||||||
3. 提交代码
|
|
||||||
4. 新建 Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### 码云特技
|
|
||||||
|
|
||||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
||||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
|
||||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
|
||||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
Loading…
x
Reference in New Issue
Block a user