File: name.patch

package info (click to toggle)
qtop 2.3.4-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,976 kB
  • sloc: cpp: 40,477; makefile: 7
file content (109 lines) | stat: -rw-r--r-- 3,141 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
Description: Changes the name from 'Top' to 'qtop'.
Author: Hugo Lefeuvre
Forwarded: no
Last-Update: 2017-10-05
---
--- a/src/pixmaps.qrc	2017-10-05 21:59:11.922626832 +0200
+++ b/src/pixmaps.qrc	2017-10-05 21:59:11.918626838 +0200
@@ -1,6 +1,6 @@
 <!DOCTYPE RCC><RCC version="1.0">
   <qresource>
-    <file alias="Top.png">../Top.png</file>
+    <file alias="qtop.png">../Top.png</file>
     <file alias="icons/32x32/tab-new.png">../pixmaps/tab-new.png</file>
     <file alias="icons/32x32/media-playback-pause.png">../pixmaps/media-playback-pause.png</file>
     <file alias="icons/32x32/media-playback-start.png">../pixmaps/media-playback-start.png</file>
--- a/Top.desktop	2017-10-05 21:59:11.922626832 +0200
+++ b/Top.desktop	2017-10-05 21:59:11.918626838 +0200
@@ -1,9 +1,9 @@
 [Desktop Entry]
 GenericName=System Monitor
-Name=Top
+Name=qtop
 MimeType=application/x-ksysguard;
-Exec=Top
-Icon=Top
+Exec=qtop
+Icon=qtop
 Type=Application
 Terminal=false
 Categories=Qt;System;
--- a/Top.spec	2017-10-05 21:59:11.922626832 +0200
+++ b/Top.spec	2017-10-05 21:59:11.918626838 +0200
@@ -3,7 +3,7 @@
 %define prefix   /usr
 
 Summary: running processes control
-Name: Top
+Name: qtop
 Version: %{ver}
 Release: %{rel}
 License: GPL
@@ -31,5 +31,5 @@
 %files
 %defattr(-,root,root)
 %doc COPYING INSTALL
-%{prefix}/bin/Top
+%{prefix}/bin/qtop
 %changelog
--- a/Top.spec.cmake	2017-10-05 21:59:11.922626832 +0200
+++ b/Top.spec.cmake	2017-10-05 21:59:11.918626838 +0200
@@ -3,7 +3,7 @@
 %define prefix   /usr
 
 Summary: running processes control
-Name: Top
+Name: qtop
 Version: %{ver}
 Release: %{rel}
 License: GPL
@@ -31,5 +31,5 @@
 %files
 %defattr(-,root,root)
 %doc COPYING INSTALL
-%{prefix}/bin/Top
+%{prefix}/bin/qtop
 %changelog
--- a/CMakeLists.txt	2017-10-05 21:59:11.922626832 +0200
+++ b/CMakeLists.txt	2017-10-05 21:59:11.918626838 +0200
@@ -14,7 +14,7 @@
 setup_compiler_flags()
 
 ########### packages ###############
-set(CPACK_PACKAGE_NAME "Top")
+set(CPACK_PACKAGE_NAME "qtop")
 set(CPACK_PACKAGE_VENDOR "hugo.pereira@free.fr")
 set(CPACK_PACKAGE_VERSION "${TOP_VERSION}")
 set(CPACK_SOURCE_GENERATOR TGZ)
--- a/src/CMakeLists.txt	2017-10-05 21:59:11.922626832 +0200
+++ b/src/CMakeLists.txt	2017-10-05 21:59:21.958610452 +0200
@@ -76,21 +76,21 @@
 
 endif()
 
-add_application_icon(Top_SOURCES ${CMAKE_SOURCE_DIR}/Top)
-add_desktop_file(${CMAKE_SOURCE_DIR}/Top)
-ADD_UNIX_EXECUTABLE(Top
+add_application_icon(Top_SOURCES ${CMAKE_SOURCE_DIR}/qtop)
+add_desktop_file(${CMAKE_SOURCE_DIR}/qtop)
+ADD_UNIX_EXECUTABLE(qtop
   ${Top_SOURCES}
   ${Top_RESOURCES_RCC}
 )
 
-target_link_libraries(Top ${XCB_LIBRARIES})
-target_link_libraries(Top ${QT_LIBRARIES})
-target_link_libraries(Top base base-qt base-server)
+target_link_libraries(qtop ${XCB_LIBRARIES})
+target_link_libraries(qtop ${QT_LIBRARIES})
+target_link_libraries(qtop base base-qt base-server)
 
-install(TARGETS Top DESTINATION ${BIN_INSTALL_DIR})
+install(TARGETS qtop DESTINATION ${BIN_INSTALL_DIR})
 
 if(USE_QT5)
 
-  target_link_libraries(Top Qt5::Network Qt5::Widgets Qt5::Xml)
+  target_link_libraries(qtop Qt5::Network Qt5::Widgets Qt5::Xml)
 
 endif()