This is a work-in-progress guide on how to build Ubuntu, Debian, and Fedora packages for nautilus-dropbox. It assumes you're building from a 16.04 Ubuntu machine.
-
Obtain the signing key. Add it to your keyring using
gpg --import /path/to/key
. -
Install the build dependencies.
This is a non-exhaustive list of what you'll need:
sudo apt-get install pbuilder debootstrap devscripts libnautilus-extension-dev mock rpm expect createrepo cdbs gnome-common debian-archive-keyring python3-docutils
-
Copy .pbuilderrc to ~/.pbuilderrc
-
Create chroots for each of the Debian or Ubuntu builds you'll be doing.
sudo DIST=trusty ARCH=i386 pbuilder create --debootstrapopts --variant=buildd
sudo DIST=trusty ARCH=amd64 pbuilder create --debootstrapopts --variant=buildd
sudo DIST=jessie ARCH=i386 pbuilder create --debootstrapopts --variant=buildd
sudo DIST=jessie ARCH=amd64 pbuilder create --debootstrapopts --variant=buildd
-
Add yourself to the mock group (create it if it doesn't exist), and then logout and login for the group to take affect. Probably you have to run
build_packages.py
command withsudo
permission which means you should add your root account to the mock group. Otherwise, you will seeThe password you typed is invalid.
error. -
Copy rpm_resources/fedora-*.cfg to /etc/mock.
If you need to add new configs when we start targetting a new Fedora version, you can find all the configs here: https://github.com/rpm-software-management/mock
-
Copy rpm_resources/.rpmmacros to ~/.rpmmacros
-
Build all the packages with:
python3 build_packages.py
If the build is successful, a tar of the output will be in: /tmp/nautilus-dropbox-release.tar.gz
-
Update the ChangeLog with all the changes in the release.
-
Tag the release and push the tag to GitHub.