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