69 lines
2.0 KiB
RPMSpec
69 lines
2.0 KiB
RPMSpec
Name:libart-lgpl-trinity
|
|
Version:14.1.3
|
|
Release:0
|
|
Summary:Vector graphics rendering library with TQt interface (Trinity Desktop Environment)
|
|
|
|
License:GPL-2.0-only
|
|
URL:http://www.trinitydesktop.org
|
|
Source0:https://mirror.ppa.trinitydesktop.org/trinity/releases/R%{version}/main/dependencies/%{name}-%{version}.tar.xz
|
|
|
|
BuildRequires:dbus-devel tqt3-trinity-devel tqtinterface-trinity-devel cmake g++ tde-cmake-trinity
|
|
Requires: dbus tqt3-trinity tqtinterface-trinity
|
|
|
|
%description
|
|
The libart-lgpl library provides high-performance 2D graphics rendering
|
|
capabilities with anti-aliasing and affine transformations support. This
|
|
Trinity-specific adaptation integrates the LGPL-licensed libart library
|
|
with TQt (Trinity Qt) framework, enabling native graphical component
|
|
development for TDE applications.
|
|
%package devel
|
|
Summary:Development libraries and headers for libart-lgpl-tqt-trinity
|
|
%description devel
|
|
Development libraries and headers for libart-lgpl-tqt-trinity
|
|
%prep
|
|
%autosetup -n %{name}-%{version}
|
|
|
|
%define trinity_dir /opt/trinity
|
|
%define sysconfdir /etc/trinity
|
|
%build
|
|
cd ../
|
|
mkdir tqt.build
|
|
cd tqt.build
|
|
export PKG_CONFIG_PATH=%trinity_dir/lib64/pkgconfig
|
|
cmake \
|
|
-DQT_PREFIX_DIR=%{trinity_dir} \
|
|
-DMOC_EXECUTABLE=%{trinity_dir}/bin/tqmoc \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=%{buildroot}%{trinity_dir} -DMAN_INSTALL_DIR=%{buildroot}%{trinity_dir}/man \
|
|
-DBUILD_ALL="ON" \
|
|
-DQT_VERSION=3 \
|
|
-DPKG_CONFIG_PATH=%{trinity_dir}/lib64/pkgconfig \
|
|
../%{name}-%{version}/
|
|
export LD_LIBRARY_PATH=%{trinity_dir}/lib64:$LD_LIBRARY_PATH
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
cd ../tqt.build/
|
|
export LD_LIBRARY_PATH=%{trinity_dir}/lib64:$LD_LIBRARY_PATH
|
|
make install
|
|
|
|
export buildroot=%buildroot
|
|
sed -i "s#$buildroot##g" %buildroot%trinity_dir/lib/*.la
|
|
sed -i "s#$buildroot##g" %buildroot%trinity_dir/lib/pkgconfig/*.pc
|
|
%check
|
|
|
|
%files
|
|
%{trinity_dir}/lib/*
|
|
%{trinity_dir}/bin/*
|
|
%doc %{trinity_dir}/share/man/*
|
|
%files devel
|
|
%{trinity_dir}/lib/*
|
|
%{trinity_dir}/include/*
|
|
%{trinity_dir}/bin/*
|
|
%doc %{trinity_dir}/share/man/*
|
|
|
|
|
|
%changelog
|
|
%autochangelog
|
|
|