templates/kde5: (not very recent) updates to template
This commit is contained in:
parent
305f5ff3c6
commit
28a476679d
@ -18,30 +18,26 @@ License: ...
|
|||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: rpm-macros-kde5
|
BuildRequires: rpm-macros-kde5
|
||||||
BuildRequires: extra-cmake-modules
|
BuildRequires: extra-cmake-modules
|
||||||
## note: this list is just an example; modify as required
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
# BuildRequires: libQt5Core
|
|
||||||
# BuildRequires: libQt5Concurrent
|
|
||||||
# BuildRequires: libQt5DBus
|
|
||||||
# BuildRequires: libQt5Gui
|
|
||||||
# BuildRequires: libQt5Network
|
|
||||||
# BuildRequires: libQt5Script
|
|
||||||
# BuildRequires: libQt5Svg
|
|
||||||
# BuildRequires: libQt5Test
|
|
||||||
# BuildRequires: libQt5Widgets
|
|
||||||
# BuildRequires: libQt5X11Extras
|
|
||||||
# BuildRequires: libQt5Xml
|
|
||||||
BuildRoot: @rpm_default_buildroot@
|
BuildRoot: @rpm_default_buildroot@
|
||||||
|
|
||||||
%description
|
%description
|
||||||
...
|
...
|
||||||
|
|
||||||
## remove the devel blocks if this package does not provide development stuff
|
## remove the library block if this package does not provide library and development stuff
|
||||||
%package devel
|
%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
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description -n lib%{name}-devel
|
||||||
This package contains libraries and header files for developing applications that use %{name}.
|
This package contains libraries and header files for developing applications that use %{name}.
|
||||||
|
|
||||||
@if:debug_package
|
@if:debug_package
|
||||||
@ -66,14 +62,14 @@ This package contains libraries and header files for developing applications tha
|
|||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
%post
|
%post -n lib%{name}
|
||||||
@if:shared_libraries
|
@if:shared_libraries
|
||||||
## remove the following line if no dynamic libraries are provided by this package
|
## remove the following line if no dynamic libraries are provided by this package
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
@fi:shared_libraries
|
@fi:shared_libraries
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%postun
|
%postun -n lib%{name}
|
||||||
@if:shared_libraries
|
@if:shared_libraries
|
||||||
## remove the following line if no dynamic libraries are provided by this package
|
## remove the following line if no dynamic libraries are provided by this package
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
@ -89,15 +85,19 @@ exit 0
|
|||||||
## note: this list is just an example; modify as required
|
## note: this list is just an example; modify as required
|
||||||
# %{_kde5_bindir}/%{name}
|
# %{_kde5_bindir}/%{name}
|
||||||
# %{_kde5_datadir}/%{name}
|
# %{_kde5_datadir}/%{name}
|
||||||
# %{_kde5_libdir}/*.so
|
|
||||||
## note: "man3" pages normally goes to devel package if any
|
## note: "man3" pages normally goes to devel package if any
|
||||||
# %{_mandir}/man?/%{name}.*
|
# %{_mandir}/man?/%{name}.*
|
||||||
@standard_docs@
|
@standard_docs@
|
||||||
## note: eventually add the remaining documents (if any)
|
## note: eventually add the remaining documents (if any)
|
||||||
# @standard_docs_devel@
|
# @standard_docs_devel@
|
||||||
|
|
||||||
## remove this block if the package does not provide development stuff
|
## remove this block if the package does not provide library and development stuff
|
||||||
%files devel
|
%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
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
## note: this list is just an example; modify as required
|
## note: this list is just an example; modify as required
|
||||||
# %{_kde5_includedir}/<KF5Framework>
|
# %{_kde5_includedir}/<KF5Framework>
|
||||||
|
Loading…
Reference in New Issue
Block a user