Logoj0ke.net Open Build Service > Projects > home:jg:multimedia > ImageMagick > Changes
Sign Up | Log In

Changes of Revision 2

[-] Added ImageMagick.spec
x
 
1
@@ -0,0 +1,873 @@
2
+%define VER 6.6.3
3
+%define Patchlevel 9
4
+
5
+%define withdjvu 1
6
+%if 0%{?rhel}
7
+%define withdjvu 0
8
+%endif
9
+
10
+
11
+Name:           ImageMagick
12
+Version:        %{VER}.%{Patchlevel}
13
+Release:        1%{?dist}
14
+Summary:        An X application for displaying and manipulating images
15
+Group:          Applications/Multimedia
16
+License:        ImageMagick
17
+Url:            http://www.imagemagick.org/
18
+Source0:        ftp://ftp.ImageMagick.org/pub/ImageMagick/ImageMagick-%{VER}-%{Patchlevel}.tar.bz2
19
+Patch1:         ImageMagick-6.4.0-multilib.patch
20
+
21
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
22
+BuildRequires:  bzip2-devel, freetype-devel, libjpeg-devel, libpng-devel
23
+BuildRequires:  libtiff-devel, giflib-devel, zlib-devel, make, automake, gcc, gcc-c++, autoconf
24
+%if 0%{?fedora} >= 7
25
+BuildRequires:  perl-devel
26
+%else
27
+BuildRequires:  perl
28
+%endif
29
+BuildRequires:  ghostscript-devel
30
+%if %{withdjvu}
31
+BuildRequires:  djvulibre-devel
32
+%endif
33
+BuildRequires:  libwmf-devel, jasper-devel, libtool-ltdl-devel
34
+BuildRequires:  libX11-devel, libXext-devel, libXt-devel
35
+BuildRequires:  lcms-devel, libxml2-devel, librsvg2-devel
36
+
37
+%description
38
+ImageMagick is an image display and manipulation tool for the X
39
+Window System. ImageMagick can read and write JPEG, TIFF, PNM, GIF,
40
+and Photo CD image formats. It can resize, rotate, sharpen, color
41
+reduce, or add special effects to an image, and when finished you can
42
+either save the completed work in the original format or a different
43
+one. 
44
+
45
+ImageMagick can be installed with ImageMagick official RPM.
46
+
47
+Command line programs for creating animated or transparent .gifs, 
48
+creating composite images, creating thumbnail images, and more are 
49
+included in ImageMagick-tools package.
50
+
51
+ImageMagick is one of your choices if you need a program to manipulate
52
+and display images. If you want to develop your own applications
53
+which use ImageMagick code or APIs, you need to install
54
+ImageMagick-devel as well.
55
+
56
+
57
+%package devel
58
+Summary: Library links and header files for ImageMagick app development
59
+Group: Development/Libraries
60
+Requires: %{name} = %{version}-%{release}
61
+Requires: libX11-devel, libXext-devel, libXt-devel
62
+Requires: ghostscript-devel
63
+Requires: bzip2-devel
64
+Requires: freetype-devel
65
+Requires: libtiff-devel
66
+Requires: libjpeg-devel
67
+Requires: lcms-devel
68
+Requires: jasper-devel
69
+Requires: pkgconfig
70
+
71
+%description devel
72
+ImageMagick-devel contains the library links and header files you'll
73
+need to develop ImageMagick applications. ImageMagick is an image
74
+manipulation program.
75
+
76
+If you want to create applications that will use ImageMagick code or
77
+APIs, you need to install ImageMagick-devel as well as ImageMagick.
78
+You do not need to install it if you just want to use ImageMagick,
79
+however.
80
+
81
+
82
+%package tools
83
+Summary: Commands for ImageMagick
84
+Group: Applications/Multimedia
85
+Requires: %{name} = %{version}-%{release}
86
+
87
+%description tools
88
+Commands for ImageMagick
89
+This package conflict which ImageMagick officiel package
90
+
91
+
92
+%if %{withdjvu}
93
+%package djvu
94
+Summary: DjVu plugin for ImageMagick
95
+Group: Applications/Multimedia
96
+Requires: %{name} = %{version}-%{release}
97
+
98
+%description djvu
99
+This packages contains a plugin for ImageMagick which makes it possible to
100
+save and load DjvU files from ImageMagick and libMagickCore using applications.
101
+%endif
102
+
103
+
104
+%package doc
105
+Summary: ImageMagick html documentation
106
+Group: Documentation
107
+
108
+%description doc
109
+ImageMagick documentation, this package contains usage (for the
110
+commandline tools) and API (for the libraries) documentation in html format.
111
+Note this documentation can also be found on the ImageMagick website:
112
+http://www.imagemagick.org/
113
+
114
+
115
+%package perl
116
+Summary: ImageMagick perl bindings
117
+Group: System Environment/Libraries
118
+Requires: %{name} = %{version}-%{release}
119
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
120
+
121
+%description perl
122
+Perl bindings to ImageMagick.
123
+
124
+Install ImageMagick-perl if you want to use any perl scripts that use
125
+ImageMagick.
126
+
127
+
128
+%package c++
129
+Summary: ImageMagick Magick++ library (C++ bindings)
130
+Group: System Environment/Libraries
131
+Requires: %{name} = %{version}-%{release}
132
+
133
+%description c++
134
+This package contains the Magick++ library, a C++ binding to the ImageMagick
135
+graphics manipulation library.
136
+
137
+Install ImageMagick-c++ if you want to use any applications that use Magick++.
138
+
139
+
140
+%package c++-devel
141
+Summary: C++ bindings for the ImageMagick library
142
+Group: Development/Libraries
143
+Requires: %{name}-c++ = %{version}-%{release}
144
+Requires: %{name}-devel = %{version}-%{release}
145
+
146
+%description c++-devel
147
+ImageMagick-devel contains the static libraries and header files you'll
148
+need to develop ImageMagick applications using the Magick++ C++ bindings.
149
+ImageMagick is an image manipulation program.
150
+
151
+If you want to create applications that will use Magick++ code
152
+or APIs, you'll need to install ImageMagick-c++-devel, ImageMagick-devel and
153
+ImageMagick.
154
+You don't need to install it if you just want to use ImageMagick, or if you
155
+want to develop/compile applications using the ImageMagick C interface,
156
+however.
157
+
158
+
159
+%prep
160
+%setup -q -n ImageMagick-%{VER}-%{Patchlevel}
161
+%patch1 -p1 -b .multilib
162
+sed -i 's/libltdl.la/libltdl.so/g' configure
163
+iconv -f ISO-8859-1 -t UTF-8 README.txt > README.txt.tmp
164
+touch -r README.txt README.txt.tmp
165
+mv README.txt.tmp README.txt
166
+# for %doc
167
+mkdir Magick++/examples
168
+cp -p Magick++/demo/*.cpp Magick++/demo/*.miff Magick++/examples
169
+
170
+
171
+%build
172
+%configure --enable-shared \
173
+           --disable-static \
174
+           --with-modules \
175
+           --with-perl \
176
+           --with-x \
177
+           --with-threads \
178
+           --with-magick_plus_plus \
179
+           --with-gslib \
180
+           --with-wmf \
181
+           --with-lcms \
182
+           --with-rsvg \
183
+           --with-xml \
184
+           --with-perl-options="INSTALLDIRS=vendor %{?perl_prefix} CC='%__cc -L$PWD/magick/.libs' LDDLFLAGS='-shared -L$PWD/magick/.libs'" \
185
+           --without-dps \
186
+           --without-included-ltdl --with-ltdl-include=%{_includedir} \
187
+           --with-ltdl-lib=%{_libdir}
188
+# Disable rpath
189
+sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
190
+sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
191
+# Do *NOT* use %%{?_smp_mflags}, this causes PerlMagick to be silently misbuild
192
+make
193
+
194
+
195
+%install
196
+rm -rf $RPM_BUILD_ROOT
197
+
198
+make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
199
+cp -a www/source $RPM_BUILD_ROOT%{_datadir}/doc/ImageMagick-%{VER}
200
+rm $RPM_BUILD_ROOT%{_libdir}/*.la
201
[+] Deleted ImageMagick2.spec ^
Deleted ImageMagick-6.5.5-6.tar.bz2 ^