Commit 28a476679d8e63bfa19096af8888069a0a15cf44

Authored by Silvan Calarco
1 parent 305f5ff3c6
Exists in master

templates/kde5: (not very recent) updates to template

Showing 1 changed file with 21 additions and 21 deletions Side-by-side Diff

... ... @@ -18,30 +18,26 @@
18 18 BuildRequires: cmake
19 19 BuildRequires: rpm-macros-kde5
20 20 BuildRequires: extra-cmake-modules
21   -## note: this list is just an example; modify as required
22   -# BuildRequires: libQt5Core
23   -# BuildRequires: libQt5Concurrent
24   -# BuildRequires: libQt5DBus
25   -# BuildRequires: libQt5Gui
26   -# BuildRequires: libQt5Network
27   -# BuildRequires: libQt5Script
28   -# BuildRequires: libQt5Svg
29   -# BuildRequires: libQt5Test
30   -# BuildRequires: libQt5Widgets
31   -# BuildRequires: libQt5X11Extras
32   -# BuildRequires: libQt5Xml
  21 +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
33 22 BuildRoot: @rpm_default_buildroot@
34 23  
35 24 %description
36 25 ...
37 26  
38   -## remove the devel blocks if this package does not provide development stuff
39   -%package devel
  27 +## remove the library block if this package does not provide library and development stuff
  28 +%package -n lib%{name}
  29 +Group: System/Libraries
  30 +Summary: Shared libraries for %{name}
  31 +
  32 +%description -n lib%{name}
  33 +This package contains shared libraries for %{name}.
  34 +
  35 +%package -n lib%{name}-devel
40 36 Group: Development/Libraries
41 37 Summary: Development files for %{name}
42   -Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
  38 +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
43 39  
44   -%description devel
  40 +%description -n lib%{name}-devel
45 41 This package contains libraries and header files for developing applications that use %{name}.
46 42  
47 43 @if:debug_package
48 44  
... ... @@ -66,14 +62,14 @@
66 62 %clean
67 63 [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
68 64  
69   -%post
  65 +%post -n lib%{name}
70 66 @if:shared_libraries
71 67 ## remove the following line if no dynamic libraries are provided by this package
72 68 /sbin/ldconfig
73 69 @fi:shared_libraries
74 70 exit 0
75 71  
76   -%postun
  72 +%postun -n lib%{name}
77 73 @if:shared_libraries
78 74 ## remove the following line if no dynamic libraries are provided by this package
79 75 /sbin/ldconfig
80 76  
... ... @@ -89,15 +85,19 @@
89 85 ## note: this list is just an example; modify as required
90 86 # %{_kde5_bindir}/%{name}
91 87 # %{_kde5_datadir}/%{name}
92   -# %{_kde5_libdir}/*.so
93 88 ## note: "man3" pages normally goes to devel package if any
94 89 # %{_mandir}/man?/%{name}.*
95 90 @standard_docs@
96 91 ## note: eventually add the remaining documents (if any)
97 92 # @standard_docs_devel@
98 93  
99   -## remove this block if the package does not provide development stuff
100   -%files devel
  94 +## remove this block if the package does not provide library and development stuff
  95 +%files -n lib%{name}
  96 +%defattr(-,root,root)
  97 +## note: this list is just an example; modify as required
  98 +# %{_kde5_libdir}/*.so
  99 +
  100 +%files -n lib%{name}-devel
101 101 %defattr(-,root,root)
102 102 ## note: this list is just an example; modify as required
103 103 # %{_kde5_includedir}/<KF5Framework>