Check-in [7d94ce620c]
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Update gem-to-rpm.rb |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
7d94ce620c74954a57c79b23cffe3692 |
User & Date: | jls@semicomplete.com 2013-04-22 23:38:02 |
Context
2013-04-30
| ||
07:22 | - Add CPAN support. (#74). I've tested this briefly with a few perl modules: Message::Passing and DBI. Both build successfully into rpms and debs. check-in: b18fdeb19e user: jls@semicomplete.com tags: trunk | |
2013-04-22
| ||
23:38 | Update gem-to-rpm.rb check-in: 7d94ce620c user: jls@semicomplete.com tags: trunk | |
15:49 | Merge pull request #418 from r4um/fix_rpm_prefix Do no generate empty prefix check-in: 99963e1578 user: jls@semicomplete.com tags: trunk | |
Changes
Changes to examples/api/gem-to-rpm.rb.
1 2 3 4 5 6 7 8 9 10 11 12 | $: << File.join(File.dirname(__FILE__), "..", "..", "lib") require "fpm" package = FPM::Package::Gem.new package.input(ARGV[0]) rpm = package.convert(FPM::Package::RPM) begin output = "NAME-VERSION.ARCH.rpm" rpm.output(rpm.to_s(output)) ensure rpm.cleanup end | > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | $: << File.join(File.dirname(__FILE__), "..", "..", "lib") require "fpm" package = FPM::Package::Gem.new # the Gem package takes a string name of the package to download/install. # Example, run this script with 'rails' as an argument and it will convert # the latest 'rails' gem into rpm. package.input(ARGV[0]) rpm = package.convert(FPM::Package::RPM) begin output = "NAME-VERSION.ARCH.rpm" rpm.output(rpm.to_s(output)) ensure rpm.cleanup end |