1 |
Name: pcb |
2 |
Version: 20100929 |
3 |
Release: %mkrel 2 |
4 |
Summary: An interactive printed circuit board editor |
5 |
License: GPLv2 |
6 |
Group: Office |
7 |
URL: http://pcb.sourceforge.net |
8 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
9 |
BuildRequires: gtk2-devel |
10 |
BuildRequires: intltool |
11 |
BuildRequires: dbus-devel |
12 |
BuildRequires: flex |
13 |
BuildRequires: bison |
14 |
BuildRequires: tk |
15 |
BuildRequires: gd-devel |
16 |
BuildRequires: imagemagick |
17 |
BuildRequires: texinfo |
18 |
BuildRequires: texlive |
19 |
|
20 |
Requires: m4 |
21 |
##Requires: libcanberra-gtk0 |
22 |
|
23 |
Requires(post): info-install |
24 |
Requires(preun): info-install |
25 |
|
26 |
Source0: http://sourceforge.net/projects/pcb/files/%{name}/%{name}-%{version}.tar.gz |
27 |
|
28 |
# Note: the latest stable version from upstream (pcb-20110918) is not used |
29 |
# pending bugfixes (pcb tests fail) |
30 |
|
31 |
%description |
32 |
PCB is an interactive printed circuit board editor. |
33 |
PCB includes a rats nest feature, design rule checking, and can provide |
34 |
industry standard RS-274-X (Gerber), NC drill, and centroid data (X-Y data) |
35 |
output for use in the board fabrication and assembly process. PCB offers |
36 |
high end features such as an autorouter and trace optimizer which can |
37 |
tremendously reduce layout time. |
38 |
|
39 |
%prep |
40 |
%setup -q -n %{name}-%{version} |
41 |
|
42 |
# Temporary fix, please remove when fixed upstream! |
43 |
%define oldfsf 675 Mass Ave, Cambridge, MA 02139 |
44 |
%define newfsf 51 Franklin Street, Boston, MA 02111-1301 |
45 |
find . -type f -print0 | xargs -0 sed -i 's/%{oldfsf}/%{newfsf}/' |
46 |
|
47 |
%build |
48 |
export CFLAGS=`echo %optflags | sed "s/-D_FORTIFY_SOURCE=2 // g" -` |
49 |
%configure2_5x \ |
50 |
--enable-dbus \ |
51 |
--disable-update-mime-database \ |
52 |
--disable-update-desktop-database |
53 |
|
54 |
%{make} |
55 |
|
56 |
%install |
57 |
%{__rm} -rf %{buildroot} |
58 |
%makeinstall_std |
59 |
|
60 |
rm -fr %{buildroot}%{_datadir}/mimelnk |
61 |
|
62 |
%find_lang %{name} |
63 |
|
64 |
%check |
65 |
%{make} check |
66 |
|
67 |
%post |
68 |
%_install_info %{name}.info |
69 |
|
70 |
%preun |
71 |
%_remove_install_info %{name}.info |
72 |
|
73 |
%clean |
74 |
%{__rm} -rf %{buildroot} |
75 |
|
76 |
%files -f %{name}.lang |
77 |
%defattr(-, root, root, -) |
78 |
%doc %{_datadir}/doc/%name/* |
79 |
%{_datadir}/applications/%{name}.desktop |
80 |
%{_bindir}/%{name} |
81 |
%{_bindir}/MergePCBPS |
82 |
%{_bindir}/Merge_dimPCBPS |
83 |
%{_datadir}/gEDA/scheme/* |
84 |
%{_datadir}/%{name}/ |
85 |
%{_mandir}/man1/%{name}* |
86 |
%{_infodir}/* |
87 |
%{_datadir}/icons/hicolor/*/mimetypes/application-x-* |
88 |
%{_datadir}/icons/hicolor/*/apps/%{name}.* |
89 |
%{_datadir}/mime/packages/pcb.xml |
90 |
|
91 |
|