]> git.pld-linux.org Git - packages/XaraLX.git/blobdiff - XaraLX.spec
- Source0 download URL
[packages/XaraLX.git] / XaraLX.spec
index 9c17dcfcce589e887956bb5d1ad281534bd2612f..1741955571b4e4b5076fe0c6ffeef52a6089f977 100644 (file)
@@ -1,33 +1,71 @@
+# NOTE: it builds; it starts and show nice main window; 
+# then it unfortunately got SIGILL - gcc-4.2 issue
 #
 Summary:       Xara Extreme LX Vector Image Editor
+Summary(pl.UTF-8):     Edytor obrazów wektorowych Xara Extreme LX
 Name:          XaraLX
-Version:       0.3r693
-Release:       0.1
-License:       - (enter GPL/GPL v2/LGPL/BSD/BSD-like/other license name here)
-Group:         Applications
-Source0:       http://downloads.xara.com/opensource/%{name}_%{version}.tar.bz2
-# Source0-md5: 70c9490007e2d9914840f937ff28434d
-URL:           http://www.xaraxtreme.org
+Version:       0.7r1766
+Release:       0.9
+License:       GPL v2 with binary libraries - see LICENSE files
+Group:         X11/Applications/Graphics
+#Source0Download: http://www.xaraxtreme.org/developers/general/source_code__building.html
+Source0:       http://downloads.xara.com/opensource/%{name}-%{version}.tar.bz2
+# Source0-md5: fdbe0bdcbb50d58ff1b9b03e6c0ad99c
+Patch0:                %{name}-desktop.patch
+Patch1:                %{name}-wx28.patch
+Patch2:                %{name}-system_wx_aui.patch
+URL:           http://www.xaraxtreme.org/
 BuildRequires: autoconf
 BuildRequires: automake
+BuildRequires: gettext-autopoint
 BuildRequires: libtool
-BuildRequires: perl
-BuildRequires: wxGTK2-unicode-devel > 2.6.2
+BuildRequires: perl-base
+BuildRequires: pkgconfig
+BuildRequires: wxGTK2-unicode-devel >= 2.6.3
+BuildRequires: zip
+ExclusiveArch: %{ix86} %{x8664} ppc
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
+Xara eXtreme is a 2D vector graphics editor created by a small British
+software company named Xara, notable for being the first vector
+graphics software product to provide fully anti-aliased display,
+advanced gradient fill and transparency tools, now available in many
+of the competitors' products. Xara X is also notable for its usability
+and very fast renderer
+
+%description -l pl.UTF-8
+Xara eXtreme jest edytorem grafiki 2D stworzonym przez małą brytyjską
+firmę Xara, pierwszym wektorowym programem udostępniającym pełny
+anty-aliasing, rozbudowane wypełnianie gradientami i narzędzia do
+przeźroczystości, teraz dostępne w wielu innych produktach. Xara X
+jest także znana z użyteczności i prędkości działania.
+
+%package examples
+Summary:       Examples from Xara Extreme LX
+Summary(pl.UTF-8):     Przykłady z Xara Extreme LX
+Group:         X11/Applications/Graphics
+
+%description examples
+Examples from Xara Extreme LX.
+
+%description examples -l pl.UTF-8
+Przykłady z Xara Extreme LX.
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
 
 %build
-%{__gettextize}
+%{__autopoint}
+%{__aclocal} -I m4
 %{__libtoolize}
-%{__aclocal}
 %{__autoconf}
-%{__autoheader}
 %{__automake}
 %configure \
+       OPT_FLAGS="" \
        --with-wx-config=wx-gtk2-unicode-config
 %{__make}
 
@@ -37,9 +75,32 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name},%{_desktopdir},%{_pixmapsdir}}
+cp -r Designs testfiles $RPM_BUILD_ROOT%{_examplesdir}/%{name}
+
+ln -sf XaraLX $RPM_BUILD_ROOT%{_bindir}/xaralx
+
+install xaralx.desktop $RPM_BUILD_ROOT%{_desktopdir}
+install xaralx.png $RPM_BUILD_ROOT%{_pixmapsdir}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+umask 022
+[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
+
+%postun
+umask 022
+[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
+
 %files
 %defattr(644,root,root,755)
-%{_bindir}/*
+%doc LICENSE libs/LIBS-LICENSE
+%attr(755,root,root) %{_bindir}/*
+%{_desktopdir}/*.desktop
+%{_pixmapsdir}/*.png
+
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}
This page took 0.038796 seconds and 4 git commands to generate.