[10150] | 1 | %define pkg_name GraphicsMagick |
---|
[11806] | 2 | %define pkg_version 1.3.30 |
---|
[11702] | 3 | %define pkg_release 1%{?_dist_release} |
---|
[10150] | 4 | |
---|
| 5 | %define quant 16 |
---|
| 6 | %define perlm 1 |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | Name: %{pkg_name} |
---|
| 10 | Summary: An X application for displaying and manipulating images |
---|
| 11 | Summary(ja): 画像ファイルの表示/処理を行うXのアプリケーション |
---|
| 12 | Version: %{pkg_version} |
---|
| 13 | Release: %{pkg_release} |
---|
| 14 | |
---|
| 15 | License: MIT License |
---|
| 16 | Group: Applications/Graphics |
---|
| 17 | URL: http://www.graphicsmagick.org/ |
---|
[11702] | 18 | # Source: ftp://ftp.GraphicsMagick.org/pub/%{name}/%{name}-%{version}.tar.gz |
---|
| 19 | Source: %{name}-%{version}.tar.xz |
---|
[10150] | 20 | |
---|
| 21 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
| 22 | BuildRequires: bzip2-devel |
---|
| 23 | BuildRequires: freetype2-devel >= 2.0.1 |
---|
| 24 | BuildRequires: libjpeg-turbo-devel |
---|
| 25 | BuildRequires: libpng-devel >= 1.2.5 |
---|
| 26 | BuildRequires: libtiff-devel |
---|
| 27 | BuildRequires: lcms-devel |
---|
| 28 | BuildRequires: xz-devel |
---|
| 29 | BuildRequires: libX11-devel |
---|
| 30 | BuildRequires: libxml2-devel |
---|
| 31 | BuildRequires: zlib-devel |
---|
| 32 | BuildRequires: libtool-ltdl-devel |
---|
| 33 | |
---|
| 34 | Requires: bzip2 |
---|
| 35 | Requires: freetype2 >= 2.0.1 |
---|
| 36 | Requires: libjpeg-turbo |
---|
| 37 | Requires: libpng |
---|
| 38 | Requires: libtiff |
---|
| 39 | Requires: lcms |
---|
| 40 | Requires: libxml2 |
---|
| 41 | Requires: xz |
---|
| 42 | Requires: zlib |
---|
| 43 | |
---|
| 44 | Vendor: Project Vine |
---|
| 45 | Distribution: Vine Linux |
---|
| 46 | Packager: ara_t |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | %description |
---|
| 50 | GraphicsMagick(TM) provides a powerful image manipulation and |
---|
| 51 | translation utility. It is capable of displaying still images and |
---|
| 52 | animations using the X Window system, provides a simple interface for |
---|
| 53 | interactively editing images, and is capable of importing selected |
---|
| 54 | windows or the entire desktop. GraphicsMagick can read and write over |
---|
| 55 | 88 image formats, including JPEG, TIFF, WMF, SVG, PNG, PNM, GIF, and |
---|
| 56 | Photo CD. It can resize, rotate, sharpen, color reduce, or add special |
---|
| 57 | effects to the image and save the result to any supported format. |
---|
| 58 | GraphicsMagick may be used to create animated or transparent .gifs, |
---|
| 59 | create composite images, create thumbnail images, and much, much, |
---|
| 60 | more. |
---|
| 61 | |
---|
| 62 | GraphicsMagick is one of your choices if you need a program to manipulate |
---|
| 63 | and display images. If you want to develop your own applications |
---|
| 64 | which use GraphicsMagick code or APIs, you need to install |
---|
| 65 | GraphicsMagick-devel as well. |
---|
| 66 | |
---|
| 67 | %description -l ja |
---|
| 68 | GraphicsMagick(TM)はXウィンドウシステム用の画像表示/処理ツールです。 |
---|
| 69 | GraphicsMagickが読み書き出来る画像形式にはJPEG, TIFF, PNM, GIF, Photo CD |
---|
| 70 | イメージ型式等があります。また画像のリサイズ、回転、シャープ化、減色が |
---|
| 71 | 出来ますし、画像に対してイフェクトをかけることも出来ます、変更した画像は |
---|
| 72 | オリジナルと同じ画像形式ででも、異なる画像形式にでも保存することが出来ます。 |
---|
| 73 | またGraphicsMagickにはアニメーションGIFや透過GIFの作成、画像の合成、 |
---|
| 74 | サムネール画像の作成等々を行うコマンドラインプログラムも含まれています。 |
---|
| 75 | |
---|
| 76 | 画像ファイルの表示/処理を行う為の幾多のプログラムが必要ならば、 |
---|
| 77 | GraphicsMagickも選択肢の一つとなるでしょう。 |
---|
| 78 | また、GraphicsMagickのコードやAPIを使ったアプリケーションを開発したい場合は、 |
---|
| 79 | GraphicsMagick-develパッケージも同時にインストールして下さい。 |
---|
| 80 | |
---|
| 81 | %package devel |
---|
| 82 | Summary: Static libraries and header files for GraphicsMagick app development. |
---|
| 83 | Summary(ja): GraphicsMagickアプリケーション開発用ライブラリ/ヘッダファイル |
---|
| 84 | Group: Development/Libraries |
---|
| 85 | Requires: %{name} = %{version}-%{release} |
---|
| 86 | |
---|
| 87 | %description devel |
---|
| 88 | GraphicsMagick-devel contains the static libraries and header files you'll |
---|
| 89 | need to develop GraphicsMagick applications. GraphicsMagick is an image |
---|
| 90 | manipulation program. |
---|
| 91 | |
---|
| 92 | If you want to create applications that will use GraphicsMagick code or |
---|
| 93 | APIs, you need to install GraphicsMagick-devel as well as GraphicsMagick. |
---|
| 94 | You do not need to install it if you just want to use GraphicsMagick, |
---|
| 95 | however. |
---|
| 96 | #' |
---|
| 97 | |
---|
| 98 | %description devel -l ja |
---|
| 99 | GraphicsMagick-develにはスタティックライブラリとヘッダファイルが収められており、 |
---|
| 100 | これらはGraphicsMagickアプリケーションの開発の際に必要となります。 |
---|
| 101 | GraphicsMagickは画像処理プログラムです。 |
---|
| 102 | |
---|
| 103 | GraphicsMagickのコードやAPIを使ったアプリケーションを作りたい場合には、 |
---|
| 104 | このGraphicsMagick-develパッケージをGraphicsMagickパッケージと共にインストール |
---|
| 105 | する必要があります。単にGraphicsMagickを使いたいだけならば、 |
---|
| 106 | develパッケージはインストールする必要はありません。 |
---|
| 107 | |
---|
| 108 | |
---|
| 109 | %package c++ |
---|
| 110 | Summary: GraphicsMagick Magick++ library (C++ bindings) |
---|
| 111 | Summary(ja): GraphicsMagick Magick++ライブラリ (C++バインディング) |
---|
| 112 | Group: System Environment/Libraries |
---|
| 113 | Requires: %{name} = %{version}-%{release} |
---|
| 114 | |
---|
| 115 | %description c++ |
---|
| 116 | This package contains the Magick++ library, a C++ binding to the GraphicsMagick |
---|
| 117 | graphics manipulation library. |
---|
| 118 | |
---|
| 119 | Install GraphicsMagick-c++ if you want to use any applications that use |
---|
| 120 | Magick++. |
---|
| 121 | |
---|
| 122 | %description c++ |
---|
| 123 | このパッケージにはMagick++ライブラリが収められています。 |
---|
| 124 | Magick++とはImageMagickライブラリのC++バインディングです。 |
---|
| 125 | |
---|
| 126 | Magick++を使ったアプリケーションを利用する際にはImageMagick-c++ |
---|
| 127 | パッケージをインストールして下さい。 |
---|
| 128 | |
---|
| 129 | |
---|
| 130 | %package c++-devel |
---|
| 131 | Summary: C++ bindings for the GraphicsMagick library |
---|
| 132 | Summary(ja): GraphicsMagickライブラリのC++バインディング |
---|
| 133 | Group: Development/Libraries |
---|
| 134 | Requires: %{name} = %{version} |
---|
| 135 | Requires: %{name}-c++ = %{version} |
---|
| 136 | Requires: %{name}-devel = %{version} |
---|
| 137 | Requires: bzip2-devel, freetype-devel |
---|
| 138 | Requires: libjpeg-turbo-devel libpng-devel libtiff-devel |
---|
| 139 | Requires: zlib-devel libxml2-devel |
---|
| 140 | |
---|
| 141 | %description c++-devel |
---|
| 142 | GraphicsMagick-c++-devel contains the static libraries and header files you'll |
---|
| 143 | need to develop GraphicsMagick applications using the Magick++ C++ bindings. |
---|
| 144 | GraphicsMagick is an image manipulation program. |
---|
| 145 | |
---|
| 146 | If you want to create applications that will use Magick++ code or APIs, |
---|
| 147 | you'll need to install GraphicsMagick-c++-devel, GraphicsMagick-devel and |
---|
| 148 | GraphicsMagick. You don't need to install it if you just want to use |
---|
| 149 | GraphicsMagick, or if you want to develop/compile applications using the |
---|
| 150 | GraphicsMagick C interface, however. |
---|
| 151 | #' |
---|
| 152 | |
---|
| 153 | %description c++-devel -l ja |
---|
| 154 | GraphicsMagick-c++-devel にはMagick++ C++バインディングを使った |
---|
| 155 | GraphicsMagickアプリケーション開発に必要なスタティックライブラリと |
---|
| 156 | ヘッダファイルが収められています。 |
---|
| 157 | GraphicsMagickとは画像処理プログラムです。 |
---|
| 158 | |
---|
| 159 | Magick++コードやAPIを使ったアプリケーションを開発する場合は、 |
---|
| 160 | GraphicsMagick-c++-devel、GraphicsMagick-devel、GraphicsMagickパッケージを |
---|
| 161 | インストールする必要があります。 |
---|
| 162 | GraphicsMagickプログラムを使うだけの場合、あるいはGraphicsMagick Cインタフェース |
---|
| 163 | を使ってアプリケーション開発を行う場合は,GraphicsMagick-c++-devel パッケージは |
---|
| 164 | インストールする必要はありません。 |
---|
| 165 | |
---|
| 166 | |
---|
| 167 | %if %{perlm} |
---|
| 168 | %package -n perl-GraphicsMagick |
---|
| 169 | Summary: GraphicsMagick perl bindings |
---|
| 170 | Summary(ja): GraphicsMagickのPerlバインディング |
---|
| 171 | Group: System Environment/Libraries |
---|
| 172 | BuildRequires: perl >= 5.6.0 |
---|
| 173 | Requires: %{name} = %{version}-%{release} |
---|
| 174 | Requires: perl >= 5.6.0 |
---|
| 175 | |
---|
| 176 | %description -n perl-GraphicsMagick |
---|
| 177 | Perl bindings to GraphicsMagick. |
---|
| 178 | |
---|
| 179 | Install GraphicsMagick-perl if you want to use any perl scripts that use |
---|
| 180 | GraphicsMagick. |
---|
| 181 | |
---|
| 182 | %description -n perl-GraphicsMagick -l ja |
---|
| 183 | このパッケージはGraphicsMagickのPerlバインディングです。 |
---|
| 184 | |
---|
| 185 | GraphicsMagickを利用するperlスクリプトを使いたい場合は |
---|
| 186 | perl-GraphicsMagickパッケージをインストールして下さい。 |
---|
| 187 | %endif |
---|
| 188 | |
---|
| 189 | |
---|
| 190 | %prep |
---|
| 191 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 192 | %setup -q |
---|
| 193 | |
---|
| 194 | %build |
---|
| 195 | %{configure} \ |
---|
| 196 | --enable-silent-rules \ |
---|
| 197 | --enable-shared \ |
---|
| 198 | --disable-static \ |
---|
| 199 | --with-modules \ |
---|
| 200 | --with-quantum-depth=%{quant} \ |
---|
| 201 | --without-frozenpaths \ |
---|
| 202 | --with-x \ |
---|
| 203 | --with-magick-plus-plus \ |
---|
| 204 | --without-dps \ |
---|
| 205 | --without-fpx \ |
---|
| 206 | --without-gslib \ |
---|
| 207 | --without-jbig \ |
---|
| 208 | --without-jp2 \ |
---|
| 209 | --without-trio \ |
---|
| 210 | --without-webp \ |
---|
| 211 | --without-wmf \ |
---|
| 212 | --docdir=%{_datadir}/doc/%{name}-%{version} \ |
---|
| 213 | %if %{perlm} |
---|
| 214 | --with-perl \ |
---|
| 215 | --with-perl-options="INSTALLDIRS=vendor %{?perl_prefix} CC='%__cc -L$PWD/magick/.libs' LDDLFLAGS='-shared -L$PWD/magick/.libs'" |
---|
| 216 | %else |
---|
| 217 | --without-perl \ |
---|
| 218 | %endif |
---|
| 219 | |
---|
| 220 | %{__make} %{?_smp_mflags} |
---|
| 221 | %if %{perlm} |
---|
| 222 | %{__make} all-perl |
---|
| 223 | %endif |
---|
| 224 | |
---|
| 225 | %install |
---|
| 226 | %{make_install} |
---|
| 227 | |
---|
| 228 | %if %{perlm} |
---|
| 229 | %{__make} install-exec-perl DESTDIR=${RPM_BUILD_ROOT} |
---|
| 230 | # Remove unpackaged files. |
---|
| 231 | %{__rm} -f `find ${RPM_BUILD_ROOT}%{_libdir}/perl*/ -name perllocal.pod -type f` |
---|
| 232 | %{__rm} -f `find ${RPM_BUILD_ROOT}%{_libdir}/perl*/ -name .packlist -type f` |
---|
| 233 | %endif |
---|
| 234 | |
---|
| 235 | %clean |
---|
| 236 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 237 | |
---|
| 238 | %post -p %{_syssbindir}/ldconfig |
---|
| 239 | %postun -p %{_syssbindir}/ldconfig |
---|
| 240 | |
---|
| 241 | %post c++ -p %{_syssbindir}/ldconfig |
---|
| 242 | %postun c++ -p %{_syssbindir}/ldconfig |
---|
| 243 | |
---|
| 244 | |
---|
| 245 | %files |
---|
| 246 | %defattr(-,root,root) |
---|
| 247 | %{_bindir}/gm |
---|
| 248 | %{_libdir}/lib%{name}.so.* |
---|
| 249 | %{_libdir}/lib%{name}Wand.so.* |
---|
[11702] | 250 | %{_libdir}/%{name}-%{version}/ |
---|
[10150] | 251 | %{_datadir}/%{name}-%{version}/config/*.mgk |
---|
| 252 | %{_docdir}/%{name}-%{version}/ |
---|
| 253 | %{_mandir}/man1/gm.1.gz |
---|
| 254 | %{_mandir}/man4/*gz |
---|
| 255 | %{_mandir}/man5/*gz |
---|
| 256 | |
---|
| 257 | %files devel |
---|
| 258 | %defattr(-,root,root) |
---|
| 259 | %{_bindir}/%{name}-config |
---|
| 260 | %{_bindir}/%{name}Wand-config |
---|
| 261 | %{_includedir}/%{name}/wand/ |
---|
| 262 | %{_includedir}/%{name}/magick/ |
---|
| 263 | %{_libdir}/lib%{name}.*a |
---|
| 264 | %{_libdir}/lib%{name}.so |
---|
| 265 | %{_libdir}/lib%{name}Wand.*a |
---|
| 266 | %{_libdir}/lib%{name}Wand.so |
---|
| 267 | %{_libdir}/pkgconfig/%{name}.pc |
---|
| 268 | %{_libdir}/pkgconfig/%{name}Wand.pc |
---|
| 269 | %{_mandir}/man1/%{name}-config.1.gz |
---|
| 270 | %{_mandir}/man1/%{name}Wand-config.1.gz |
---|
| 271 | |
---|
| 272 | %files c++ |
---|
| 273 | %defattr(-,root,root) |
---|
| 274 | %{_libdir}/lib%{name}++.so.* |
---|
| 275 | |
---|
| 276 | %files c++-devel |
---|
| 277 | %defattr(-,root,root) |
---|
| 278 | %{_bindir}/%{name}++-config |
---|
| 279 | %{_includedir}/%{name}/Magick++.h |
---|
| 280 | %{_includedir}/%{name}/Magick++/ |
---|
| 281 | %{_libdir}/lib%{name}++.*a |
---|
| 282 | %{_libdir}/lib%{name}++.so |
---|
| 283 | %{_libdir}/pkgconfig/%{name}++.pc |
---|
| 284 | %{_mandir}/man1/%{name}++-config.1.gz |
---|
| 285 | |
---|
| 286 | %if %{perlm} |
---|
| 287 | %files -n perl-GraphicsMagick |
---|
| 288 | %defattr(-,root,root) |
---|
| 289 | %{_libdir}/perl*/vendor_perl/ |
---|
| 290 | %{_mandir}/man3/*gz |
---|
| 291 | %endif |
---|
| 292 | |
---|
| 293 | |
---|
| 294 | %changelog |
---|
[11806] | 295 | * Sun Oct 07 2018 Toshiaki Ara <ara_t@384.jp> 1.3.30-1 |
---|
| 296 | - update to 1.3.30 |
---|
| 297 | |
---|
[11702] | 298 | * Mon Jun 04 2018 Toshiaki Ara <ara_t@384.jp> 1.3.29-1 |
---|
| 299 | - update to 1.3.29 |
---|
| 300 | |
---|
[10408] | 301 | * Tue Jun 28 2016 Toshiaki Ara <ara_t@384.jp> 1.3.24-2 |
---|
| 302 | - rebuild with gcc-5.4.0 |
---|
| 303 | |
---|
| 304 | * Sun Jun 19 2016 Toshiaki Ara <ara_t@384.jp> 1.3.24-1 |
---|
| 305 | - update to 1.3.24 |
---|
| 306 | |
---|
[10150] | 307 | * Mon Apr 11 2016 Toshiaki Ara <ara_t@384.jp> 1.3.23-2 |
---|
| 308 | - correct SPEC file |
---|
| 309 | |
---|
| 310 | * Wed Mar 16 2016 Toshiaki Ara <ara_t@384.jp> 1.3.23-1 |
---|
| 311 | - new package for Vine Linux |
---|
| 312 | |
---|
| 313 | * Fri Apr 16 2010 Bob Friesenhahn <bfriesen@graphicsmagick.org> 1.3.13 |
---|
| 314 | - Avoided duplicate copies of documentation files. Put documentation |
---|
| 315 | into a versioned directory as used by Red Hat and CentOS. Include |
---|
| 316 | archive libraries in developer package. |
---|
| 317 | |
---|
| 318 | * Tue Apr 13 2010 Bob Friesenhahn <bfriesen@graphicsmagick.org> 1.3.13 |
---|
| 319 | - Fixed PerlMagick build and install which was broken by Makefile |
---|
| 320 | changes. |
---|
| 321 | |
---|
| 322 | * Wed Jan 23 2009 Bob Friesenhahn <bfriesen@graphicsmagick.org> 1.3 |
---|
| 323 | - The module .la files need to be installed as part of the base |
---|
| 324 | install or else the modules will fail to load. |
---|
| 325 | |
---|
| 326 | * Wed Jan 21 2009 Bob Friesenhahn <bfriesen@graphicsmagick.org> 1.3 |
---|
| 327 | - --enable-lzw option is not longer needed |
---|
| 328 | |
---|
| 329 | * Tue Nov 11 2008 Giacomo Tenaglia 1.3 <gtenagli at sf . net>. |
---|
| 330 | - The *-config scripts were listed twice. |
---|
| 331 | - Add definition for %{_datadir}/doc directory |
---|
| 332 | |
---|
| 333 | * Wed Jun 02 2004 Bob Friesenhahn <bfriesen@graphicsmagick.org> 1.2 |
---|
| 334 | - Install *-config scripts with mode 755 rather than default 644. |
---|
| 335 | |
---|
| 336 | * Sat Feb 21 2004 Bob Friesenhahn <bfriesen@graphicsmagick.org> 1.1-1 |
---|
| 337 | - Added some comments. |
---|
| 338 | - Eliminated DATE variable. |
---|
| 339 | - Support creating RPMs of snapshots packages. |
---|
| 340 | - Don't remove /usr/include/magick or %{_datadir}/%{name} since they |
---|
| 341 | are not created anymore. |
---|
| 342 | - Fixed location of .mgk files. |
---|
| 343 | |
---|
| 344 | * Mon Jul 28 2003 Bob Friesenhahn <bfriesen@graphicsmagick.org> 1.1-1 |
---|
| 345 | - Changed default quantum depth to 8 bits. |
---|
| 346 | |
---|
| 347 | * Mon Jun 28 2003 Troy Edwards <vallimar@sexorcisto.net> 1.1-20030628 |
---|
| 348 | - Updated to CVS build, added the GraphicsMagickWand files to the spec. |
---|
| 349 | - Only try to remove the unneeded perl package files if we are using |
---|
| 350 | PerlMagick. |
---|
| 351 | |
---|
| 352 | * Mon Jun 09 2003 Troy Edwards <vallimar@sexorcisto.net> 1.0.2-3 |
---|
| 353 | - removed libungif as a dependancy |
---|
| 354 | - changed with/without-magick_plus_plus -> with/without-magick-plus-plus |
---|
| 355 | - Use --with-perl-options instead of patching Makefile.in |
---|
| 356 | - Only set a perl prefix if we aren't using perl >= 5.8.0 |
---|
| 357 | |
---|
| 358 | * Sat Jun 07 2003 Troy Edwards <vallimar@sexorcisto.net> 1.0.2-2 |
---|
| 359 | - patch to pass DESTDIR to install-exec-perl since some users |
---|
| 360 | reported problems |
---|
| 361 | |
---|
| 362 | * Sat Jun 07 2003 Troy Edwards <vallimar@sexorcisto.net> 1.0.2-1 |
---|
| 363 | - updated to 1.0.2 |
---|
| 364 | |
---|
| 365 | * Tue May 05 2003 Troy Edwards <vallimar@sexorcisto.net> 1.0-1 |
---|
| 366 | - updated to 1.0 Final |
---|
| 367 | |
---|
| 368 | * Fri Apr 25 2003 Troy Edwards <vallimar@sexorcisto.net> 1.0-Beta1-1 |
---|
| 369 | - updated to 1.0-Beta1 |
---|
| 370 | |
---|
| 371 | * Mon Oct 22 2002 Troy Edwards <vallimar@sexorcisto.net> |
---|
| 372 | - updated to 1.0.0pre |
---|
| 373 | |
---|