]> git.pld-linux.org Git - packages/xcircuit.git/blob - xcircuit.spec
- Up to 3.8.82.
[packages/xcircuit.git] / xcircuit.spec
1 # TODO:
2 # - Rs (X at least...)
3 Summary:        Drawing electrical circuit schematic diagrams and related figure
4 Summary(hu.UTF-8):      Elektromos áramkörök rajzolása
5 Summary(pl.UTF-8):      Rysowanie schematów elektronicznych i zbliżonych diagramów
6 Name:           xcircuit
7 Version:        3.8.82
8 Release:        1
9 License:        GPL
10 Group:          Applications/Engineering
11 Source0:        http://opencircuitdesign.com/xcircuit/archive/%{name}-%{version}.tgz
12 # Source0-md5:  c19dc0c6daaa07d04578ab45b5b62a4c
13 Source1:        %{name}.desktop
14 Source2:        http://opencircuitdesign.com/xcircuit/archive/tutorial.tar.gz
15 # Source2-md5:  16aaa9c90b0cc83f69c1837365817fe4
16 Patch1:         %{name}-not-a-string-literal.patch
17 URL:            http://opencircuitdesign.com/xcircuit/
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 BuildRequires:  tk-devel
21 BuildRequires:  xorg-lib-libXt-devel
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define         _xcircuitdir    %{_libdir}/%{name}-3.8
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
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
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
54 schematu.
55
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
68 %prep
69 %setup -q
70 %patch1 -p1
71
72 %build
73 %{__aclocal}
74 %{__autoconf}
75 %{__automake}
76 %configure  \
77 %if "%{_lib}" == "lib64"
78         --enable-libsuffix=64 \
79 %endif
80         --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full}
81 %{__make}
82
83 %install
84 rm -rf $RPM_BUILD_ROOT
85 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
86
87 %{__make} install \
88         DESTDIR=$RPM_BUILD_ROOT
89 %{__make} install-man \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 install lib/pixmaps/%{name}.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
93 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
94
95 install -d $RPM_BUILD_ROOT%{_docdir}/xcircuit-tutorial
96 tar xf %{SOURCE2} -C $RPM_BUILD_ROOT%{_docdir}/xcircuit-tutorial
97
98 rm -rf $RPM_BUILD_ROOT%{_xcircuitdir}/man
99
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}
108 %attr(755,root,root) %{_xcircuitdir}/*.so
109 %attr(755,root,root) %{_xcircuitdir}/*.tcl
110 %{_xcircuitdir}/*.cir
111 %{_xcircuitdir}/*.lps
112 #%{_xcircuitdir}/*.script
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
119 %dir %{_xcircuitdir}/pixmaps
120 %{_xcircuitdir}/pixmaps/*.gif
121 %{_xcircuitdir}/pixmaps/*.ico
122 %{_xcircuitdir}/pixmaps/*.xbm
123 %{_xcircuitdir}/xcircexec
124 %{_pixmapsdir}/*
125 %{_mandir}/man1/*.1*
126 %{_desktopdir}/%{name}.desktop
127
128 %files tutorial
129 %defattr(644,root,root,755)
130 %doc %{_docdir}/%{name}-tutorial
This page took 0.092891 seconds and 3 git commands to generate.