packaging

Multi-architectural binary rpm and the noarch

て烟熏妆下的殇ゞ 提交于 2019-12-23 04:54:38
问题 I have two (32-bit and 64-bit) versions of a compiled software which I would like to package into ONE binary RPM. I am wondering if 'noarch' target is suitable for this purpose or there are better alternatives? The only issue with 'noarch' that I see is that having i386 and x86_64 binaries in the package doesn't make it architecture-independent which 'noarch' is supposed to be used for. 回答1: I don't think it's possible to have one binary RPM supporting two architectures. You have to generate

GenJar replacement or update?

本小妞迷上赌 提交于 2019-12-22 18:29:59
问题 "GenJar is a specialized Ant task that builds jar files based on class dependencies rather than simply the contents of a directory" (http://genjar.sourceforge.net/) It is really useful, but the project seems to be un-active since "2003-03-06 GenJar 1.0.2 is released". Is there a new tool for that we should use now? Thanks 回答1: genjar2 seems to be the "official" replacement: http://code.google.com/p/genjar2/ 回答2: How about maven http://maven.apache.org/? 来源: https://stackoverflow.com/questions

How to create RPM subpackages using the same paths for different envs?

a 夏天 提交于 2019-12-22 09:39:11
问题 I would like to use a rpm to build subpackages for different environments (live,testing,developer) but for the same files, so having a package called name-config-live, one called name-config-testing and one called name-config-developer and in them to have the same paths but each with the configs corresponding to the environment it's named after. as an example let's say on all environments I have a file called /etc/name.conf and on testing I want it to contain "1", on development "2" and on

excluding file types when packaging an rpm

半腔热情 提交于 2019-12-22 08:00:02
问题 In my spec file for packaging a python rpm, I want to remove certain filetypes in certain directories: e.g., I want to exclude source *.py files in these directories: lib/*.py comm/*.py I think I should do this in the %file section of my spec. Any suggestions? 回答1: At one point in the distant past, you did that by just not including the files you didn't want in the %file section, and so they would not be packaged. That might have turned out to be too error prone, and so some RPM

Distributing an executable zip file with __main__.py, how to access extra data? [duplicate]

大兔子大兔子 提交于 2019-12-22 07:58:16
问题 This question already has answers here : python: can executable zip files include data files? (4 answers) Closed 4 years ago . I'm doing a little program and I want to distribute it using this recipe: single directory with __main__.py in it zip this directory and adding a shebang on it #!/usr/bin/env python making it executable The problem is that in this package I have also extra files (I'm using pygtk toolkit and I need images and ui xml files). When I try to access these files I have the

how to include a directory in the package debuild

自作多情 提交于 2019-12-22 05:25:08
问题 a Simple Debian package would be created in following steps, the following steps would be tutorial for beginners consider i have a file lets say test.sh which would just print test on the screen #!/bin/sh set -e echo "this is sample debian package created " >&2 What should be the output after installing the debian package? A)I want to place the above file which i named as test.sh in /home/bla/Desktop/ after installing the package using "dpkg -i test-1.0.deb" In order to achieve above process

Package installation of Keras in Anaconda?

青春壹個敷衍的年華 提交于 2019-12-22 00:18:14
问题 Python 3.5, I am trying to find command to install a Keras Deep Learning package for Anaconda. The command conda install -c keras does not work, can anyone answer Why it doesn't work? 回答1: The specific answer to the question is that the -c option to the conda command specifies a channel to search for the package or packages you want to install. -c CHANNEL, --channel CHANNEL Additional channel to search for packages. These are URLs searched in the order they are given (including file:// for

How to ship or distribute a matplotlib stylesheet

前提是你 提交于 2019-12-21 15:01:50
问题 I want to distribute a custom matplotlib style sheet, but right now the only way I can think of is uploading it to Gist or some other website and tell my users to manually download it to some configuration directory. Is there a way to distribute a style sheet as if it were a Python package, or as part of a module? Something easy like pip install mpl_fancy . 回答1: After reading the link from @aloctavodia and consulting the massmutual/mmviz-python GitHub repo, this is what I came up with. setup

How do I verify the order of MANIFEST.MF within jar?

杀马特。学长 韩版系。学妹 提交于 2019-12-21 12:13:18
问题 I've run into interesting problem which is absolutely new to me. As I've suddenly discovered, Jar specification says that, being included, META-INF and MANIFEST.MF must be first and second entries of *.jar package and not just directory and file within archive. I'm working with Java framework being very watchful about this requirement and not as much verbose. How do I check that META-INF and MANIFEST.MF are properly ordered within jar? UPDATE: Many of jars are third-party, and there are many

How does the binary DAT from Maxmind work?

二次信任 提交于 2019-12-21 05:14:21
问题 Maxmind offers a binary DAT file format for downloading their GeoIP database. http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz Does anyone know how this has been packaged? Also, is there any kind of copy protection on the data? I'd like to offer up a set of data in a similar way. Anyone with any knowledge of this will receive my undying gratitude :-) 回答1: It's just a proprietary binary format, heavily optimized for IP address querying. It doesn't have any copy protection.