packaging

copyright file in deb package - how to

人盡茶涼 提交于 2019-12-06 03:33:24
I'm trying to create a deb package from binaries but I have a problem with copyright file. If I place a file named copyright inside DEBIAN folder it complains of two things: Missing copyright Unknown control file copyright If I place it under /usr/share/doc or /usr/share/doc/mypackage it does not complain at all but, in any case, when I open generated debian package, Ubuntu Software Center states License: Unknown Using: ubuntu raring Executing fakeroot dpkg-deb -z8 -Zgzip --build myproj Copyright file looks as follows: Format: http://dep.debian.net/deps/dep5 Upstream-Name: myproj Source: Files

Packaging an application that uses the ImageMagick C API

女生的网名这么多〃 提交于 2019-12-06 03:08:38
问题 I've created a little Windows app that uses the ImageMagick C API but have run into a bit of a brick wall. The app works fine and I'm ready to share it with a few others in our organisation but I can't find documentation on distributing such an app without installing ImageMagick on the target machine. Does anyone here have information, or a link to information, that details how to package this up for distribution? What DLLs are required and which one(s) need to registered with Windows? The

How to package to 'production' my react website with Webpack?

冷暖自知 提交于 2019-12-05 22:59:24
问题 I managed to use this react-hot-boilerplate configuration script to create and test a simple React Flux webapp. Now that I have a website I like when I run npm start , what would be the easiest/best way to add a production build in the configuration? When I use that 'package' command I would like to get a little prod folder with all the final html and minified js files that I need in it, is that what I should expect? This is my package.json : { "name": "react-hot-boilerplate", "version": "1.0

Autoconf subdirectories with subpackages depending on each other?

北慕城南 提交于 2019-12-05 22:38:56
问题 I've got a large project on my hand (master) that is split into several components (liba, b, c, d) to ease building and maintenance. When building the whole package, all of the subcomponents must be built in sequence, and some of these packages depend upon each other. In more explicit terms, liba is a prerequisite for b, c and d, and the presence of liba is checked by the configure script. This check is definitely necessary to give user-friendly error messages when building the b distribution

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

廉价感情. 提交于 2019-12-05 18:45:25
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 live "3". Is it possible to do this in the same spec since the subpackage generation only happens last

How to upload a pristine Python package to PyPI?

♀尐吖头ヾ 提交于 2019-12-05 17:48:23
问题 What's the magic " python setup.py some_incantation_here " command to upload a package to PyPI, in a form that can be downloaded to get the original package in its original form? I have a package with some source and a few image files (as package_data). If I do " setup.py sdist register upload ", the .tar.gz has the image files excluded. If I do " setup.py bdist_egg register upload ", the egg contains the images but excludes the setup.py file. I want to be able to get a file uploaded that is

How do you specify the shebang line of a command script created by setuptools

无人久伴 提交于 2019-12-05 16:18:58
I have created a package that I will be distributing throughout the company that replaces a legacy bash script with the same name. It is referenced many places so it needs to execute like the current script does. This has worked fine until I encountered some servers that do not have a current version of Python as the default Python (aka CentOS). Is there a way to specify in the setup.py what shebang line is created at the top of the script file? i.e. I need #!/opt/bin/python rather than #!/usr/bin/env python . Run the script with /opt/bin/python script.py , or edit the first line to read #!

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

我的未来我决定 提交于 2019-12-05 16:06:51
This question already has an answer here: python: can executable zip files include data files? 4 answers 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 error that the resource is unavailable (the path that I'm trying to open is something like file.zip/gui/gui.ui ). How can I

Transitive AAR dependencies in Maven

自古美人都是妖i 提交于 2019-12-05 13:39:54
I'm building an Android app from a Maven project that is using the android-maven-plugin. In this project I'm using the new beta data-binding library. It is contained in the local m2repository of the Android SDK (extras/android/m2repository). The libraries in this repository are packaged as type aar. I can add the dependency in my pom like this: <dependency> <groupId>com.android.databinding</groupId> <artifactId>library</artifactId> <version>1.0-rc1</version> <type>aar</type> </dependency> This seems to work, but the build fails with this: Failed to execute goal on project demo: Could not

excluding file types when packaging an rpm

不问归期 提交于 2019-12-05 12:05:11
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? 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 implementations started complaining about unpackaged files. Since RPM development has always been a bit fragmented and