]>
Commit | Line | Data |
---|---|---|
1b312f39 | 1 | # TODO: |
7b36f348 | 2 | # - Rs (X at least...) |
1b312f39 | 3 | Summary: Drawing electrical circuit schematic diagrams and related figure |
8ad34c02 | 4 | Summary(hu.UTF-8): Elektromos áramkörök rajzolása |
42e1f190 | 5 | Summary(pl.UTF-8): Rysowanie schematów elektronicznych i zbliżonych diagramów |
1b312f39 | 6 | Name: xcircuit |
fed1c0e0 ŁM |
7 | Version: 3.8.82 |
8 | Release: 1 | |
1b312f39 PG |
9 | License: GPL |
10 | Group: Applications/Engineering | |
52b88835 | 11 | Source0: http://opencircuitdesign.com/xcircuit/archive/%{name}-%{version}.tgz |
fed1c0e0 | 12 | # Source0-md5: c19dc0c6daaa07d04578ab45b5b62a4c |
7b36f348 | 13 | Source1: %{name}.desktop |
8ad34c02 ZU |
14 | Source2: http://opencircuitdesign.com/xcircuit/archive/tutorial.tar.gz |
15 | # Source2-md5: 16aaa9c90b0cc83f69c1837365817fe4 | |
8e1459fd | 16 | Patch1: %{name}-not-a-string-literal.patch |
52b88835 | 17 | URL: http://opencircuitdesign.com/xcircuit/ |
1b312f39 PG |
18 | BuildRequires: autoconf |
19 | BuildRequires: automake | |
563f8e3c | 20 | BuildRequires: tk-devel |
f2fdf276 | 21 | BuildRequires: xorg-lib-libXt-devel |
1b312f39 PG |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
079a6c1a | 24 | %define _xcircuitdir %{_libdir}/%{name}-3.8 |
1b312f39 PG |
25 | |
26 | %description | |
27 | XCircuit is a UNIX/X11 program for drawing publishable-quality | |
28 | electrical circuit schematic diagrams and related figures, and | |
29 | producing circuit netlists through schematic capture. XCircuit regards | |
30 | circuits as inherently hierarchical, and writes both hierarchical | |
31 | PostScript output and hierarchical SPICE netlists. Circuit components | |
32 | are saved in and retrieved from libraries which are fully editable. | |
33 | XCircuit does not separate artistic expression from circuit drawing; | |
34 | it maintains flexiblity in style without compromising the power of | |
35 | schematic capture. | |
36 | ||
8ad34c02 ZU |
37 | %description -l hu.UTF-8 |
38 | XCircuit egy UNIX/X11 program nyomdai minőségű elemktromos áramkörök | |
39 | és hasonlók szedéséhe. Az XCircuit figyel a hierarchiára és a | |
40 | PostScript kimenetnél és a SPICE listánál is megtartja. Az áramköri | |
41 | komponensek könyvtárakba menti illetve tölti be, amelyek | |
42 | szerkesztehtőek. | |
43 | ||
66f58157 JR |
44 | %description -l pl.UTF-8 |
45 | XCircuit to program dla systemu UNIX/X11 do rysowania w jakości | |
46 | nadającej się do publikacji różnych schematów elektronicznych i | |
47 | zbliżonych diagramów oraz tworzenia list połączeń poprzez odczytanie | |
48 | schematu. XCurcuit traktuje obwody jako nieodłącznie hierarchiczne i | |
49 | zapisuje zarówno hierarchiczne wyjście w PostScripcie, jak i | |
50 | hierarchiczne listy połączeń SPICE. Składniki obwodów są zapisywane i | |
51 | odczytywane z bibliotek, które są w pełni modyfikowalne. XCircuit nie | |
52 | oddziela wyrażenia artystycznego od rysowania obwodów; zachowuje | |
53 | elastyczność w stylu bez kompromisów kosztem możliwości odczytu | |
db17ff35 JB |
54 | schematu. |
55 | ||
8ad34c02 ZU |
56 | %package tutorial |
57 | Summary: Tutorial to XCircuit | |
58 | Summary(hu.UTF-8): Tutorial az XCircuithoz | |
59 | Group: Applications/Engineering | |
60 | Requires: xcircuit = %{version}-%{release} | |
61 | ||
62 | %description tutorial | |
63 | Tutorial to XCircuit. | |
64 | ||
65 | %description tutorial -l hu.UTF-8 | |
66 | Tutorial az XCircuithoz. | |
67 | ||
1b312f39 PG |
68 | %prep |
69 | %setup -q | |
079a6c1a | 70 | %patch1 -p1 |
1b312f39 PG |
71 | |
72 | %build | |
73 | %{__aclocal} | |
74 | %{__autoconf} | |
75 | %{__automake} | |
3977615e | 76 | %configure \ |
77 | %if "%{_lib}" == "lib64" | |
78 | --enable-libsuffix=64 \ | |
79 | %endif | |
80 | --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full} | |
1b312f39 PG |
81 | %{__make} |
82 | ||
83 | %install | |
84 | rm -rf $RPM_BUILD_ROOT | |
7b36f348 | 85 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} |
1b312f39 PG |
86 | |
87 | %{__make} install \ | |
f2fdf276 | 88 | DESTDIR=$RPM_BUILD_ROOT |
6b4f1ffd | 89 | %{__make} install-man \ |
f2fdf276 | 90 | DESTDIR=$RPM_BUILD_ROOT |
1b312f39 | 91 | |
0ef652e4 | 92 | install lib/pixmaps/%{name}.xpm $RPM_BUILD_ROOT%{_pixmapsdir} |
7b36f348 | 93 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
0ef652e4 | 94 | |
8ad34c02 ZU |
95 | install -d $RPM_BUILD_ROOT%{_docdir}/xcircuit-tutorial |
96 | tar xf %{SOURCE2} -C $RPM_BUILD_ROOT%{_docdir}/xcircuit-tutorial | |
97 | ||
079a6c1a | 98 | rm -rf $RPM_BUILD_ROOT%{_xcircuitdir}/man |
8ad34c02 | 99 | |
1b312f39 PG |
100 | %clean |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %files | |
104 | %defattr(644,root,root,755) | |
105 | %doc CHANGES README* TODO examples | |
106 | %attr(755,root,root) %{_bindir}/* | |
107 | %dir %{_xcircuitdir} | |
6b4f1ffd SZ |
108 | %attr(755,root,root) %{_xcircuitdir}/*.so |
109 | %attr(755,root,root) %{_xcircuitdir}/*.tcl | |
170cfc17 | 110 | %{_xcircuitdir}/*.cir |
1b312f39 | 111 | %{_xcircuitdir}/*.lps |
6b4f1ffd | 112 | #%{_xcircuitdir}/*.script |
1b312f39 PG |
113 | %{_xcircuitdir}/*.pro |
114 | %dir %{_xcircuitdir}/app-defaults | |
115 | %{_xcircuitdir}/app-defaults/XCircuit | |
116 | %dir %{_xcircuitdir}/fonts | |
117 | %{_xcircuitdir}/fonts/*.lps | |
118 | %{_xcircuitdir}/fonts/*.xfe | |
6b4f1ffd | 119 | %dir %{_xcircuitdir}/pixmaps |
6c621172 | 120 | %{_xcircuitdir}/pixmaps/*.gif |
121 | %{_xcircuitdir}/pixmaps/*.ico | |
6b4f1ffd | 122 | %{_xcircuitdir}/pixmaps/*.xbm |
6c621172 | 123 | %{_xcircuitdir}/xcircexec |
0ef652e4 | 124 | %{_pixmapsdir}/* |
1b312f39 | 125 | %{_mandir}/man1/*.1* |
7b36f348 | 126 | %{_desktopdir}/%{name}.desktop |
8ad34c02 ZU |
127 | |
128 | %files tutorial | |
129 | %defattr(644,root,root,755) | |
130 | %doc %{_docdir}/%{name}-tutorial |