Package init
This commit is contained in:
commit
484b5a9c7f
14
art_config.h
Normal file
14
art_config.h
Normal file
@ -0,0 +1,14 @@
|
||||
#ifndef LIBART_MULTILIB
|
||||
#define LIBART_MULTILIB
|
||||
|
||||
#include <bits/wordsize.h>
|
||||
|
||||
#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
|
||||
33
libart-multilib.patch
Normal file
33
libart-multilib.patch
Normal file
@ -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
|
||||
BIN
libart_lgpl-2.3.21.tar.bz2
Normal file
BIN
libart_lgpl-2.3.21.tar.bz2
Normal file
Binary file not shown.
77
libart_lgpl.spec
Normal file
77
libart_lgpl.spec
Normal file
@ -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 <buildteam@openeuler.org> -2.3.21-22
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC:openEuler Debranding
|
||||
|
||||
* Mon Sep 2 2019 openEuler Buildteam <buildteam@openeuler.org> -2.3.21-21
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user