File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 363
363
%{_bindir }/%{name }-3
364
364
%{_bindir }/%{name }4
365
365
%exclude %{python3_sitelib }/%{name }/automatic
366
+ %{python3_sitelib }/%{name }-* .dist-info
366
367
%{python3_sitelib }/%{name }/
367
368
%dir %{py3pluginpath }
368
369
%dir %{py3pluginpath }/__pycache__
Original file line number Diff line number Diff line change @@ -3,6 +3,15 @@ INSTALL (FILES ${dnf_SRCS} DESTINATION ${PYTHON_INSTALL_DIR}/dnf)
3
3
# const.py is generated so the glob alone won't see it:
4
4
INSTALL (FILES const.py DESTINATION ${PYTHON_INSTALL_DIR} /dnf)
5
5
6
+ # Generate dist-info metadata
7
+ SET (DISTINFO_PATH "${CMAKE_CURRENT_BINARY_DIR} /dnf-${DNF_VERSION} .dist-info" )
8
+ SET (METADATA_FILE "${DISTINFO_PATH} /METADATA" )
9
+ FILE (MAKE_DIRECTORY ${DISTINFO_PATH} )
10
+ FILE (WRITE ${METADATA_FILE} "Metadata-Version: 2.1\n " )
11
+ FILE (APPEND ${METADATA_FILE} "Name: dnf\n " )
12
+ FILE (APPEND ${METADATA_FILE} "Version: ${DNF_VERSION} \n " )
13
+ INSTALL (DIRECTORY ${DISTINFO_PATH} DESTINATION ${PYTHON_INSTALL_DIR} )
14
+
6
15
ADD_SUBDIRECTORY (automatic)
7
16
ADD_SUBDIRECTORY (cli)
8
17
ADD_SUBDIRECTORY (conf)
You can’t perform that action at this time.
0 commit comments