gerbv-vl.spec 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. Name: gerbv
  2. Version: 2.4.0
  3. Release: 2%{?dist}
  4. Summary: Gerber file viewer from the gEDA toolkit
  5. Group: Applications/Engineering
  6. License: GPLv2
  7. URL: http://gerbv.gpleda.org/index.html
  8. Source: http://downloads.sourceforge.net/gerbv/%{name}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: gtk2-devel
  11. BuildRequires: libpng-devel
  12. BuildRequires: desktop-file-utils
  13. BuildRequires: automake
  14. BuildRequires: ImageMagick-devel
  15. Requires: electronics-menu
  16. %description
  17. Gerber Viewer (gerbv) is a viewer for Gerber files. Gerber files
  18. are generated from PCB CAD system and sent to PCB manufacturers
  19. as basis for the manufacturing process. The standard supported
  20. by gerbv is RS-274X.
  21. gerbv also supports drill files. The format supported are known
  22. under names as NC-drill or Excellon. The format is a bit undefined
  23. and different EDA-vendors implement it different.
  24. gerbv is listed among Fedora Electronic Lab (FEL) packages.
  25. %package devel
  26. Summary: Header files, libraries and development documentation for %{name}
  27. Group: Development/Libraries
  28. Requires: %{name} = %{version}-%{release}
  29. Requires: gtk2-devel
  30. Requires: libpng-devel
  31. %description devel
  32. This package contains the header files, libraries and development
  33. documentation for %{name}. If you like to develop programs using %{name},
  34. you will need to install %{name}-devel.
  35. %prep
  36. %setup -q
  37. %build
  38. # default measurement units set to millimeters
  39. %configure \
  40. --enable-exportpng \
  41. --enable-unit-mm \
  42. --disable-update-desktop-database \
  43. --disable-static \
  44. --enable-gtk2
  45. # clean unused-direct-shlib-dependencies
  46. sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
  47. make %{?_smp_mflags}
  48. %install
  49. %{__rm} -rf %{buildroot}
  50. make INSTALL="%{__install} -p" install DESTDIR=%{buildroot}
  51. desktop-file-install --vendor "" \
  52. --remove-category Education \
  53. --dir %{buildroot}%{_datadir}/applications \
  54. --delete-original \
  55. %{buildroot}%{_datadir}/applications/%{name}.desktop
  56. %{__rm} -f %{buildroot}%{_libdir}/libgerbv.la
  57. %{__rm} -f {doc,example}/Makefile*
  58. pushd example/
  59. for dir in * ; do
  60. [ -d $dir ] && %{__rm} -f $dir/Makefile*
  61. done
  62. popd
  63. pushd doc/
  64. for dir in * ; do
  65. [ -d $dir ] && %{__rm} -f $dir/Makefile*
  66. done
  67. popd
  68. %clean
  69. %{__rm} -rf %{buildroot}
  70. %post
  71. /sbin/ldconfig
  72. touch --no-create %{_datadir}/icons/hicolor || :
  73. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  74. %postun
  75. /sbin/ldconfig
  76. touch --no-create %{_datadir}/icons/hicolor || :
  77. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  78. %files
  79. %defattr(-,root,root,-)
  80. %doc AUTHORS ChangeLog COPYING NEWS README TODO CONTRIBUTORS HACKING
  81. %doc example/
  82. %doc doc/example-code
  83. %doc doc/eagle
  84. %doc doc/sources.txt
  85. %doc doc/aperturemacro.txt
  86. %doc doc/PNG-print
  87. %{_bindir}/%{name}
  88. %{_datadir}/%{name}/
  89. %{_mandir}/man1/gerbv.*
  90. %{_datadir}/icons/hicolor/??x??/apps/%{name}.png
  91. %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
  92. %{_datadir}/applications/%{name}.desktop
  93. %{_libdir}/lib%{name}.so.*
  94. %files devel
  95. %defattr(-,root,root,-)
  96. %dir %{_includedir}/%{name}-%{version}
  97. %{_includedir}/%{name}-%{version}/%{name}.h
  98. %{_libdir}/lib%{name}.so
  99. %{_libdir}/pkgconfig/libgerbv.pc
  100. %changelog
  101. * Tue Sep 28 2010 Shu KONNO <owa@bg.wakwak.com> 2.4.0-2
  102. - rebuilt with rpm-4.8.1 for pkg-config
  103. * Sun Jun 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.4.0-1
  104. - Initial build for Vine Linux
  105. * Sun Sep 13 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 2.3.0-3
  106. - Fixed gerbv-2.3.0-1 png failed to open - FEL ticket #47
  107. - Fixed bug 2841371 (segfault on edit->orientation with no layer loaded)
  108. * Sat Jul 11 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 2.3.0-1
  109. - new upstream release
  110. * Sat Mar 07 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 2.2.0-3
  111. - added requires electronics-menu #485585
  112. * Thu Jan 22 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 2.2.0-1
  113. - new upstream release
  114. * Thu Dec 4 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 2.1.0-3
  115. - Include unowned headers directory.
  116. * Thu Nov 13 2008 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 2.1.0-2
  117. - BR ImageMagick-devel added
  118. * Thu Nov 13 2008 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 2.1.0-1
  119. - New upstream release and split into -devel package
  120. * Tue Feb 01 2008 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 2.0.0-1
  121. - New upstream release
  122. * Tue Dec 04 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.0.3-1
  123. - new upstream release
  124. * Thu Aug 23 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.0.2-3
  125. - mass rebuild for fedora 8 - ppc
  126. * Thu Jun 28 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.0.2-2
  127. - remove gdk-pixbuf-devel as BR
  128. * Thu Sep 14 2006 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.0.2-1
  129. - Initial package for Fedora Core