[11329] | 1 | %define _unpackaged_files_terminate_build 1 |
---|
| 2 | |
---|
[521] | 3 | Name: graphviz |
---|
[2015] | 4 | Summary: Graph Visualization Tools |
---|
[8760] | 5 | Summary(ja): グラフ可視化ツール |
---|
[11329] | 6 | Version: 2.40.1 |
---|
| 7 | Release: 1%{?_dist_release} |
---|
[521] | 8 | Group: Applications/Graphics |
---|
[9436] | 9 | License: EPL |
---|
[521] | 10 | URL: http://www.graphviz.org/ |
---|
[2015] | 11 | |
---|
[9436] | 12 | Source0: http://www.graphviz.org/pub/graphviz/ARCHIVE/%{name}-%{version}.tar.gz |
---|
[11329] | 13 | Patch0: graphviz-2.40.1-visio.patch |
---|
[2015] | 14 | |
---|
[521] | 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[2015] | 16 | BuildRequires: bison |
---|
| 17 | BuildRequires: cairo-devel |
---|
| 18 | BuildRequires: expat-devel |
---|
| 19 | BuildRequires: flex |
---|
| 20 | BuildRequires: fontconfig-devel |
---|
| 21 | BuildRequires: freetype2-devel |
---|
| 22 | BuildRequires: gd-devel |
---|
[9436] | 23 | BuildRequires: gmp-devel |
---|
[2015] | 24 | BuildRequires: gtk2-devel |
---|
| 25 | BuildRequires: guile-devel |
---|
| 26 | BuildRequires: libjpeg-turbo-devel |
---|
| 27 | BuildRequires: libpng-devel |
---|
| 28 | BuildRequires: libSM-devel |
---|
[521] | 29 | BuildRequires: libtool-ltdl-devel >= 2.2.6a |
---|
[2015] | 30 | BuildRequires: libXaw-devel |
---|
| 31 | BuildRequires: libXext-devel |
---|
[7105] | 32 | BuildRequires: librsvg2-devel |
---|
[9436] | 33 | BuildRequires: lua-devel |
---|
[2015] | 34 | BuildRequires: m4 |
---|
| 35 | BuildRequires: perl |
---|
| 36 | BuildRequires: python-devel |
---|
| 37 | BuildRequires: ruby-devel |
---|
| 38 | BuildRequires: swig |
---|
[9436] | 39 | BuildRequires: tcl-devel >= 8.4 |
---|
| 40 | BuildRequires: tk-devel >= 8.4 |
---|
[2015] | 41 | BuildRequires: zlib-devel |
---|
| 42 | Requires: urw-fonts |
---|
[521] | 43 | |
---|
[2015] | 44 | # only for this release |
---|
[9436] | 45 | # BuildConflicts: graphviz-devel |
---|
[2015] | 46 | |
---|
[7304] | 47 | Vendor: Project Vine |
---|
| 48 | Distribution: Vine Linux |
---|
[8760] | 49 | Packager: daisuke |
---|
[7304] | 50 | |
---|
[521] | 51 | %description |
---|
| 52 | A collection of tools and tcl packages for the manipulation and layout |
---|
| 53 | of graphs (as in nodes and edges, not as in barcharts). |
---|
| 54 | |
---|
| 55 | %package devel |
---|
[9436] | 56 | Summary: Development tools for version %{version} of %{name} |
---|
[521] | 57 | Group: Development/Libraries |
---|
| 58 | Requires: %{name} = %{version} |
---|
| 59 | |
---|
| 60 | %description devel |
---|
| 61 | The %{name}-devel package contains the header files |
---|
| 62 | and man3 pages necessary for developing programs |
---|
| 63 | using version %{version} of the %{name} libraries. |
---|
| 64 | |
---|
[2015] | 65 | %package doc |
---|
| 66 | Summary: PDF and HTML documents for graphviz |
---|
| 67 | Group: Applications/Documentation |
---|
| 68 | |
---|
| 69 | %description doc |
---|
| 70 | Provides some additional PDF and HTML documentation for graphviz. |
---|
| 71 | |
---|
| 72 | %package guile |
---|
| 73 | Group: Applications/Graphics |
---|
| 74 | Summary: Guile extension for graphviz |
---|
| 75 | Requires: %{name} = %{version}-%{release}, guile |
---|
| 76 | |
---|
| 77 | %description guile |
---|
| 78 | Guile extension for graphviz. |
---|
| 79 | |
---|
[9436] | 80 | %package lua |
---|
| 81 | Group: Applications/Graphics |
---|
| 82 | Summary: Lua extension for graphviz |
---|
| 83 | Requires: %{name} = %{version}-%{release}, lua |
---|
| 84 | |
---|
| 85 | %description lua |
---|
| 86 | Lua extension for graphviz. |
---|
| 87 | |
---|
[2015] | 88 | %package perl |
---|
| 89 | Group: Applications/Graphics |
---|
| 90 | Summary: Perl extension for graphviz |
---|
| 91 | Requires: %{name} = %{version}-%{release} |
---|
| 92 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 93 | |
---|
| 94 | %description perl |
---|
| 95 | Perl extension for graphviz. |
---|
| 96 | |
---|
| 97 | %package python |
---|
| 98 | Group: Applications/Graphics |
---|
| 99 | Summary: Python extension for graphviz |
---|
| 100 | Requires: %{name} = %{version}-%{release} |
---|
| 101 | Requires: python |
---|
| 102 | |
---|
| 103 | %description python |
---|
| 104 | Python extension for graphviz. |
---|
| 105 | |
---|
| 106 | %package ruby |
---|
[9436] | 107 | Group: Applications/Graphics |
---|
[2015] | 108 | Summary: Ruby extension for graphviz |
---|
| 109 | Requires: %{name} = %{version}-%{release} |
---|
| 110 | Requires: ruby |
---|
| 111 | |
---|
| 112 | %description ruby |
---|
| 113 | Ruby extension for graphviz. |
---|
| 114 | |
---|
| 115 | %package tcl |
---|
| 116 | Group: Applications/Graphics |
---|
| 117 | Summary: Tcl extension & tools for graphviz |
---|
| 118 | Requires: tcl >= 8.4, tk >= 8.4 |
---|
| 119 | Requires: %{name} = %{version} |
---|
| 120 | |
---|
| 121 | %description tcl |
---|
| 122 | Various tcl packages (extensions) for the graphviz tools. |
---|
| 123 | |
---|
| 124 | |
---|
[521] | 125 | %prep |
---|
| 126 | %setup -q |
---|
[11329] | 127 | %patch0 -p1 -b .visio |
---|
[521] | 128 | |
---|
[9436] | 129 | %build |
---|
| 130 | autoreconf -if |
---|
| 131 | |
---|
[2015] | 132 | # using archdir instead of sitearchdir for Vine |
---|
| 133 | sed -i -e "s|sitearchdir|archdir|g" config/config_ruby.rb |
---|
[9436] | 134 | # Rewrite config_ruby.rb to work with Ruby 2.1 |
---|
| 135 | sed -i 's|expand(|expand(RbConfig::|' config/config_ruby.rb |
---|
| 136 | sed -i 's|sitearchdir|vendorarchdir|' config/config_ruby.rb |
---|
[2015] | 137 | |
---|
[9436] | 138 | # get the path to search for ruby/config.h to CPPFLAGS, so that configure can find it |
---|
[7120] | 139 | export CPPFLAGS=-I`ruby -e "puts File.join(RbConfig::CONFIG['includedir'], RbConfig::CONFIG['sitearch'])" || echo /dev/null` |
---|
[2015] | 140 | # XXX ix86 only used to have -ffast-math, let's use everywhere |
---|
| 141 | %{expand: %%define optflags %{optflags} -ffast-math} |
---|
[521] | 142 | |
---|
[2015] | 143 | %configure \ |
---|
| 144 | --with-x \ |
---|
| 145 | --disable-static \ |
---|
| 146 | --with-mylibgd \ |
---|
| 147 | --with-ipsepcola \ |
---|
| 148 | --with-pangocairo \ |
---|
| 149 | --with-gdk-pixbuf \ |
---|
| 150 | --without-mylibgd \ |
---|
| 151 | --without-ming \ |
---|
[9436] | 152 | --without-qt \ |
---|
[2015] | 153 | --disable-sharp \ |
---|
| 154 | --enable-guile \ |
---|
| 155 | --disable-java \ |
---|
[9436] | 156 | --enable-lua \ |
---|
[2015] | 157 | --disable-ocaml \ |
---|
| 158 | --enable-perl \ |
---|
| 159 | --disable-php \ |
---|
| 160 | --enable-python \ |
---|
| 161 | --disable-r \ |
---|
| 162 | --enable-ruby \ |
---|
[9436] | 163 | --enable-swig \ |
---|
[2015] | 164 | --enable-tcl |
---|
[521] | 165 | |
---|
[2015] | 166 | make %{?_smp_mflags} |
---|
| 167 | |
---|
[521] | 168 | %install |
---|
[2015] | 169 | rm -rf $RPM_BUILD_ROOT __doc |
---|
| 170 | make DESTDIR=$RPM_BUILD_ROOT \ |
---|
| 171 | docdir=$RPM_BUILD_ROOT%{_docdir}/%{name} \ |
---|
| 172 | pkgconfigdir=%{_libdir}/pkgconfig \ |
---|
| 173 | install |
---|
[521] | 174 | |
---|
| 175 | find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';' |
---|
| 176 | chmod -x $RPM_BUILD_ROOT%{_datadir}/%{name}/lefty/* |
---|
| 177 | cp -a $RPM_BUILD_ROOT%{_datadir}/%{name}/doc __doc |
---|
| 178 | rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/doc |
---|
| 179 | |
---|
[2015] | 180 | %clean |
---|
| 181 | rm -rf $RPM_BUILD_ROOT |
---|
| 182 | |
---|
[521] | 183 | # run "dot -c" to generate plugin config in %{_libdir}/%{name}/config |
---|
| 184 | %post |
---|
[2015] | 185 | /sbin/ldconfig |
---|
[521] | 186 | %{_bindir}/dot -c |
---|
| 187 | |
---|
[2015] | 188 | # if there is no dot after everything else is done, then remove config |
---|
| 189 | %postun |
---|
| 190 | if [ $1 -eq 0 ]; then |
---|
| 191 | rm -f %{_libdir}/graphviz/config || : |
---|
| 192 | fi |
---|
| 193 | /sbin/ldconfig |
---|
[521] | 194 | |
---|
| 195 | |
---|
| 196 | %files |
---|
| 197 | %defattr(-,root,root) |
---|
[2015] | 198 | %doc AUTHORS COPYING ChangeLog NEWS README |
---|
[521] | 199 | %{_bindir}/* |
---|
| 200 | %dir %{_datadir}/%{name} |
---|
[7583] | 201 | %{_datadir}/%{name}/gvpr |
---|
[521] | 202 | %{_datadir}/%{name}/lefty |
---|
| 203 | %{_mandir}/man1/* |
---|
| 204 | %{_mandir}/man7/* |
---|
| 205 | %dir %{_libdir}/%{name} |
---|
| 206 | %{_libdir}/*.so.* |
---|
| 207 | %{_libdir}/%{name}/*.so.* |
---|
| 208 | %exclude %{_libdir}/graphviz/*/* |
---|
| 209 | |
---|
| 210 | %files devel |
---|
| 211 | %defattr(-,root,root) |
---|
| 212 | %{_includedir}/%{name} |
---|
| 213 | %{_libdir}/*.so |
---|
| 214 | %{_libdir}/%{name}/*.so |
---|
| 215 | %{_libdir}/pkgconfig/*.pc |
---|
| 216 | %{_datadir}/%{name}/graphs |
---|
[2015] | 217 | %{_mandir}/man3/*.3.gz |
---|
[521] | 218 | |
---|
[2015] | 219 | %files doc |
---|
| 220 | %defattr(-,root,root,-) |
---|
| 221 | %doc __doc/* |
---|
| 222 | |
---|
| 223 | %files guile |
---|
| 224 | %defattr(-,root,root,-) |
---|
| 225 | %{_libdir}/graphviz/guile/ |
---|
| 226 | %{_mandir}/man3/gv.3guile* |
---|
| 227 | |
---|
[9436] | 228 | %files lua |
---|
| 229 | %defattr(-,root,root,-) |
---|
| 230 | %{_libdir}/graphviz/lua/ |
---|
| 231 | %{_libdir}/lua*/* |
---|
| 232 | %{_mandir}/man3/gv.3lua* |
---|
| 233 | |
---|
[2015] | 234 | %files perl |
---|
| 235 | %defattr(-,root,root,-) |
---|
| 236 | %{_libdir}/graphviz/perl/ |
---|
| 237 | %{perl_vendorarch}/* |
---|
| 238 | %{_mandir}/man3/gv.3perl* |
---|
| 239 | |
---|
| 240 | %files python |
---|
| 241 | %defattr(-,root,root,-) |
---|
| 242 | %{_libdir}/graphviz/python/ |
---|
| 243 | %{_libdir}/python*/* |
---|
| 244 | %{_mandir}/man3/gv.3python* |
---|
| 245 | |
---|
| 246 | %files ruby |
---|
| 247 | %defattr(-,root,root,-) |
---|
| 248 | %{_libdir}/graphviz/ruby/ |
---|
[7120] | 249 | %{_libdir}/*ruby*/* |
---|
| 250 | %{_mandir}/man3/gv.3ruby* |
---|
[2015] | 251 | |
---|
| 252 | %files tcl |
---|
| 253 | %defattr(-,root,root) |
---|
| 254 | %{_libdir}/%{name}/tcl/* |
---|
| 255 | %{_libdir}/tcl*/* |
---|
| 256 | %{_datadir}/%{name}/demo |
---|
| 257 | # hack to include gv.3tcl only if available |
---|
| 258 | # always includes tcldot.3tcl, gdtclft.3tcl |
---|
| 259 | %{_mandir}/man3/*.3tcl* |
---|
| 260 | |
---|
| 261 | |
---|
[521] | 262 | %changelog |
---|
[11329] | 263 | * Sat Jan 06 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.40.1-1 |
---|
| 264 | - updated to 2.40.1. |
---|
| 265 | - dropped all patches. |
---|
| 266 | - imported Patch0 from rawhide. |
---|
| 267 | |
---|
[10413] | 268 | * Wed Jun 29 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.38.0-4 |
---|
| 269 | - rebuild with gcc-5.4.0 |
---|
| 270 | |
---|
[9748] | 271 | * Sat Sep 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.38.0-3 |
---|
| 272 | - rebuild with ruby-2.2.3 |
---|
| 273 | |
---|
[9436] | 274 | * Sun Mar 15 2015 Ryoichi INAGAKI <ryo1@toki.waaseda.jp> 2.38.0-2 |
---|
| 275 | - added Patch0-5 from Fedora |
---|
| 276 | - rebuilt with guile 2.0.11 |
---|
| 277 | - changed BR: tcl-devel, tk-devel instead of tcl, tk |
---|
| 278 | - added lua subpackage |
---|
| 279 | |
---|
[8760] | 280 | * Sat Jun 28 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 2.38.0-1 |
---|
| 281 | - update to 2.38.0 |
---|
| 282 | |
---|
[8188] | 283 | * Wed Jan 15 2014 NAKAMURA Kenta <kenta@vinelinux.org> 2.36.0-1 |
---|
| 284 | - new upstream release |
---|
| 285 | |
---|
[7856] | 286 | * Wed Oct 02 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.30.1-2 |
---|
| 287 | - rebuilt with gd-2.1.0. |
---|
| 288 | |
---|
[7583] | 289 | * Sun Mar 24 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.1-1 |
---|
| 290 | - new upstream release |
---|
| 291 | |
---|
[7304] | 292 | * Mon Jan 7 2013 IWAI, Masaharu <iwai@alib.jp> 2.28.0-3 |
---|
| 293 | - build with Tcl/Tk 8.5.7-1 |
---|
| 294 | - stop running autoreconf |
---|
| 295 | - add Vendor and Distribution tags |
---|
| 296 | |
---|
[7120] | 297 | * Sun Nov 11 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.28.0-2 |
---|
| 298 | - re-enable ruby binding, which is accidentally disabled in 2.28.0-1 |
---|
| 299 | - rewrite config_ruby.rb to build with ruby-1.9.3 |
---|
| 300 | - add search path for ruby/config.h to CPPFLAGS for configure |
---|
| 301 | |
---|
[7105] | 302 | * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.0-1 |
---|
| 303 | - new upstream release |
---|
| 304 | - remove Patch10 (graphviz-2.26.3_dont_regard_tiger_as_the_only_ppc.patch) |
---|
| 305 | - add BuildRequires: librsvg2-devel |
---|
| 306 | |
---|
[2021] | 307 | * Sun Oct 10 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.26.3-2 |
---|
| 308 | - add Patch10 to avoid build failure on ppc |
---|
| 309 | |
---|
[2015] | 310 | * Sat Oct 9 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.26.3-1 |
---|
| 311 | - new upstream release |
---|
| 312 | - built with rpm-4.8.1 |
---|
| 313 | - split doc, guile, perl, python, ruby subpackage |
---|
| 314 | |
---|
[521] | 315 | * Thu Apr 16 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.20.3-3 |
---|
| 316 | - rebuild with libtool-2.2.6a |
---|
| 317 | |
---|
| 318 | * Sun Nov 09 2008 Shu KONNO <owa@bg.wakwak.com> 2.20.3-1 |
---|
| 319 | - new upstream release |
---|
| 320 | |
---|
| 321 | * Sun Nov 09 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.20.2-2 |
---|
| 322 | - rebuild with libXaw.so.7 (libXaw-1.0.5) |
---|
| 323 | |
---|
| 324 | * Wed Jul 16 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.20.2-1 |
---|
| 325 | - new upstream release |
---|
| 326 | |
---|
| 327 | * Wed Feb 20 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.16.1-0vl1 |
---|
| 328 | - new upstream release |
---|
| 329 | - build with expat-2.0.1 |
---|
| 330 | - add man7 |
---|
| 331 | |
---|
| 332 | * Tue Oct 09 2007 Shu KONNO <owa@bg.wakwak.com> 2.12-0vl2 |
---|
| 333 | - rebuild with tcl/tk-8.4.16 |
---|
| 334 | |
---|
| 335 | * Sun May 13 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.12-0vl1 |
---|
| 336 | - new upstream release |
---|
| 337 | - add BuildPrereq: swig |
---|
| 338 | - delete BuildPrereq: gd-progs gd-devel |
---|
| 339 | - add --with-mylibgd and --disable-FEATURE to configure option |
---|
| 340 | - update %%files |
---|
| 341 | |
---|
| 342 | * Sun Jul 30 2006 NAKAMURA Kenta <kenta@vinelinux.org> 2.6-0vl2 |
---|
| 343 | - added BuildPrereq: ruby-devel |
---|
| 344 | |
---|
| 345 | * Tue Oct 11 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.6-0vl1 |
---|
| 346 | - new upstream release |
---|
| 347 | - add BuildPrereq: libtool-ltdl-devel |
---|
| 348 | - move pkgconfig files to %%{_libdir}/pkgconfig |
---|
| 349 | - add --disable-rpath --disable-static to configure option |
---|
| 350 | - add %%post to every package |
---|
| 351 | |
---|
| 352 | * Mon Jan 24 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.2-0vl1 |
---|
| 353 | - new upstream release |
---|
| 354 | - BuildPrereq: tcl >= 8.4, tk >= 8.4 |
---|
| 355 | - add BuildPrereq: gd-progs gd-devel flex bison pkgconfig |
---|
| 356 | - update %%files |
---|
| 357 | - remove lines about Vine2.6 |
---|
| 358 | - change License to CPL |
---|
| 359 | |
---|
| 360 | * Sun May 16 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.12-0vl1 |
---|
| 361 | - source upgrade |
---|
| 362 | - remove patch0 and commented lines |
---|
| 363 | |
---|
| 364 | * Tue Dec 16 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.10-0vl2 |
---|
| 365 | - build for VineSeed |
---|
| 366 | |
---|
| 367 | * Tue Dec 16 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.10-0vl1 |
---|
| 368 | - source upgrade |
---|
| 369 | - change spec to build both VineSeed and Vine2.5/2.6 |
---|
| 370 | - add BuildPrereq: expat-devel and Requires: libexpat |
---|
| 371 | - add patch0 to build against freetype2-2.1.7 |
---|
| 372 | - stop using autogen.sh script |
---|
| 373 | - add BuildPrereq: tcl >= 8.3 tk >= 8.3 (VineSeed) |
---|
| 374 | - add graphviz-tcl package (VineSeed) |
---|
| 375 | |
---|
| 376 | * Thu Aug 7 2003 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 1.9-0vl2 |
---|
| 377 | - rebuild for new Vine |
---|
| 378 | |
---|
| 379 | * Wed Mar 05 2003 Kunio Murasawa <murasawa@fa2.so-net.ne.jp> 1.9-0vl1 |
---|
| 380 | - import from offical site (src.rpm) |
---|
| 381 | |
---|