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