!2 初始化仓库

From: @wangtaozhi 
Reviewed-by: @tangjie02 
Signed-off-by: @tangjie02
This commit is contained in:
openeuler-ci-bot 2023-06-29 02:53:35 +00:00 committed by Gitee
commit acb3e645bd
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 91 additions and 0 deletions

BIN
lasem-0.4.3.tar.xz Normal file

Binary file not shown.

87
lasem.spec Normal file
View File

@ -0,0 +1,87 @@
%global apiver 0.4
Name: lasem
Version: 0.4.3
Release: 19%{?dist}
Summary: A library for rendering SVG and Mathml, implementing a DOM like API
License: LGPLv2+ and GPLv2+
URL: https://wiki.gnome.org/Projects/Lasem
Source0: http://download.gnome.org/sources/%{name}/%{apiver}/%{name}-%{version}.tar.xz
BuildRequires: gcc
BuildRequires: intltool
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(pango)
BuildRequires: make
Provides: bundled(itex2mml) = 1.4.5
%description
Lasem is a library for rendering SVG and Mathml, implementing a DOM like API.
It's based on GObject and use Pango and Cairo for the rendering.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package render
Summary: Simple MathML converter
Requires: %{name}%{?_isa} = %{version}-%{release}
%description render
Simple application, which is able to convert a Mathml, a latex math or a SVG
file to either a PNG, PDF or SVG image.
%prep
%autosetup
%build
%configure --disable-static \
--disable-silent-rules
%make_build
%install
%make_install
find $RPM_BUILD_ROOT%{_libdir} -type f -name '*.la' -delete -print
#docs are installed using %%doc
rm -rf $RPM_BUILD_ROOT%{_prefix}/doc
%find_lang %{name}-%{apiver}
%ldconfig_scriptlets
%files -f %{name}-%{apiver}.lang
%doc AUTHORS NEWS README
%license COPYING itex2mml/COPYING.itex2MML
%{_libdir}/girepository-1.0/Lasem-%{apiver}.typelib
%{_libdir}/lib%{name}-%{apiver}.so.*
%files devel
%{_includedir}/%{name}-%{apiver}
%{_libdir}/lib%{name}-%{apiver}.so
%{_libdir}/pkgconfig/%{name}-%{apiver}.pc
%{_datadir}/gir-1.0/Lasem-%{apiver}.gir
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%doc %{_datadir}/gtk-doc/html/%{name}-%{apiver}
%files render
%{_bindir}/%{name}-render-%{apiver}
%{_mandir}/man1/%{name}-render-%{apiver}.1*
%changelog
* Wed May 24 2023 wangtaozhi <wangtaozhi@kylinsec.com.cn> - 0.4.3-19
- Package init

4
lasem.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: https://gitlab.gnome.org/Archive/lasem
tag_prefix: "v"
separator: "."