]> git.pld-linux.org Git - packages/pcb.git/blob - pcb.spec
- release 11 (by relup.sh)
[packages/pcb.git] / pcb.spec
1 Summary:        Printed Circuit Board design tool
2 Summary(pl.UTF-8):      PCB - narzędzie do projektowania płytek drukowanych
3 Name:           pcb
4 Version:        20080202
5 Release:        11
6 License:        GPL
7 Group:          X11/Applications
8 # devel snaps: http://dl.sourceforge.net/pcb/
9 Source0:        http://dl.sourceforge.net/pcb/%{name}-%{version}.tar.gz
10 # Source0-md5:  933eda642f3838b24d417224693f8386
11 #Source0:       ftp://ftp.uni-ulm.de/pub/pcb/mirror/%{name}-%{version}.tar.gz
12 Patch0:         format-security.patch
13 URL:            http://pcb.sourceforge.net/
14 BuildRequires:  bison
15 BuildRequires:  flex
16 BuildRequires:  gd-devel
17 BuildRequires:  gettext-tools
18 BuildRequires:  gtk+2-devel >= 2.0.0
19 BuildRequires:  perl-XML-Parser
20 BuildRequires:  pkgconfig
21 BuildRequires:  xorg-lib-libXpm-devel
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define         _appdefsdir     /usr/X11R6/lib/X11/app-defaults
25
26 %description
27 Pcb is a handy tool for the X Window System build to design printed
28 circuit boards.
29
30 %description -l pl.UTF-8
31 Pcb jest podręcznym narzędziem pod X Window System do projektowania
32 płytek drukowanych.
33
34 %prep
35 %setup -q
36 %patch0 -p1
37
38 %build
39 export LDFLAGS="-L%{_x_libraries}"
40 %configure \
41         WISH="%{_bindir}/wish" \
42         --disable-update-desktop-database \
43         --disable-update-mime-database
44
45 %{__make} -i \
46         CC="%{__cc}" \
47         CDEBUGFLAGS="%{rpmcflags}" \
48         PCBLIBDIR=%{_datadir}/pcb
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT%{_infodir}
53
54 %{__make} install \
55         DESTDIR=$RPM_BUILD_ROOT \
56         PCBLIBDIR=%{_datadir}/pcb \
57         BINDIR=%{_bindir}
58
59 install doc/pcb.info* $RPM_BUILD_ROOT%{_infodir}
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %post   -p      /sbin/postshell
65 -/usr/sbin/fix-info-dir -c %{_infodir}
66
67 %postun -p      /sbin/postshell
68 -/usr/sbin/fix-info-dir -c %{_infodir}
69
70 %files
71 %defattr(644,root,root,755)
72 %doc README_FILES/* example
73 %attr(755,root,root) %{_bindir}/*
74 ##%attr(755,root,root) %{_bindir}/pcb
75 ##%attr(755,root,root) %{_bindir}/pcb-bin
76 #%{_appdefsdir}/Pcb
77 %{_datadir}/pcb
78 %{_mandir}/man1/*
79 %{_infodir}/pcb.info*
This page took 0.051574 seconds and 3 git commands to generate.