Cross package maker. DEB/RPM generation or conversion. Derived from jordansissel/fpm.

⌈⌋ ⎇ branch:  cross package maker


Check-in [2a6b544a7a]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Update notes, no longer using custom etcfiles() scanning; default to --config-files list.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 2a6b544a7a89fa2c9a81b9fc097e72f61599e365
User & Date: mario 2015-05-05 12:05:48
Context
2015-05-05
12:07
Add crude Python bdist_wheel generation method. Only tested with singular packages. Hack to relocate single module scripts into pkgname subdir + stub __init__.py. Otherwise relies on -s src or -s dir file relocation. Would require more complete `setup.py` creation to package anything more useful. Leaf check-in: d275f1986b user: mario tags: trunk
12:05
Update notes, no longer using custom etcfiles() scanning; default to --config-files list. check-in: 2a6b544a7a user: mario tags: trunk
2015-05-01
22:40
Retain more attributes: provides=, conflicts=, config_files as backup=, deb_recomends as optdepends=, update_filter as makepkgopt= for arch .PKGINFO check-in: 275407c9b1 user: mario tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to lib/fpm/package/arch.rb.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# encoding: utf-8
# api: fpm
# title: arch tarball
# description: xzipped tarball with meta .PKGINFO and .MTREE files
# version: 0.1
# doc: https://github.com/an146/pacman/blob/master/scripts/makepkg.sh.in#L1268
#
# Arch binary packages are just .tar.xz archives with an extra .PKGINFO and
# a gzipped .MTREE (usually created by `bsdtar`) topmost in the tarball.
#
# Care must be taken with dependencies. They're mostly literal upstream
# release basenames, but there are frequently also embedded version numbers.
# For instance python packages follow a scheme like `python2-xyz` usually.


require "backports" # gem backports
require "fpm/package"
require "fpm/package/dir"
require "fpm/version"
require "fpm/util"











|
|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# encoding: utf-8
# api: fpm
# title: arch tarball
# description: xzipped tarball with meta .PKGINFO and .MTREE files
# version: 0.1
# doc: https://github.com/an146/pacman/blob/master/scripts/makepkg.sh.in#L1268
#
# Arch binary packages are just .tar.xz archives with an extra .PKGINFO and
# a gzipped .MTREE (usually created by `bsdtar`) topmost in the tarball.
#
# Care must be taken with dependencies. They're mostly literal upstream
# release basenames. But there are frequently also conjoined version numbers.
# For instance python packages follow a scheme like `python2-xyz` typically.


require "backports" # gem backports
require "fpm/package"
require "fpm/package/dir"
require "fpm/version"
require "fpm/util"
66
67
68
69
70
71
72
73
74
75
76
77
78
      "x86" => "i686",
    }
    if map.has_key?(architecture)
      @architecture = map[architecture]
    end
  end

  # search etc files
  def etcscan()
    return ::Dir.glob("etc/**")
  end

end # class FPM::Package::Arch







|





66
67
68
69
70
71
72
73
74
75
76
77
78
      "x86" => "i686",
    }
    if map.has_key?(architecture)
      @architecture = map[architecture]
    end
  end

  # search etc files (obsolute, use --config-files)
  def etcscan()
    return ::Dir.glob("etc/**")
  end

end # class FPM::Package::Arch