|
|
@ -4,13 +4,17 @@
|
|
|
|
Name: grantlee-qt5
|
|
|
|
Name: grantlee-qt5
|
|
|
|
Summary: Qt5 string template engine based on the Django template system
|
|
|
|
Summary: Qt5 string template engine based on the Django template system
|
|
|
|
Version: 5.1.0
|
|
|
|
Version: 5.1.0
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
|
|
|
|
|
|
|
License: LGPLv2+
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: https://github.com/steveire/grantlee
|
|
|
|
URL: https://github.com/steveire/grantlee
|
|
|
|
Source0: http://downloads.grantlee.org/grantlee-%{version}%{?pre:-%{pre}}.tar.gz
|
|
|
|
Source0: http://downloads.grantlee.org/grantlee-%{version}%{?pre:-%{pre}}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
%global majmin_ver %(echo %{version} | cut -d. -f1,2)
|
|
|
|
%global rpm_macros_dir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
|
|
|
|
|
|
|
|
Source1: macros.grantlee5
|
|
|
|
|
|
|
|
%global grantlee5_plugins 5.1
|
|
|
|
|
|
|
|
%global grantlee5_plugindir %{_libdir}/grantlee/%{grantlee5_plugins}/
|
|
|
|
|
|
|
|
Provides: %{name}(%{grantlee5_plugins}) = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
## upstreamable patches
|
|
|
|
## upstreamable patches
|
|
|
|
# Install headers into a versioned directory to be parallel-installable
|
|
|
|
# Install headers into a versioned directory to be parallel-installable
|
|
|
@ -22,7 +26,6 @@ BuildRequires: cmake >= 2.8.12
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
BuildRequires: pkgconfig(Qt5Script)
|
|
|
|
BuildRequires: pkgconfig(Qt5Script)
|
|
|
|
BuildRequires: pkgconfig(Qt5Test)
|
|
|
|
BuildRequires: pkgconfig(Qt5Test)
|
|
|
|
# qt5-linguist, when ready
|
|
|
|
|
|
|
|
BuildRequires: qt5-linguist
|
|
|
|
BuildRequires: qt5-linguist
|
|
|
|
%if 0%{?apidocs}
|
|
|
|
%if 0%{?apidocs}
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: doxygen
|
|
|
@ -51,7 +54,6 @@ how to write templates, see the documentation.
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: cmake
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
developing applications that use %{name}.
|
|
|
@ -91,6 +93,18 @@ mkdir -p %{buildroot}%{_docdir}/HTML/en/Grantlee5/
|
|
|
|
cp -prf %{_target_platform}/apidox/* %{buildroot}%{_docdir}/HTML/en/Grantlee5/
|
|
|
|
cp -prf %{_target_platform}/apidox/* %{buildroot}%{_docdir}/HTML/en/Grantlee5/
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# rpm macros
|
|
|
|
|
|
|
|
install -p -m644 -D %{SOURCE1} \
|
|
|
|
|
|
|
|
%{buildroot}%{rpm_macros_dir}/macros.grantlee5
|
|
|
|
|
|
|
|
sed -i \
|
|
|
|
|
|
|
|
-e "s|@@NAME@@|%{name}|g" \
|
|
|
|
|
|
|
|
-e "s|@@EPOCH@@|%{?epoch}%{!?epoch:0}|g" \
|
|
|
|
|
|
|
|
-e "s|@@VERSION@@|%{version}|g" \
|
|
|
|
|
|
|
|
-e "s|@@EVR@@|%{?epoch:%{epoch:}}%{version}-%{release}|g" \
|
|
|
|
|
|
|
|
-e "s|@@GRANTLEE5_PLUGINS@@|%{grantlee5_plugins}|g" \
|
|
|
|
|
|
|
|
-e "s|@@GRANTLEE5_PLUGINDIR@@|%{grantlee5_plugindir}|g" \
|
|
|
|
|
|
|
|
%{buildroot}%{rpm_macros_dir}/macros.grantlee5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
export CTEST_OUTPUT_ON_FAILURE=1
|
|
|
|
export CTEST_OUTPUT_ON_FAILURE=1
|
|
|
@ -106,13 +120,15 @@ xvfb-run -a make test -C %{_target_platform} ||:
|
|
|
|
%{_libdir}/libGrantlee_Templates.so.5*
|
|
|
|
%{_libdir}/libGrantlee_Templates.so.5*
|
|
|
|
%{_libdir}/libGrantlee_TextDocument.so.5*
|
|
|
|
%{_libdir}/libGrantlee_TextDocument.so.5*
|
|
|
|
%dir %{_libdir}/grantlee/
|
|
|
|
%dir %{_libdir}/grantlee/
|
|
|
|
%{_libdir}/grantlee/%{majmin_ver}/
|
|
|
|
%{grantlee5_plugindir}/
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/Grantlee5/
|
|
|
|
%{_includedir}/Grantlee5/
|
|
|
|
%{_libdir}/libGrantlee_Templates.so
|
|
|
|
%{_libdir}/libGrantlee_Templates.so
|
|
|
|
%{_libdir}/libGrantlee_TextDocument.so
|
|
|
|
%{_libdir}/libGrantlee_TextDocument.so
|
|
|
|
|
|
|
|
%dir %{_libdir}/cmake/
|
|
|
|
%{_libdir}/cmake/Grantlee5/
|
|
|
|
%{_libdir}/cmake/Grantlee5/
|
|
|
|
|
|
|
|
%{rpm_macros_dir}/macros.grantlee5
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?apidocs}
|
|
|
|
%if 0%{?apidocs}
|
|
|
|
%files apidocs
|
|
|
|
%files apidocs
|
|
|
@ -121,6 +137,9 @@ xvfb-run -a make test -C %{_target_platform} ||:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed Aug 17 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.1.0-2
|
|
|
|
|
|
|
|
- macros.grantlee5: notably, %%{grantlee5_plugindir} %%{grantlee5_requires}
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Apr 19 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.1.0-1
|
|
|
|
* Tue Apr 19 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.1.0-1
|
|
|
|
- grantlee-5.1.0
|
|
|
|
- grantlee-5.1.0
|
|
|
|
|
|
|
|
|
|
|
|