chiark / gitweb /
package.sh: add fedora
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 14 Jan 2015 12:19:45 +0000 (13:19 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 14 Jan 2015 13:45:47 +0000 (14:45 +0100)
commit7e3c32666fd9624e304765b0ed0923eb90e31d7f
treef436f2450cb75cb43034718ec1da7503571774c0
parent7434d40d25188ee821038b288af71b7ca90832c0
package.sh: add fedora

Fedora builds Cura by using ```mock```, thereby enabling it to build RPMs
for every distribution that ```mock``` has a configuration file for. In
pratice this means that Fedora can build RPMs for several versions of
Fedora, CentOS and RHEL.

Cura can be built under a regular user account, there is no need to have
root privileges. In fact, having root privileges is very much discouraged.

However, the user account under which the build is performed needs to be
a member of the 'mock' group.

Specify only 'fedora' to build RPMs for the current system.
  ./package.sh fedora

Additionally specify any number of mock configurations
(ls -1 /etc/mock/*.cfg) to build RPMs for those configurations.
  ./package.sh fedora fedora-21-x86_64.cfg fedora-21-i386.cfg ...

Since only the filename of the mock configurations is used, this
also works:
  ./package.sh fedora /etc/mock/fedora-21-x86_64.cfg ...

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
README.md
package.sh
scripts/linux/fedora/.gitignore [new file with mode: 0644]
scripts/linux/fedora/rpm.spec [new file with mode: 0644]
scripts/linux/fedora/usr/bin/cura [new file with mode: 0755]
scripts/linux/fedora/usr/share/.gitignore [new file with mode: 0644]
scripts/linux/fedora/usr/share/applications/cura.desktop [new file with mode: 0755]