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