commit 484b5a9c7f7d9330b33e6f818e071b48e2f68b3f Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:54:51 2019 -0400 Package init diff --git a/art_config.h b/art_config.h new file mode 100644 index 0000000..4747ada --- /dev/null +++ b/art_config.h @@ -0,0 +1,14 @@ +#ifndef LIBART_MULTILIB +#define LIBART_MULTILIB + +#include + +#if __WORDSIZE == 32 +# include "art_config-32.h" +#elif __WORDSIZE == 64 +# include "art_config-64.h" +#else +# error "unexpected value for __WORDSIZE macro" +#endif + +#endif diff --git a/libart-multilib.patch b/libart-multilib.patch new file mode 100644 index 0000000..0798e15 --- /dev/null +++ b/libart-multilib.patch @@ -0,0 +1,33 @@ +--- libart_lgpl-2.3.17/libart-config.in.multilib 2006-07-27 18:02:06.000000000 -0400 ++++ libart_lgpl-2.3.17/libart-config.in 2006-07-27 18:02:11.000000000 -0400 +@@ -1,7 +1,9 @@ + #!/bin/sh + +-prefix=@prefix@ +-exec_prefix=@exec_prefix@ ++includedir=`pkg-config --variable includedir libart-2.0` ++libdir=`pkg-config --variable libdir libart-2.0` ++prefix=`pkg-config --variable prefix libart-2.0` ++exec_prefix=`pkg-config --variable exec_prefix libart-2.0` + exec_prefix_set=no + + usage="\ +@@ -36,15 +38,13 @@ + echo $exec_prefix + ;; + --version) +- echo @LIBART_VERSION@ ++ pkg-config --modversion libart-2.0 + ;; + --cflags) +- includes=-I@includedir@/libart-2.0 +- echo $includes ++ echo -I$includedir/libart-2.0 + ;; + --libs) +- libdirs=-L@libdir@ +- echo $libdirs -lart_lgpl_2 -lm ++ echo -L$libdir -lart_lgpl_2 -lm + ;; + *) + echo "${usage}" 1>&2 diff --git a/libart_lgpl-2.3.21.tar.bz2 b/libart_lgpl-2.3.21.tar.bz2 new file mode 100644 index 0000000..ec9c968 Binary files /dev/null and b/libart_lgpl-2.3.21.tar.bz2 differ diff --git a/libart_lgpl.spec b/libart_lgpl.spec new file mode 100644 index 0000000..df54898 --- /dev/null +++ b/libart_lgpl.spec @@ -0,0 +1,77 @@ +Name: libart_lgpl +Version: 2.3.21 +Release: 22 +Summary: A library for high-performance 2D graphics + +License: LGPLv2+ +URL: https://www.levien.com/libart/ +Source0: https://download.gnome.org/sources/%{name}/2.3/%{name}-%{version}.tar.bz2 +Source1: art_config.h +#Patch0 comes from Fedora 29 +Patch0: libart-multilib.patch + +BuildRequires: gcc libtool pkgconfig automake autoconf + +%description +Libart is a library for high-performance 2D graphics. It is currently +being used as the antialiased rendering engine for the Gnome Canvas. +It is also the rendering engine for Gill, the Gnome Illustration app. + +%package devel +Summary: Files for %{name} development +Requires: %{name} = %{version}-%{release} + +%description devel +files for %{name} development. + +%package_help + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +libtoolize +autoreconf -i +%configure +%make_build + +%install +%make_install +pushd $RPM_BUILD_ROOT%{_includedir}/libart-2.0/libart_lgpl +mv art_config.h art_config-%{__isa_bits}.h +cp %{SOURCE1} . +popd +%delete_la + +%check +make check + +%ldconfig_scriptlets + +%files +%defattr(-,root,root) +%doc AUTHORS +%license COPYING +%{_libdir}/*.so.* + +%files devel +%defattr(-,root,root) +%{_bindir}/libart2-config +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc +%{_libdir}/*.a + +%files help +%defattr(-,root,root) +%doc README NEWS + +%changelog +* Fri Sep 6 2019 openEuler Buildteam -2.3.21-22 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:openEuler Debranding + +* Mon Sep 2 2019 openEuler Buildteam -2.3.21-21 +- Package init