X7ROOT File Manager
Current Path:
/lib/rpm
lib
/
rpm
/
π
..
π
alt-nodejs18-fixdep
(3.49 KB)
π
alt-nodejs18-provide.sh
(70 B)
π
alt-nodejs18-require.sh
(69 B)
π
alt-nodejs18-symlink-deps
(5.23 KB)
π
alt-nodejs18.prov
(1.93 KB)
π
alt-nodejs18.req
(6.76 KB)
π
alt-nodejs18_native.req
(40 B)
π
alt-nodejs20-fixdep
(3.48 KB)
π
alt-nodejs20-provide.sh
(70 B)
π
alt-nodejs20-require.sh
(69 B)
π
alt-nodejs20-symlink-deps
(5.22 KB)
π
alt-nodejs20.prov
(1.92 KB)
π
alt-nodejs20.req
(6.75 KB)
π
alt-nodejs20_native.req
(40 B)
π
alt-nodejs22-fixdep
(3.49 KB)
π
alt-nodejs22-provide.sh
(70 B)
π
alt-nodejs22-require.sh
(69 B)
π
alt-nodejs22-symlink-deps
(5.23 KB)
π
alt-nodejs22.prov
(1.93 KB)
π
alt-nodejs22.req
(6.76 KB)
π
alt-nodejs22_native.req
(40 B)
π
alt-nodejs24-fixdep
(3.49 KB)
π
alt-nodejs24-provide.sh
(70 B)
π
alt-nodejs24-require.sh
(69 B)
π
alt-nodejs24-symlink-deps
(5.23 KB)
π
alt-nodejs24.prov
(1.93 KB)
π
alt-nodejs24.req
(6.76 KB)
π
alt-nodejs24_native.req
(39 B)
π
brp-compress
(1.47 KB)
π
brp-java-gcjcompile
(1.38 KB)
π
brp-python-bytecompile
(3.78 KB)
π
brp-python-hardlink
(632 B)
π
brp-scl-compress
(1.77 KB)
π
brp-scl-python-bytecompile
(3.04 KB)
π
brp-strip
(428 B)
π
brp-strip-comment-note
(741 B)
π
brp-strip-shared
(706 B)
π
brp-strip-static-archive
(494 B)
π
check-buildroot
(1.25 KB)
π
check-files
(1.02 KB)
π
check-prereqs
(418 B)
π
check-rpaths
(1.01 KB)
π
check-rpaths-worker
(4.94 KB)
π
cmake.prov
(2.93 KB)
π
cmake.req
(2.3 KB)
π
config.guess
(43.13 KB)
π
config.sub
(35.55 KB)
π
debugedit
(46.57 KB)
π
debuginfo.prov
(375 B)
π
desktop-file.prov
(602 B)
π
elfdeps
(16.38 KB)
π
fileattrs
π
find-debuginfo.sh
(19.58 KB)
π
find-lang.sh
(8.04 KB)
π
find-provides
(91 B)
π
find-requires
(91 B)
π
fontconfig.prov
(489 B)
π
gstreamer1.prov
(954 B)
π
kabi.sh
(468 B)
π
kmod.prov
(682 B)
π
libtooldeps.sh
(718 B)
π
macros
(42.96 KB)
π
macros.d
π
macros.perl
(473 B)
π
macros.php
(192 B)
π
macros.python
(906 B)
π
metainfo.prov
(438 B)
π
mkinstalldirs
(3.46 KB)
π
mono-find-provides
(1.08 KB)
π
mono-find-requires
(1.87 KB)
π
ocaml-find-provides.sh
(1.62 KB)
π
ocaml-find-requires.sh
(2.08 KB)
π
pkgconfigdeps.sh
(1.34 KB)
π
platform
π
python-macro-helper
(634 B)
π
pythondeps.sh
(921 B)
π
pythondistdeps.py
(10.92 KB)
π
redhat
π
rpm.daily
(296 B)
π
rpm.log
(61 B)
π
rpm.supp
(688 B)
π
rpm2cpio.sh
(1.22 KB)
π
rpmdb_dump
(0 B)
π
rpmdb_load
(0 B)
π
rpmdb_loadcvt
(1.43 KB)
π
rpmdb_recover
(0 B)
π
rpmdb_stat
(0 B)
π
rpmdb_upgrade
(0 B)
π
rpmdb_verify
(0 B)
π
rpmdeps
(16.94 KB)
π
rpmpopt-4.14.3
(11.2 KB)
π
rpmrc
(16.75 KB)
π
scldeps.sh
(254 B)
π
script.req
(322 B)
π
sepdebugcrcfix
(15.85 KB)
π
tgpg
(929 B)
Editing: cmake.prov
#!/usr/libexec/platform-python # -*- coding:utf-8 -*- # # Copyright (C) 2015 Daniel VrΓ‘til <dvratil@redhat.com> # Copyright (C) 2017 Daniel VrΓ‘til <dvratil@fedoraproject.org> # # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Library General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the # Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # import sys import re import glob class CMakeParser: def __init__(self, filelist = None): if filelist == None: filelist = sys.stdin paths = map(lambda x: x.rstrip(), filelist.readlines()) for path in paths: modulePath, cmakeModule, lowercase = self.parseCmakeModuleConfig(path) if modulePath and cmakeModule: version = self.resolveCMakeModuleVersion(modulePath, cmakeModule, lowercase) if version: string = "cmake(" + cmakeModule + ") = " + version else: string = "cmake(" + cmakeModule + ")" if string == string.lower(): print(string) else: # Temporarily print both variants to satisfy requires # by the old version of this generator which made mistakes print(string) print(string.lower()) def parseCmakeModuleConfig(self, configFile): paths = configFile.rsplit("/", 3) modulePath = "%s/cmake/%s" % (paths[0], paths[2]) cfgFile = paths[3] if cfgFile.endswith("Config.cmake"): return (modulePath, cfgFile[0:-len("Config.cmake")], False) elif cfgFile.endswith("-config.cmake"): return (modulePath, cfgFile[0:-len("-config.cmake")], True) else: return (None, None, False) def resolveCMakeModuleVersion(self, modulePath, cmakeModule, lowercase): versionFile = ("%s/%s-config-version.cmake" if lowercase else "%s/%sConfigVersion.cmake") % (modulePath, cmakeModule) try: f = open(versionFile, 'r') except: return None for line in f: line = line.strip() # set(PACKAGE_VERSION <version>) version = re.match(r"^set[\ ]*\([\ ]*PACKAGE_VERSION[\ ]+[\"]*([0-9\.]+)[\"]*[\ ]*[.]*\)", line) if version: return version.groups(1)[0] return None if __name__ == "__main__": parser = CMakeParser()
Upload File
Create Folder