Skip to content

Instantly share code, notes, and snippets.

@ctaggart
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ctaggart/1c1625244ad1e4c1400c to your computer and use it in GitHub Desktop.
Save ctaggart/1c1625244ad1e4c1400c to your computer and use it in GitHub Desktop.
read rpm
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
compile 'org.redline-rpm:redline:1.1.16'
//compile 'ch.qos.logback:logback-classic:1.1.2'
compile 'org.slf4j:slf4j-nop:1.7.7'
}
task copyJars(type:Copy){
def deps = configurations.compile.incoming.dependencies
from(configurations.detachedConfiguration(deps as Dependency[]).resolvedConfiguration.
resolvedConfiguration.lenientConfiguration.getFiles(Specs.SATISFIES_ALL))
into("lib")
}
IKVM.NET Compiler version 7.4.5196.0
Copyright (C) 2002-2014 Jeroen Frijters
http://www.ikvm.net/
Usage: ikvmc [-options] <classOrJar1> ... <classOrJarN>
Compiler Options:
- OUTPUT FILES -
-out:<outputfile> Specify the output filename
-assembly:<name> Specify assembly name
-version:<M.m.b.r> Specify assembly version
-target:exe Build a console executable
-target:winexe Build a windows executable
-target:library Build a library
-target:module Build a module for use by the linker
-platform:<string> Limit which platforms this code can run on:
x86, x64, arm, anycpu32bitpreferred, or
anycpu. The default is anycpu.
-keyfile:<keyfilename> Use keyfile to sign the assembly
-key:<keycontainer> Use keycontainer to sign the assembly
-delaysign Delay-sign the assembly
- INPUT FILES -
-reference:<filespec> Reference an assembly (short form -r:<filespec>)
-recurse:<filespec> Recurse directory and include matching files
-exclude:<filename> A file containing a list of classes to exclude
- RESOURCES -
-fileversion:<version> File version
-win32icon:<file> Embed specified icon in output
-win32manifest:<file> Specify a Win32 manifest file (.xml)
-resource:<name>=<path> Include file as Java resource
-externalresource:<name>=<path>
Reference file as Java resource
-compressresources Compress resources
- CODE GENERATION -
-debug Generate debug info for the output file
(Note that this also causes the compiler to
generated somewhat less efficient CIL code.)
-noautoserialization Disable automatic .NET serialization support
-noglobbing Don't glob the arguments passed to main
-nojni Do not generate JNI stub for native methods
-opt:fields Remove unused private fields
-removeassertions Remove all assert statements
-strictfinalfieldsemantics Don't allow final fields to be modified outside
of initializer methods
- ERRORS AND WARNINGS -
-nowarn:<warning[:key]> Suppress specified warnings
-warnaserror Treat all warnings as errors
-warnaserror:<warning[:key]> Treat specified warnings as errors
-writeSuppressWarningsFile:<file>
Write response file with -nowarn:<warning[:key]>
options to suppress all encountered warnings
- MISCELLANEOUS -
@<filename> Read more options from file
-help Display this usage message (Short form: -?)
-nologo Suppress compiler copyright message
- ADVANCED -
-main:<class> Specify the class containing the main method
-srcpath:<path> Prepend path and package name to source file
-apartment:sta (default) Apply STAThreadAttribute to main
-apartment:mta Apply MTAThreadAttribute to main
-apartment:none Don't apply STAThreadAttribute to main
-D<name>=<value> Set system property (at runtime)
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
Set system property to enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
Set system property to disable assertions
-nostacktraceinfo Don't create metadata to emit rich stack traces
-Xtrace:<string> Displays all tracepoints with the given name
-Xmethodtrace:<string> Build tracing into the specified output methods
-privatepackage:<prefix> Mark all classes with a package name starting
with <prefix> as internal to the assembly
-time Display timing statistics
-classloader:<class> Set custom class loader class for assembly
-sharedclassloader All targets below this level share a common
class loader
-baseaddress:<address> Base address for the library to be built
-filealign:<n> Specify the alignment used for output file
-nopeercrossreference Do not automatically cross reference all peers
-nostdlib Do not reference standard libraries
-lib:<dir> Additional directories to search for references
-highentropyva Enable high entropy ASLR
-static Disable dynamic binding
ikvmc -target:library -out:bcprov-jdk15on.dll -version:1.50 bcprov-jdk15on-1.50.jar
ikvmc -target:library -r:bcprov-jdk15on.dll -out:bcpg-jdk15on.dll -version:1.50 bcpg-jdk15on-1.50.jar
ikvmc -target:library -r:bcprov-jdk15on.dll -r:bcpg-jdk15on.dll -out:xz.dll -version:1.4 xz-1.4.jar
ikvmc -target:library -r:bcprov-jdk15on.dll -r:bcpg-jdk15on.dll -r:xz.dll -out:commons-compress.dll -version:1.6 commons-compress-1.6.jar
ikvmc -target:library -out:slf4j-api.dll -version:1.7.7 slf4j-api-1.7.7.jar
ikvmc -target:library -out:ant-launcher.dll -version:1.9.1 ant-launcher-1.9.1.jar
ikvmc -target:library -r:ant-launcher.dll -out:ant.dll -version:1.9.1 ant-1.9.1.jar
ikvmc -target:library -r:bcprov-jdk15on.dll -r:bcpg-jdk15on.dll -r:xz.dll -r:commons-compress.dll -r:slf4j-api.dll -r:ant-launcher.dll -r:ant.dll -out:redline.dll -version:1.1.16 redline-1.1.16.jar
REM ikvmc -target:library -r:slf4j-api.dll -out:logback-core.dll -version:1.1.2 logback-core-1.1.2.jar
REM ikvmc -target:library -r:slf4j-api.dll -r:logback-core.dll -out:logback-classic.dll -version:1.1.2 logback-classic-1.1.2.jar
ikvmc -target:library -r:slf4j-api.dll -out:slf4j-nop.dll -version:1.7.7 slf4j-nop-1.7.7.jar
Lead Name: mono-devel-3.2.3-0
Lead Arch: I386
Name: mono-devel
Version: 3.2.3
Release: 0
Summary: Mono development tools
Signature:
name [|4879710|]
summary [|14uy; 160uy; 255uy; 51uy; 152uy; 220uy; 54uy; 138uy; 98uy; 240uy; 18uy; 19uy;
15uy; 10uy; 251uy; 219uy|]
buildhost [|25307852|]
Header:
name [|"mono-devel"|]
version [|"3.2.3"|]
release [|"0"|]
summary [|"Mono development tools"|]
description [|"The Mono Project is an open development initiative that is working to
develop an open source, Unix version of the .NET development platform.
Its objective is to enable Unix developers to build and deploy
cross-platform .NET applications. This package contains compilers and
other tools needed to develop .NET applications.
Mono development tools."|]
buildtime [|1379202820|]
buildhost [|"linux-c2ev"|]
size [|25252873|]
license [|"LGPL v2.1 only"|]
group [|"Development/Languages/Mono"|]
url [|"http://www.mono-project.com"|]
os [|"linux"|]
arch [|"x86_64"|]
sourcerpm [|"mono-core-3.2.3-0.src.rpm"|]
fileverifyflags [|-1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1;
-1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1;
-1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1;
-1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1;
-1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1; -1;
...|]
rpmversion [|"4.10.2"|]
cookie [|"linux-c2ev 1379202820"|]
optflags [|"-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasync
payloadformat [|"cpio"|]
payloadcompressor [|"lzma"|]
payloadflags [|"5"|]
platform [|"x86_64-suse-linux"|]
sourcepkgid [|196uy; 113uy; 196uy; 135uy; 91uy; 210uy; 71uy; 18uy; 195uy; 162uy; 244uy; 84uy;
3uy; 143uy; 79uy; 148uy|]
headerimmutable [|0uy; 0uy; 0uy; 63uy; 0uy; 0uy; 0uy; 7uy; 255uy; 255uy; 253uy; 0uy; 0uy; 0uy;
0uy; 16uy|]
headeri18ntable [|"C"|]
postinprog [|"/sbin/ldconfig"|]
postunprog [|"/sbin/ldconfig"|]
filesizes [|77; 78; 80; 79; 78; 78; 76; 78; 76; 81; 73; 78; 89; 80; 79; 84; 85; 1666; 4877;
11148; 85; 83; 901247; 447365; 81; 76; 76; 201988; 78; 9835097; 79; 79; 77; 77;
78; 75; 79; 77; 4096; 39525; 23010; 4096; 85166; 22843; 82; 88; 80; 88; 2305;
5359; 32528; 5367; 5793; 74; 48; 4096; 354; 288256; 65779; 425472; 194270;
80384; 23826; 28160; 6438; 21504; 3494; 59904; 12313; 142; 4096; 85166; 22843;
82; 88; 90; 98; 2305; 5359; 32940; 5527; 5793; 59904; 12313; 142; 4096; 85166;
22843; 228864; 25088; 188416; 51712; 77824; 2305; 5359; 40911; 5709; 1522;
5793; 142336; ...|]
filemodes [|-32275s; -32275s; -32275s; -32275s; -32275s; -32275s; -32275s; -32275s;
-32275s; -32275s; -32275s; -32275s; -32275s; -32275s; -32275s; -32275s;
-32275s; -32275s; -32275s; -32275s; -32275s; -32275s; -32275s; -32275s;
-32275s; -32275s; -32275s; -32275s; -32275s; -32275s; -32275s; -32275s;
-32275s; -32275s; -32275s; -32275s; -32275s; -32275s; 16877s; -32348s; -32348s;
16877s; -32348s; -32348s; -24065s; -24065s; -24065s; -24065s; -32348s; -32348s;
-32348s; -32348s; -32348s; -24065s; -24065s; -32275s; -32275s; -32275s;
-32275s; -32275s; -32275s; -32275s; -32275s; -32275s; -32275s; -32275s;
-32275s; -32275s; -32275s; -32348s; 16877s; -32348s; -32348s; -24065s; -24065s;
-24065s; -24065s; -32348s; -32348s; -32348s; -32348s; -32348s; -32275s;
-32275s; -32348s; 16877s; -32348s; -32348s; -32275s; -32275s; -32275s; -32275s;
-32275s; -32348s; -32348s; -32348s; -32348s; -32348s; -32348s; -32275s; ...|]
filerdevs [|0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s;
0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s;
0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s;
0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s;
0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s; 0s;
...|]
filemtimes [|1379202746; 1379202746; 1379202746; 1379202746; 1379202746; 1379202746;
1379202746; 1379202746; 1379202746; 1379202746; 1379202746; 1379202746;
1379202746; 1379202746; 1379202746; 1379202746; 1379202746; 1379202746;
1379202746; 1379202746; 1379202746; 1379202746; 1379202538; 1379202542;
1379202746; 1379202746; 1379202746; 1379202546; 1379202746; 1379202520;
1379202746; 1379202746; 1379202746; 1379202746; 1379202746; 1379202746;
1379202746; 1379202746; 1379202742; 1379202712; 1379202742; 1379202628;
1379202628; 1379202628; 1379202606; 1379202605; 1379202607; 1379202606;
1379202628; 1379202628; 1379202742; 1379202628; 1379202628; 1379202605;
1379202599; 1379202627; 1379202627; 1379202626; 1379202626; 1379202627;
1379202627; 1379202626; 1379202626; 1379202627; 1379202627; 1379202627;
1379202627; 1379202628; 1379202628; 1379202628; 1379202755; 1379202628;
1379202628; 1379202629; 1379202628; 1379202629; 1379202628; 1379202628;
1379202628; 1379202742; 1379202629; 1379202628; 1379202629; 1379202629;
1379202628; 1379202755; 1379202628; 1379202628; 1379202651; 1379202651;
1379202651; 1379202651; 1379202658; 1379202628; 1379202628; 1379202742;
1379202742; 1379202742; 1379202628; 1379202651; ...|]
filemd5s [|"b9d54a386439dacc4e254e73368a0b86"; "f5db788094bd9a60fdb2f327669ad3ed";
"86d7d95ff0b3d37e66300e765baf2cf6"; "44aa56fae3dc4cebf5551624f37125a3";
"06864c8b0b25700ade4bba194dbb9b3a"; "192aa53203f93a80967c369e5c57857c";
"6d6bda325a52b4ad92cab56f02127c33"; "8eaee3469d9c187ce1ce2af10b67c1ec";
"f38e18451139376564e6f4cbbfa09b33"; "107dce002521ce622af1667683fe8261";
"10a9a7ea238b1beb938a9d1a71c884f4"; "5dc039cf406d40982e0b669460d57ee3";
"dd71501d7ee73944ae844ba9acaa03c3"; "7ea17ec75d305a7c04d13a70ff008bfd";
"f4f04c023a9681ae73b83dc5a034c151"; "4a93533e81170228136a1c8d86a1c284";
"c60e2a60ed3f9e73b5a0038a7c6f6b58"; "aeff8b86f98bb2d1cea4d86fa873724f";
"ae2221c17b6a48c4f45afe9eacd73797"; "53f5ecd71d5f1c855445a590090603cf";
"ac98437cc3f324ffc12fb35635e2c3cd"; "da94a09b65caa96436568255770312ce";
"dde1212cab344ba497ad6cadc4e1adf9"; "24e3f7cc53a1a14e80c9133ab69e10b5";
"cff05ad6ed98942a8597a896cfd6dcd0"; "4462d745cd2681a1130aa5959c7bda43";
"72a051345c1653408189ed7ffbe41895"; "3cfc658aa7be0e625c292fe1996aeebc";
"87b3702648a18c9f1bbadefbd5467712"; "99bc6a6d48e4170590958420700e8022";
"a5ae4a4e51b01c64cdfacbae8d2d01d9"; "30a8365e342fc15c7206bb3d3915c72d";
"62ceee31fd0af96437d7d5a1a0261dc1"; "719485bc862c516caa56d56b87e7fb55";
"3b33667e7cdec9a4bcaa8d17c46ecde9"; "a1c0db690ca8523de40683ff26ddb14a";
"d00e88057dfe4d405ff9bc872c7c6ac8"; "bd657d733c9108a8a96cf4bb9478056a"; "";
"1a8153a9b8ed6d6867ec50a8b1923b59"; "d955043cd5e8a0bf0f4ce2d7f555536a"; "";
"52f82d656fc41b814ae9e26072ec5ca4"; "7063df54209d27f07980d51b7101de33"; ""; "";
""; ""; "58e524e4619c1cbdd5083dbf773c8a6d"; "8749db487ab00c8680466c77094086bb";
"f635b9f863ff2fca06d50263c0b3a2ae"; "0b3af1c7ea8331f7a37c12857c468482";
"994d966734532f7c158101789577ec1a"; ""; ""; "a2314040c1736f8b26f93e4978572bd5";
"0b72f9010d818b64c8808c28d599a09d"; "833154dc9a1bb5236d5e591395df7ef8";
"1ee6ccbbc18d57b9b3d25b8929bcfc01"; "c0367de1b16fe42fdcde715c5093ea33";
"b1212bfcb66ad878ecd7214091f0e950"; "50339d7732ab156ee5a3a69f91c1b750";
"83ce42a08f9e670c4a8fe861fec713ca"; "ec4aec35c923967305b2c1d37b9ca53e";
"046c634a42adbe6b2d03e506670ad7c6"; "3983fa6b18f6e5abb94033f6ad6e0af1";
"a16ea14664ac47e42c9012469011899b"; "c91287a897400ff842120db29f280fbc";
"9296b65561bbe68212ef84e2f2821110"; "f243c8769e1c31cab87ab668e453d88b"; "";
"52f82d656fc41b814ae9e26072ec5ca4"; "7063df54209d27f07980d51b7101de33"; ""; "";
""; ""; "58e524e4619c1cbdd5083dbf773c8a6d"; "8749db487ab00c8680466c77094086bb";
"29fff199fb44562e674048f858668183"; "38c6db2b9b635059bd07ef7a5ac9441f";
"994d966734532f7c158101789577ec1a"; "01c10f8066bef8260319e7c453306173";
"7a94c9cb4747083e22c1e61d007a3677"; "f243c8769e1c31cab87ab668e453d88b"; "";
"52f82d656fc41b814ae9e26072ec5ca4"; "7063df54209d27f07980d51b7101de33";
"68ebd0b58b3c32ea5ea3014ca04d2c58"; "a915b63f8988ff94125db305aed06d07";
"58f5d3475460d2f87dff15c9111a8def"; "920adbec2bb69686bd3d872c2b82f8cb";
"985aaefc3ddd9630dfd7e3fc90771519"; "58e524e4619c1cbdd5083dbf773c8a6d";
"8749db487ab00c8680466c77094086bb"; "7362b2f9af1a5f20a0e1c0caea6bcff2";
"eb8fe32526ebd2e5c0af51609ea049cd"; "994750730d4ffce7998c1273a004627f";
"994d966734532f7c158101789577ec1a"; "a4089abab433377aac2d1b548e185539"; ...|]
filelinktos [|""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; "";
""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; "";
""; ""; ""; "";
"../gac/Microsoft.Build.Engine/2.0.0.0__b03f5f7f11d50a3a/Microsoft.Build.Engine.dll";
"../gac/Microsoft.Build.Framework/2.0.0.0__b03f5f7f11d50a3a/Microsoft.Build.Framework.dll";
"../gac/Microsoft.Build.Tasks/2.0.0.0__b03f5f7f11d50a3a/Microsoft.Build.Tasks.dll";
"../gac/Microsoft.Build.Utilities/2.0.0.0__b03f5f7f11d50a3a/Microsoft.Build.Utilities.dll";
""; ""; ""; ""; "";
"../gac/Mono.Debugger.Soft/2.0.0.0__0738eb9f132ed756/Mono.Debugger.Soft.dll";
"../gac/PEAPI/2.0.0.0__0738eb9f132ed756/PEAPI.dll"; ""; ""; ""; ""; ""; ""; "";
""; ""; ""; ""; ""; ""; ""; ""; ""; ""; "";
"../gac/Microsoft.Build.Engine/3.5.0.0__b03f5f7f11d50a3a/Microsoft.Build.Engine.dll";
"../gac/Microsoft.Build.Framework/3.5.0.0__b03f5f7f11d50a3a/Microsoft.Build.Framework.dll";
"../gac/Microsoft.Build.Tasks.v3.5/3.5.0.0__b03f5f7f11d50a3a/Microsoft.Build.Tasks.v3.5.dll";
"../gac/Microsoft.Build.Utilities.v3.5/3.5.0.0__b03f5f7f11d50a3a/Microsoft.Build.Utilities.v3.5.dll";
""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; "";
""; ""; ""; ...|]
fileflags [|0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0;
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0;
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0;
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; ...|]
fileusername [|"root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root";
"root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root";
"root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root";
"root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root";
"root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root";
"root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root";
"root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root";
"root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root";
"root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root";
"root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root";
...|]
filegroupname [|"root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root";
"root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root";
"root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root";
"root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root";
"root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root";
"root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root";
"root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root";
"root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root";
"root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root";
"root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root"; "root";
...|]
filedevices [|1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1;
1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1;
1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1;
1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; ...|]
fileinodes [|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; 43; 44; 74; 75; 76; 77; 49; 50; 80; 81; 53;
83; 84; 70; 86; 43; 44; 89; 90; 91; 92; 93; 49; 50; 96; 97; 98; 53; 100; ...|]
filelangs [|""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; "";
""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; "";
""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; "";
""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; "";
""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; "";
...|]
dirindexes [|0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0;
0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 1; 2; 2; 3; 4; 4; 3; 3; 3; 3; 3; 3; 3; 3;
3; 3; 3; 3; 3; 3; 3; 3; 3; 3; 3; 3; 3; 3; 3; 3; 3; 3; 5; 6; 6; 5; 5; 5; 5; 5;
5; 5; 5; 5; 5; 5; 5; 7; 8; 8; 7; 7; 7; 7; 7; 7; 7; 7; 7; 7; 7; 7; ...|]
basenames [|"caspol"; "cccheck"; "ccrewrite"; "cert2spc"; "dtd2rng"; "dtd2xsd"; "genxs";
"httpcfg"; "ilasm"; "installvst"; "lc"; "macpack"; "makecert"; "mdbrebase";
"mkbundle"; "mono-api-info"; "mono-cil-strip"; "mono-find-provides";
"mono-find-requires"; "mono-heapviz"; "mono-shlib-cop"; "mono-xmltool";
"monodis"; "monograph"; "monolinker"; "monop"; "monop2"; "mprof-report";
"pdb2mdb"; "pedump"; "permview"; "prj2make"; "resgen"; "resgen2"; "secutil";
"sgen"; "signcode"; "xbuild"; "mono-source-libs"; "Options.cs"; "getline.cs";
"MSBuild"; "Microsoft.Build.CommonTypes.xsd"; "Microsoft.Build.Core.xsd";
"Microsoft.Build.Engine.dll"; "Microsoft.Build.Framework.dll";
"Microsoft.Build.Tasks.dll"; "Microsoft.Build.Utilities.dll";
"Microsoft.Build.xsd"; "Microsoft.CSharp.targets"; "Microsoft.Common.targets";
"Microsoft.Common.tasks"; "Microsoft.VisualBasic.targets";
"Mono.Debugger.Soft.dll"; "PEAPI.dll"; "genxs.exe"; "genxs.exe.mdb";
"ilasm.exe"; "ilasm.exe.mdb"; "mkbundle.exe"; "mkbundle.exe.mdb";
"monolinker.exe"; "monolinker.exe.mdb"; "monop.exe"; "monop.exe.mdb";
"resgen.exe"; "resgen.exe.mdb"; "xbuild.exe"; "xbuild.exe.mdb"; "xbuild.rsp";
"MSBuild"; "Microsoft.Build.CommonTypes.xsd"; "Microsoft.Build.Core.xsd";
"Microsoft.Build.Engine.dll"; "Microsoft.Build.Framework.dll";
"Microsoft.Build.Tasks.v3.5.dll"; "Microsoft.Build.Utilities.v3.5.dll";
"Microsoft.Build.xsd"; "Microsoft.CSharp.targets"; "Microsoft.Common.targets";
"Microsoft.Common.tasks"; "Microsoft.VisualBasic.targets"; "xbuild.exe";
"xbuild.exe.mdb"; "xbuild.rsp"; "MSBuild"; "Microsoft.Build.CommonTypes.xsd";
"Microsoft.Build.Core.xsd"; "Microsoft.Build.Engine.dll";
"Microsoft.Build.Framework.dll"; "Microsoft.Build.Tasks.v4.0.dll";
"Microsoft.Build.Utilities.v4.0.dll"; "Microsoft.Build.dll";
"Microsoft.Build.xsd"; "Microsoft.CSharp.targets"; "Microsoft.Common.targets";
"Microsoft.Common.tasks"; "Microsoft.Portable.CSharp.targets";
"Microsoft.VisualBasic.targets"; "Mono.Debugger.Soft.dll"; ...|]
dirnames [|"/usr/bin/"; "/usr/lib/"; "/usr/lib/mono-source-libs/"; "/usr/lib/mono/2.0/";
"/usr/lib/mono/2.0/MSBuild/"; "/usr/lib/mono/3.5/";
"/usr/lib/mono/3.5/MSBuild/"; "/usr/lib/mono/4.0/";
"/usr/lib/mono/4.0/MSBuild/"; "/usr/lib/mono/4.5/"; "/usr/lib/mono/gac/";
"/usr/lib/mono/gac/Microsoft.Build.Engine/";
"/usr/lib/mono/gac/Microsoft.Build.Engine/2.0.0.0__b03f5f7f11d50a3a/";
"/usr/lib/mono/gac/Microsoft.Build.Engine/3.5.0.0__b03f5f7f11d50a3a/";
"/usr/lib/mono/gac/Microsoft.Build.Engine/4.0.0.0__b03f5f7f11d50a3a/";
"/usr/lib/mono/gac/Microsoft.Build.Framework/";
"/usr/lib/mono/gac/Microsoft.Build.Framework/2.0.0.0__b03f5f7f11d50a3a/";
"/usr/lib/mono/gac/Microsoft.Build.Framework/3.5.0.0__b03f5f7f11d50a3a/";
"/usr/lib/mono/gac/Microsoft.Build.Framework/4.0.0.0__b03f5f7f11d50a3a/";
"/usr/lib/mono/gac/Microsoft.Build.Tasks.v3.5/";
"/usr/lib/mono/gac/Microsoft.Build.Tasks.v3.5/3.5.0.0__b03f5f7f11d50a3a/";
"/usr/lib/mono/gac/Microsoft.Build.Tasks.v4.0/";
"/usr/lib/mono/gac/Microsoft.Build.Tasks.v4.0/4.0.0.0__b03f5f7f11d50a3a/";
"/usr/lib/mono/gac/Microsoft.Build.Tasks/";
"/usr/lib/mono/gac/Microsoft.Build.Tasks/2.0.0.0__b03f5f7f11d50a3a/";
"/usr/lib/mono/gac/Microsoft.Build.Utilities.v3.5/";
"/usr/lib/mono/gac/Microsoft.Build.Utilities.v3.5/3.5.0.0__b03f5f7f11d50a3a/";
"/usr/lib/mono/gac/Microsoft.Build.Utilities.v4.0/";
"/usr/lib/mono/gac/Microsoft.Build.Utilities.v4.0/4.0.0.0__b03f5f7f11d50a3a/";
"/usr/lib/mono/gac/Microsoft.Build.Utilities/";
"/usr/lib/mono/gac/Microsoft.Build.Utilities/2.0.0.0__b03f5f7f11d50a3a/";
"/usr/lib/mono/gac/Microsoft.Build/";
"/usr/lib/mono/gac/Microsoft.Build/4.0.0.0__b03f5f7f11d50a3a/";
"/usr/lib/mono/gac/Mono.CodeContracts/";
"/usr/lib/mono/gac/Mono.CodeContracts/4.0.0.0__0738eb9f132ed756/";
"/usr/lib/mono/gac/Mono.Debugger.Soft/";
"/usr/lib/mono/gac/Mono.Debugger.Soft/2.0.0.0__0738eb9f132ed756/";
"/usr/lib/mono/gac/Mono.Debugger.Soft/4.0.0.0__0738eb9f132ed756/";
"/usr/lib/mono/gac/PEAPI/";
"/usr/lib/mono/gac/PEAPI/2.0.0.0__0738eb9f132ed756/";
"/usr/lib/mono/gac/PEAPI/4.0.0.0__0738eb9f132ed756/"; "/usr/lib/mono/";
"/usr/lib/mono/"; "/usr/lib/mono/xbuild-frameworks/";
"/usr/lib/mono/xbuild-frameworks/.NETFramework/";
"/usr/lib/mono/xbuild-frameworks/.NETFramework/v2.0/";
"/usr/lib/mono/xbuild-frameworks/.NETFramework/v2.0/RedistList/";
"/usr/lib/mono/xbuild-frameworks/.NETFramework/v3.0/";
"/usr/lib/mono/xbuild-frameworks/.NETFramework/v3.0/RedistList/";
"/usr/lib/mono/xbuild-frameworks/.NETFramework/v3.5/";
"/usr/lib/mono/xbuild-frameworks/.NETFramework/v3.5/RedistList/";
"/usr/lib/mono/xbuild-frameworks/.NETFramework/v4.0/";
"/usr/lib/mono/xbuild-frameworks/.NETFramework/v4.0/RedistList/";
"/usr/lib/mono/xbuild-frameworks/.NETFramework/v4.5/";
"/usr/lib/mono/xbuild-frameworks/.NETFramework/v4.5/RedistList/";
"/usr/lib/mono/xbuild/"; "/usr/lib/mono/xbuild/Microsoft/";
"/usr/lib/mono/xbuild/Microsoft/Portable/";
"/usr/lib/mono/xbuild/Microsoft/Portable/v4.0/";
"/usr/lib/mono/xbuild/Microsoft/Portable/v4.5/";
"/usr/lib/mono/xbuild/Microsoft/Silverlight/";
"/usr/lib/mono/xbuild/Microsoft/Silverlight/v2.0/";
"/usr/lib/mono/xbuild/Microsoft/Silverlight/v3.0/";
"/usr/lib/mono/xbuild/Microsoft/VisualStudio/";
"/usr/lib/mono/xbuild/Microsoft/VisualStudio/v10.0/";
"/usr/lib/mono/xbuild/Microsoft/VisualStudio/v10.0/WebApplications/";
"/usr/lib/mono/xbuild/Microsoft/VisualStudio/v11.0/";
"/usr/lib/mono/xbuild/Microsoft/VisualStudio/v11.0/WebApplications/";
"/usr/lib/mono/xbuild/Microsoft/VisualStudio/v9.0/";
"/usr/lib/mono/xbuild/Microsoft/VisualStudio/v9.0/WebApplications/";
"/usr/lib64/"; "/usr/lib64/pkgconfig/"; "/usr/share/man/man1/"; "/usr/share/";
"/usr/share/mono-2.0/"; "/usr/share/mono-2.0/mono/";
"/usr/share/mono-2.0/mono/cil/"|]
providename [|"mono-xbuild"; "mono(PEAPI)"; "mono(resgen)"; "mono-devel";
"mono-devel(x86-64)"; "libmono-profiler-aot.so.0()(64bit)";
"libmono-profiler-cov.so.0()(64bit)"; "libmono-profiler-iomap.so.0()(64bit)";
"libmono-profiler-log.so.0()(64bit)"; "mono(Microsoft.Build)";
"mono(Microsoft.Build.Engine)"; "mono(Microsoft.Build.Engine)";
"mono(Microsoft.Build.Engine)"; "mono(Microsoft.Build.Framework)";
"mono(Microsoft.Build.Framework)"; "mono(Microsoft.Build.Framework)";
"mono(Microsoft.Build.Tasks)"; "mono(Microsoft.Build.Tasks.v3.5)";
"mono(Microsoft.Build.Tasks.v4.0)"; "mono(Microsoft.Build.Utilities)";
"mono(Microsoft.Build.Utilities.v3.5)"; "mono(Microsoft.Build.Utilities.v4.0)";
"mono(Mono.CodeContracts)"; "mono(Mono.Debugger.Soft)";
"mono(Mono.Debugger.Soft)"; "mono(Moonlight.Build.Tasks)"; "mono(PEAPI)";
"mono(PEAPI)"; "mono(caspol)"; "mono(cccheck)"; "mono(ccrewrite)";
"mono(cert2spc)"; "mono(dtd2rng)"; "mono(dtd2xsd)"; "mono(genxs)";
"mono(httpcfg)"; "mono(ictool)"; "mono(ilasm)"; "mono(installvst)"; "mono(lc)";
"mono(macpack)"; "mono(makecert)"; "mono(mdbrebase)"; "mono(mkbundle)";
"mono(mono-api-info)"; "mono(mono-cil-strip)"; "mono(mono-shlib-cop)";
"mono(mono-xmltool)"; "mono(monolinker)"; "mono(monop)"; "mono(pdb2mdb)";
"mono(permview)"; "mono(resgen)"; "mono(resgen)"; "mono(secutil)";
"mono(sgen)"; "mono(signcode)"; "mono(xbuild)"; "pkgconfig(cecil)";
"pkgconfig(dotnet)"; "pkgconfig(dotnet35)"; "pkgconfig(mono)";
"pkgconfig(mono-cairo)"; "pkgconfig(mono-lineeditor)";
"pkgconfig(mono-options)"|]
requireflags [|8; 0; 0; 8; 8; 8; 8; 8; 1280; 4352; 16777226; 16777226; 16777226; 16384; 16384;
16384; 16384; 16384; 16384; 16384; 16384; 16384; 16384; 16384; 16384; 16384;
16384; 16384; 16384; 16384; 16384; 16384; 16384; 16384; 16384; 16384; 16384;
16384; 16384; 16384; 16384; 16384; 16384; 16384; 16384; 16384; 16392; 16392;
16392; 16392; 16392; 16392; 16392; 16392; 16392; 16392; 16392; 16392; 16392;
16392; 16392; 16392; 16777226|]
requirename [|"mono-core"; "libgdiplus0"; "pkgconfig"; "mono-data"; "mono-data-oracle";
"mono-extras"; "mono-web"; "mono-winforms"; "/sbin/ldconfig"; "/sbin/ldconfig";
"rpmlib(PartialHardlinkSets)"; "rpmlib(PayloadFilesHavePrefix)";
"rpmlib(CompressedFileNames)"; "/bin/bash"; "/bin/sh"; "/usr/bin/env";
"/usr/bin/pkg-config"; "ld-linux-x86-64.so.2()(64bit)";
"ld-linux-x86-64.so.2(GLIBC_2.3)(64bit)"; "libc.so.6()(64bit)";
"libc.so.6(GLIBC_2.11)(64bit)"; "libc.so.6(GLIBC_2.14)(64bit)";
"libc.so.6(GLIBC_2.15)(64bit)"; "libc.so.6(GLIBC_2.2.5)(64bit)";
"libc.so.6(GLIBC_2.3)(64bit)"; "libc.so.6(GLIBC_2.3.2)(64bit)";
"libc.so.6(GLIBC_2.3.4)(64bit)"; "libc.so.6(GLIBC_2.4)(64bit)";
"libc.so.6(GLIBC_2.6)(64bit)"; "libc.so.6(GLIBC_2.8)(64bit)";
"libc.so.6(GLIBC_2.9)(64bit)"; "libdl.so.2()(64bit)";
"libdl.so.2(GLIBC_2.2.5)(64bit)"; "libglib-2_0-0"; "libgmodule-2_0-0";
"libm.so.6()(64bit)"; "libm.so.6(GLIBC_2.2.5)(64bit)";
"libmonosgen-2.0.so.1()(64bit)"; "libmonosgen-2.0.so.1(VER_1)(64bit)";
"libpthread.so.0()(64bit)"; "libpthread.so.0(GLIBC_2.2.5)(64bit)";
"libpthread.so.0(GLIBC_2.3.2)(64bit)"; "libpthread.so.0(GLIBC_2.3.3)(64bit)";
"librt.so.1()(64bit)"; "librt.so.1(GLIBC_2.2.5)(64bit)"; "libz.so.1()(64bit)";
"mono(Commons.Xml.Relaxng)"; "mono(ICSharpCode.SharpZipLib)";
"mono(Microsoft.Build.Tasks.v4.0)"; "mono(Mono.Cecil)";
"mono(Mono.CompilerServices.SymbolWriter)";
"mono(Mono.CompilerServices.SymbolWriter)"; "mono(Mono.Security)";
"mono(Mono.Security)"; "mono(System)"; "mono(System)"; "mono(System.Core)";
"mono(System.Core)"; "mono(System.Xml)"; "mono(System.Xml)"; "mono(mscorlib)";
"mono(mscorlib)"; "rpmlib(PayloadIsLzma)"|]
requireversion [|"3.2.3-0"; ""; ""; "3.2.3-0"; "3.2.3-0"; "3.2.3-0"; "3.2.3-0"; "3.2.3-0"; "";
""; "4.0.4-1"; "4.0-1"; "3.0.4-1"; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; "";
""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; ""; "";
""; ""; "4.0.0.0"; "4.84.0.0"; "4.0.0.0"; "0.9.5.0"; "2.0.0.0"; "4.0.0.0";
"2.0.0.0"; "4.0.0.0"; "2.0.0.0"; "4.0.0.0"; "3.5.0.0"; "4.0.0.0"; "2.0.0.0";
"4.0.0.0"; "2.0.0.0"; "4.0.0.0"; "4.4.6-1"|]
provideflags [|0; 8; 8; 8; 8; 32768; 32768; 32768; 32768; 32776; 32776; 32776; 32776; 32776;
32776; 32776; 32776; 32776; 32776; 32776; 32776; 32776; 32776; 32776; 32776;
32776; 32776; 32776; 32776; 32776; 32776; 32776; 32776; 32776; 32776; 32776;
32776; 32776; 32776; 32776; 32776; 32776; 32776; 32776; 32776; 32776; 32776;
32776; 32776; 32776; 32776; 32776; 32776; 32776; 32776; 32776; 32776; 32776;
32776; 32776; 32776; 32776; 32776; 32776; 32776|]
provideversion [|""; "1.0.5000.0"; "1.0.5000.0"; "3.2.3-0"; "3.2.3-0"; ""; ""; ""; "";
"4.0.0.0"; "2.0.0.0"; "3.5.0.0"; "4.0.0.0"; "2.0.0.0"; "3.5.0.0"; "4.0.0.0";
"2.0.0.0"; "3.5.0.0"; "4.0.0.0"; "2.0.0.0"; "3.5.0.0"; "4.0.0.0"; "4.0.0.0";
"2.0.0.0"; "4.0.0.0"; "0.0.0.0"; "2.0.0.0"; "4.0.0.0"; "3.2.3.0"; "0.0.0.0";
"0.0.0.0"; "3.2.3.0"; "0.0.0.0"; "0.0.0.0"; "0.0.0.0"; "3.2.3.0"; "0.0.0.0";
"3.2.3.0"; "0.0.0.0"; "1.0.0.0"; "3.2.3.0"; "3.2.3.0"; "0.0.0.0"; "0.0.0.0";
"0.0.0.0"; "0.6.9.0"; "0.0.0.0"; "0.0.0.0"; "0.2.0.0"; "0.0.0.0"; "0.0.0.0";
"3.2.3.0"; "2.0.0.0"; "4.0.0.0"; "3.2.3.0"; "0.0.0.0"; "3.2.3.0"; "3.2.3.0";
"3.2.3"; "3.2.3"; "3.2.3"; "3.2.3"; "3.2.3"; "0.2.1"; "0.2.3"|]
let cs s = java.lang.CharSequence.op_Implicit s
type org.redline_rpm.header.Format with
member x.Lead with get() = x.getLead()
member x.Signature with get() = x.getSignature()
member x.Header with get() = x.getHeader()
type org.redline_rpm.header.Header.HeaderTag with
member x.Name with get() = x.getName()
type org.redline_rpm.header.AbstractHeader.Entry with
member x.Values with get() = x.getValues()
type org.redline_rpm.header.AbstractHeader with
member x.Values
with get() =
seq {
for h in org.redline_rpm.header.Header.HeaderTag.values() do
let v = x.getEntry h
if v <> null then
yield h,v
}
type org.redline_rpm.header.AbstractHeader.Entry with
member x.ValueArray = x.Values :?> array<obj>
member x.StringValue = x.ValueArray.[0] :?> string
type org.redline_rpm.header.Header with
member x.Item with get(tag:org.redline_rpm.header.AbstractHeader.Tag) = x.getEntry tag
member x.Name with get() = x.[org.redline_rpm.header.Header.HeaderTag.NAME].StringValue
member x.Version with get() = x.[org.redline_rpm.header.Header.HeaderTag.VERSION].StringValue
member x.Release with get() = x.[org.redline_rpm.header.Header.HeaderTag.RELEASE].StringValue
member x.Summary with get() = x.[org.redline_rpm.header.Header.HeaderTag.SUMMARY].StringValue
type org.redline_rpm.header.Lead with
member x.Name with get() = x.getName().toString()
member x.Arch with get() = x.getArch()
// https://github.com/craigwblake/redline/blob/master/src/main/java/org/redline_rpm/Test.java
let createTestRpm() =
let b = org.redline_rpm.Builder()
b.setPackage(cs "test", cs "0.0.1", cs "1") // Name
b.setType org.redline_rpm.header.RpmType.BINARY
b.setSummary(cs "Test RPM")
b.setDescription(cs "A test RPM with a few packaged files.")
b.setBuildHost(cs "localhost");
b.setLicense(cs "MIT");
b.setGroup(cs "Miscellaneous");
b.setDistribution(cs "FreeCompany");
b.setVendor(cs "Redline RPM Repository http://redline-rpm.org/rpms");
b.setPackager(cs "Jane Doe");
b.setUrl(cs "http://redline-rpm.org");
b.setProvides(cs "test");
// b.AddFile
let f = b.build(java.io.File ".")
printfn "file created: %s" f
let readTestRpm (file:string) =
ikvm.runtime.Startup.addBootClassPathAssembly typeof<org.slf4j.impl.StaticLoggerBinder>.Assembly
use f = new java.io.FileInputStream(file)
let s = org.redline_rpm.Scanner()
let rpm = s.run(new org.redline_rpm.ReadableChannelWrapper(java.nio.channels.Channels.newChannel f))
let ld = rpm.Lead
printfn "Lead Name: %s" ld.Name // test-0.0.1-1
printfn "Lead Arch: %A" ld.Arch // NOARCH for org.redline_rpm.header.Architecture.NOARCH
let hdr = rpm.Header
printfn "Name: %s" hdr.Name
printfn "Version: %s" hdr.Version
printfn "Release: %s" hdr.Release
printfn "Summary: %s" hdr.Summary
printfn "\nSignature:"
for h,v in rpm.Signature.Values do
printfn "%-30s %A" h.Name v.Values
printfn "\nHeader:"
for h,v in rpm.Header.Values do
printfn "%-30s %A" h.Name v.Values
[<EntryPoint>]
let main argv =
// http://www.slf4j.org/codes.html#StaticLoggerBinder
ikvm.runtime.Startup.addBootClassPathAssembly typeof<org.slf4j.impl.StaticLoggerBinder>.Assembly
createTestRpm()
readTestRpm "test-0.0.1-1.noarch.rpm"
readTestRpm "mono-devel-3.2.3-0.x86_64.rpm"
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment