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