]> git.pld-linux.org Git - packages/xcircuit.git/blobdiff - xcircuit.spec
- up to 3.8.38
[packages/xcircuit.git] / xcircuit.spec
index 51c7863257269eaa2461b8e87fb3ed24e4ffb940..81bd66868d1fe9e62ec9789545fc36f09f995763 100644 (file)
@@ -1,22 +1,27 @@
 # TODO:
 # - Rs (X at least...)
 Summary:       Drawing electrical circuit schematic diagrams and related figure
+Summary(hu.UTF-8):     Elektromos áramkörök rajzolása
 Summary(pl.UTF-8):     Rysowanie schematów elektronicznych i zbliżonych diagramów
 Name:          xcircuit
-Version:       3.6.145
-Release:       0.1
+Version:       3.8.38
+Release:       1
 License:       GPL
 Group:         Applications/Engineering
 Source0:       http://opencircuitdesign.com/xcircuit/archive/%{name}-%{version}.tgz
-# Source0-md5: 05af67b83925ad8f0bace213044342c9
+# Source0-md5: e749beb96374c89f84535d3e4629de7b
 Source1:       %{name}.desktop
+Source2:       http://opencircuitdesign.com/xcircuit/archive/tutorial.tar.gz
+# Source2-md5: 16aaa9c90b0cc83f69c1837365817fe4
+Patch1:                %{name}-not-a-string-literal.patch
 URL:           http://opencircuitdesign.com/xcircuit/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: tk-devel
+BuildRequires: xorg-lib-libXt-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define         _xcircuitdir    %{_libdir}/%{name}-3.6
+%define         _xcircuitdir    %{_libdir}/%{name}-3.8
 
 %description
 XCircuit is a UNIX/X11 program for drawing publishable-quality
@@ -29,6 +34,13 @@ XCircuit does not separate artistic expression from circuit drawing;
 it maintains flexiblity in style without compromising the power of
 schematic capture.
 
+%description -l hu.UTF-8
+XCircuit egy UNIX/X11 program nyomdai minőségű elemktromos áramkörök
+és hasonlók szedéséhe. Az XCircuit figyel a hierarchiára és a
+PostScript kimenetnél és a SPICE listánál is megtartja. Az áramköri
+komponensek könyvtárakba menti illetve tölti be, amelyek
+szerkesztehtőek.
+
 %description -l pl.UTF-8
 XCircuit to program dla systemu UNIX/X11 do rysowania w jakości
 nadającej się do publikacji różnych schematów elektronicznych i
@@ -41,8 +53,21 @@ oddziela wyrażenia artystycznego od rysowania obwodów; zachowuje
 elastyczność w stylu bez kompromisów kosztem możliwości odczytu
 schematu.
 
+%package tutorial
+Summary:       Tutorial to XCircuit
+Summary(hu.UTF-8):     Tutorial az XCircuithoz
+Group:         Applications/Engineering
+Requires:      xcircuit = %{version}-%{release}
+
+%description tutorial
+Tutorial to XCircuit.
+
+%description tutorial -l hu.UTF-8
+Tutorial az XCircuithoz.
+
 %prep
 %setup -q
+%patch1 -p1
 
 %build
 %{__aclocal}
@@ -60,13 +85,18 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
 
 %{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT \
+       DESTDIR=$RPM_BUILD_ROOT
 %{__make} install-man \
-       DESTDIR=$RPM_BUILD_ROOT \
+       DESTDIR=$RPM_BUILD_ROOT
 
 install lib/pixmaps/%{name}.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
 
+install -d $RPM_BUILD_ROOT%{_docdir}/xcircuit-tutorial
+tar xf %{SOURCE2} -C $RPM_BUILD_ROOT%{_docdir}/xcircuit-tutorial
+
+rm -rf $RPM_BUILD_ROOT%{_xcircuitdir}/man
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -94,3 +124,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_pixmapsdir}/*
 %{_mandir}/man1/*.1*
 %{_desktopdir}/%{name}.desktop
+
+%files tutorial
+%defattr(644,root,root,755)
+%doc %{_docdir}/%{name}-tutorial
This page took 0.055881 seconds and 4 git commands to generate.