2015-05-06 22:35:32 +02:00
|
|
|
%define majver %(echo %version | cut -d. -f1-2)
|
|
|
|
|
|
|
|
Name: @pck_name@
|
|
|
|
Version: @pck_version@
|
|
|
|
Release: @spec_first_release@@DISTRO_rpm@
|
|
|
|
Summary: KDE Frameworks 5 ...
|
|
|
|
Group: ...
|
|
|
|
Vendor: @VENDOR@
|
|
|
|
Distribution: @DISTRO@
|
|
|
|
Packager: @packager_fullname@ <@packager_email@>
|
2021-05-19 19:55:23 +02:00
|
|
|
URL: https://kde.org
|
2015-05-06 22:35:32 +02:00
|
|
|
Source: ...
|
2021-05-19 19:55:23 +02:00
|
|
|
# Source: https://download.kde.org/stable/frameworks/%{majver}/...-%{version}.tar.xz
|
2015-05-06 22:35:32 +02:00
|
|
|
License: ...
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## note: run 'autospec -u -a6 @pck_name@' to get the list of build requirements.
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: rpm-macros-kde5
|
|
|
|
BuildRequires: extra-cmake-modules
|
2015-09-26 15:07:31 +02:00
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
2015-05-06 22:35:32 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
...
|
|
|
|
|
2015-09-26 15:07:31 +02:00
|
|
|
## remove the library block if this package does not provide library and development stuff
|
|
|
|
%package -n lib%{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Shared libraries for %{name}
|
|
|
|
|
|
|
|
%description -n lib%{name}
|
|
|
|
This package contains shared libraries for %{name}.
|
|
|
|
|
|
|
|
%package -n lib%{name}-devel
|
2015-05-06 22:35:32 +02:00
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{name}
|
2015-09-26 15:07:31 +02:00
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
2015-05-06 22:35:32 +02:00
|
|
|
|
2015-09-26 15:07:31 +02:00
|
|
|
%description -n lib%{name}-devel
|
2015-05-06 22:35:32 +02:00
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
|
|
|
@if:debug_package
|
|
|
|
%debug_package
|
|
|
|
@fi:debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake_kde5 -d build
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall -C build
|
|
|
|
|
|
|
|
@if:i18n
|
2019-10-27 19:35:00 +01:00
|
|
|
%find_lang %{name}5_qt --with-qt --with-man --with-html --all-name || touch %{name}5_qt.lang
|
2015-05-06 22:35:32 +02:00
|
|
|
@fi:i18n
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2015-09-26 15:07:31 +02:00
|
|
|
%post -n lib%{name}
|
2015-05-06 22:35:32 +02:00
|
|
|
@if:shared_libraries
|
|
|
|
## remove the following line if no dynamic libraries are provided by this package
|
|
|
|
/sbin/ldconfig
|
|
|
|
@fi:shared_libraries
|
|
|
|
exit 0
|
|
|
|
|
2015-09-26 15:07:31 +02:00
|
|
|
%postun -n lib%{name}
|
2015-05-06 22:35:32 +02:00
|
|
|
@if:shared_libraries
|
|
|
|
## remove the following line if no dynamic libraries are provided by this package
|
|
|
|
/sbin/ldconfig
|
|
|
|
@fi:shared_libraries
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
@if:i18n
|
|
|
|
%files -f %{name}5_qt.lang
|
|
|
|
@else:i18n
|
|
|
|
%files
|
|
|
|
@fi:i18n
|
|
|
|
%defattr(-,root,root)
|
|
|
|
## note: this list is just an example; modify as required
|
|
|
|
# %{_kde5_bindir}/%{name}
|
|
|
|
# %{_kde5_datadir}/%{name}
|
|
|
|
## note: "man3" pages normally goes to devel package if any
|
|
|
|
# %{_mandir}/man?/%{name}.*
|
|
|
|
@standard_docs@
|
|
|
|
## note: eventually add the remaining documents (if any)
|
|
|
|
# @standard_docs_devel@
|
|
|
|
|
2015-09-26 15:07:31 +02:00
|
|
|
## remove this block if the package does not provide library and development stuff
|
|
|
|
%files -n lib%{name}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
## note: this list is just an example; modify as required
|
|
|
|
# %{_kde5_libdir}/*.so
|
|
|
|
|
|
|
|
%files -n lib%{name}-devel
|
2015-05-06 22:35:32 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
## note: this list is just an example; modify as required
|
|
|
|
# %{_kde5_includedir}/<KF5Framework>
|
|
|
|
# %{_kde5_includedir}/%{name}_version.h
|
|
|
|
# %{_kde5_libdir}/cmake/<KF5Framework>
|
|
|
|
# %{_kde5_libdir}/*.so
|
|
|
|
# %{_kde5_mkspecsdir}/qt_*.pri
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* @spec_changelog_date@ @packager_fullname@ <@packager_email@> @pck_version@-@spec_first_release@@DISTRO_rpm@
|
|
|
|
- @spec_changelog_comment@
|