Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Education
xaralx
XaraLX.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File XaraLX.spec of Package xaralx
# # spec file for package XaraLX (Version 0.7r1766) # # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # norootforbuild Name: XaraLX License: GPL-2.0 Group: Productivity/Images/Editor Version: 0.7r1785 Release: 1 Summary: Xara Xtreme for Linux is a powerful, general purpose vector graphics program URL: http://www.xaraxtreme.org/developers/general/source_code__building.html %if 0%{?suse_version} > 1110 BuildRequires: libpng12-devel %else BuildRequires: libpng-devel %endif BuildRequires: gcc-c++ libjpeg-devel libtiff-devel perl libxml2-devel zip unzip gettext-devel BuildRequires: wxWidgets-wxcontainer-devel # documentation has wrong file end of line encoding BuildRequires: dos2unix %if 0%{?suse_version} BuildRequires: update-desktop-files %endif %if 0%{?suse_version} BuildRequires: fdupes %endif BuildRequires: autoconf BuildRequires: automake Requires: ImageMagick libwx_gtk2u_richtext-2_8-0-wxcontainer # Source: http://downloads2.xara.com/opensource/%name-%version.tar.bz2 Source: %name-%version.tar.bz2 Source1: XARFormatDocument.pdf Source2: xaralx.desktop Requires: ImageMagick Patch: abuild.diff Patch2: XaraLX-0.7r1785-missing-declaration.patch # PATCH-FIX-OPENSUSE xaralx-pragma.patch sbrabec@suse.cz -- Fix of #pragma inside array definition. Patch3: xaralx-pragma.patch # PATCH-FIX-OPENSUSE xaralx-gsocket.patch sbrabec@suse.cz -- Work-around of wxWidgets x GIO clash of GSocket. Patch4: xaralx-gsocket.patch # PATCH-FIX-OPENSUSE xaralx-libpng.patch -- Ported to new libpng. Patch5: xaralx-0.7r1785-libpng15.patch # PATCH-FIX-UPSTREAM -- add missing library to the linker command line Patch6: xaralx-missing_lib.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build ExclusiveArch: %ix86 x86_64 %if 0%{?suse_version} >= 1140 %define _use_internal_dependency_generator 0 %define __find_requires %wx_requires %endif %description Xara Xtreme for Linux is a powerful, general purpose vector graphics program for Unix platforms including Linux, FreeBSD and (in development) OS-X. Formely known as Xara LX, it is based on Xara Xtreme for Windows, which is the fastest graphics program available, period. The Xara Xtreme source code was made available open-source in early 2006, and is being ported to Linux. This process is almost complete and Xara Xtreme for Linux is available for download now. Authors: -------- dev@xaraxtreme.org %package devel Summary: Development files for XaraLX Group: Development/Other License: GPL-2.0 Requires: %name = %version Requires: wxGTK-devel Requires: libjpeg-devel Requires: libtiff-devel Requires: libpng-devel %description devel Files to develop applications using XaraLX. Authors: -------- dev@xaraxtreme.org %prep %setup -q -n XaraLX-%{version} %patch -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %if 0%{?suse_version} > 1120 %patch5 -p1 %patch6 -p1 %endif find -type d -name .svn -print0 | xargs -0 rm -rf {} \; %build export SUSE_ASNEEDED=0 ./autogen.sh pushd filters/SVGFilter autoreconf -f -i popd CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fpermissive" \ CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \ LDFLAGS="-lgobject-2.0" \ %configure --enable-unicode \ --enable-xarlib \ --enable-filters \ --disable-svnversion %{__make} %{?jobs:-j%jobs} %install mkdir -p %buildroot/%{_bindir} %makeinstall (cd %buildroot%{_bindir} && ln -s XaraLX xara && ln -s XaraLX xaralx) mkdir -p %buildroot/%{_datadir}/%{name} (cd %buildroot/%{_datadir} && ln -s %{name} xaralx) # /usr/share/xaralx/doc/xarax/ is used by the application for online help (cd %buildroot/%{_datadir}/%{name} && ln -s %{_docdir}/%{name}/help doc) install -m 644 %{S:1} %buildroot%{_datadir}/%{name} install -D -m 644 doc/en/LICENSE %buildroot%{_docdir}/%{name}/help/LICENSE cp -a Designs TextDesigns Templates filters/SVGFilter/{tests,images,openclipart,samples} testfiles %buildroot/%{_datadir}/%{name} cat doc/en/xaralxHelp.tar.gz | (cd %buildroot/%{_docdir}/%{name}/help; tar zxvf - ) find %buildroot/%{_docdir} -type f -print0 | xargs -0 dos2unix -q -o; find %buildroot/%{_datadir} %buildroot/%{_docdir} -type f -print0 | xargs -0 chmod 644; perl -ape 's{((src|document.location\s+)=.?")}{$1help/}g;' < %buildroot/%{_docdir}/%{name}/help/xaralx.htm > %buildroot/%{_docdir}/%{name}/help.html install -m 644 COPYING LICENSE README MTRand.txt doc/gifutil.txt doc/XSVG.txt %buildroot/%{_docdir}/%{name}/ install -D -m 644 doc/xaralx.1 %buildroot%{_mandir}/man1/XaraLX.1 (cd %buildroot%{_mandir}/man1 && ln -s XaraLX.1 xaralx.1 && ln -s XaraLX.1 xara.1) install -D -m 644 xaralx.png %buildroot%{_datadir}/pixmaps/xaralx.png # install -D -m 644 %SOURCE2 %buildroot%_datadir/applications/xaralx.desktop %if 0%{?suse_version} %suse_update_desktop_file -i -n xaralx Graphics VectorGraphics %endif chmod 750 %buildroot%{_datadir}/XaraLX/tests/makerandom.sh # avoid duplicates and save space... %if 0%{?suse_version} > 1020 %fdupes -s %buildroot %endif dos2unix %{buildroot}%{_docdir}/%{name}/MTRand.txt %clean rm -rf %buildroot %files %defattr(-,root,root) %doc %{_docdir}/%{name} %{_bindir}/*ara* %{_bindir}/expandxar %dir %{_datadir}/%{name} %dir %{_datadir}/xaralx %dir %{_datadir}/xaralx/filters %{_datadir}/%{name}/* %{_datadir}/xaralx/* %{_datadir}/xaralx/filters/* %{_datadir}/applications/*.desktop %{_datadir}/pixmaps/xaralx.png %{_mandir}/man1/* %files devel %defattr(-,root,root) %dir %_includedir/xarlib %_includedir/xarlib/*.h %_libdir/libXar.a %_libdir/pkgconfig/Xar.pc %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor