init package
This commit is contained in:
parent
3a022033dd
commit
2948ff809e
BIN
kdoctools-5.55.0.tar.xz
Normal file
BIN
kdoctools-5.55.0.tar.xz
Normal file
Binary file not shown.
103
kf5-kdoctools.spec
Normal file
103
kf5-kdoctools.spec
Normal file
@ -0,0 +1,103 @@
|
||||
%global framework kdoctools
|
||||
|
||||
Name: kf5-%{framework}
|
||||
Version: 5.55.0
|
||||
Release: 1%{?dist}
|
||||
Summary: KDE Frameworks 5 Tier 2 addon for generating documentation
|
||||
|
||||
License: GPLv2+ and MIT
|
||||
URL: https://cgit.kde.org/%{framework}.git
|
||||
|
||||
%global majmin %(echo %{version} | cut -d. -f1-2)
|
||||
%global revision %(echo %{version} | cut -d. -f3)
|
||||
%if %{revision} >= 50
|
||||
%global stable unstable
|
||||
%else
|
||||
%global stable stable
|
||||
%endif
|
||||
Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz
|
||||
|
||||
BuildRequires: docbook-dtds
|
||||
BuildRequires: docbook-style-xsl
|
||||
|
||||
BuildRequires: kf5-rpm-macros
|
||||
BuildRequires: extra-cmake-modules >= %{majmin}
|
||||
BuildRequires: kf5-karchive-devel >= %{majmin}
|
||||
BuildRequires: kf5-ki18n-devel >= %{majmin}
|
||||
|
||||
BuildRequires: libxml2-devel
|
||||
BuildRequires: libxslt-devel
|
||||
#%if 0%{?fedora} || 0%{?rhel} > 7
|
||||
#%global _with_html --with-html
|
||||
BuildRequires: perl-generators
|
||||
#BuildRequires: perl(Any::URI::Escape)
|
||||
#%else
|
||||
BuildRequires: perl(URI::Escape)
|
||||
#%endif
|
||||
BuildRequires: qt5-qtbase-devel
|
||||
|
||||
Requires: docbook-dtds
|
||||
Requires: docbook-style-xsl
|
||||
|
||||
%description
|
||||
Provides tools to generate documentation in various format from DocBook files.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Provides: kf5-kdoctools-static = %{version}-%{release}
|
||||
Requires: qt5-qtbase-devel
|
||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||
Requires: perl(Any::URI::Escape)
|
||||
%else
|
||||
Requires: perl(URI::Escape)
|
||||
%endif
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{framework}-%{version} -p1
|
||||
|
||||
|
||||
%build
|
||||
mkdir %{_target_platform}
|
||||
pushd %{_target_platform}
|
||||
%{cmake_kf5} ..
|
||||
popd
|
||||
|
||||
%make_build -C %{_target_platform}
|
||||
|
||||
|
||||
%install
|
||||
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
||||
|
||||
%find_lang %{name} --all-name --with-man %{?_with_html}
|
||||
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files -f %{name}.lang
|
||||
%doc README.md
|
||||
%license COPYING.LIB
|
||||
%{_kf5_libdir}/libKF5DocTools.so.5*
|
||||
## FIXME/TODO: which of these to move to -devel -- rex
|
||||
%{_kf5_bindir}/checkXML5
|
||||
%{_kf5_bindir}/meinproc5
|
||||
%{_kf5_mandir}/man1/*.1*
|
||||
%{_kf5_mandir}/man7/*.7*
|
||||
%{_kf5_datadir}/kf5/kdoctools/
|
||||
%if !0%{?_with_html:1}
|
||||
%{_kf5_docdir}/HTML/*/kdoctools5-common/
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
%{_kf5_includedir}/KDocTools/
|
||||
%{_kf5_libdir}/libKF5DocTools.so
|
||||
%{_kf5_libdir}/cmake/KF5DocTools/
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Jul 23 2020 wangmian<wangmian@kylinos.cn> - 5.55.0-1
|
||||
- Init kf5-kdoctools project
|
||||
Loading…
x
Reference in New Issue
Block a user