From 5b6a636ad3a7dd2fafacba34cbde4343824b8562 Mon Sep 17 00:00:00 2001 From: dismine Date: Wed, 5 Feb 2014 14:39:32 +0200 Subject: [PATCH] Launchpad recipe. --HG-- branch : develop --- dist/Launchpad_README | 88 +++++++++++++++++++++++++++++ dist/debian/changelog | 6 +- dist/debian/control | 2 +- dist/debian/rules | 4 +- dist/debian/source/include-binaries | 4 ++ 5 files changed, 98 insertions(+), 6 deletions(-) create mode 100644 dist/Launchpad_README diff --git a/dist/Launchpad_README b/dist/Launchpad_README new file mode 100644 index 000000000..180626332 --- /dev/null +++ b/dist/Launchpad_README @@ -0,0 +1,88 @@ +README (English) +################################################## +Launchpad Package tools +################################################## + +This directory contains files to explain how to publish +a package onto LaunchPad. +Some string useful for local testing creation recipe. + + +# This is standard command to work on RPM packaging: +# +# To install all packagers tools: +# sudo apt-get install bzr-builder bzr dpatch pbuilder debootstrap devscripts debhelper build-essential + +# Init local working env +- Create account on launchpad.org +- Create Project +- Link project to official SCM server +- Upload SSH public key onto account +- Upload you GPG sign key +- Run from command line: + bzr launchpad-login yourlogin + bzr whoami "Your Name " +- Create a file /.pbuilderrc with content (need for local testing) + ## Overrides /etc/pbuilderrc + + # Default distribution + #DISTRIBUTION=saucy + COMPONENTS="main restricted universe multiverse" + + # Repositories + MIRRORSITE=http://archive.ubuntu.com/ubuntu + OTHERMIRROR="deb ${MIRRORSITE} ${DISTRIBUTION} ${COMPONENTS} | deb ${MIRRORSITE} ${DISTRIBUTION}-backports ${COMPONENTS} | deb ${MIRRORSITE} ${DISTRIBUTION}-security ${COMPONENTS} | deb ${MIRRORSITE} ${DISTRIBUTION}-updates ${COMPONENTS} | deb http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu ${DISTRIBUTION} main" + + # For build results + BUILDRESULT=${HOME}/pbuilder/result + + # Mount directories inside chroot environment + BINDMOUNTS=${BUILDRESULT} +- Make our pbuilder trust packages from our PPA +First, we'll login to our pbuilder environment: + sudo pbuilder --login --save-after-login +Then, we'll give it the public key to our PPA, just like if we were adding it to our own keyring: + apt-key adv --keyserver keyserver.ubuntu.com --recv-keys [YOUR PUBLIC KEY HERE] +If all goes well, you can leave your pbuilder environment by typing: + exit +- Tell the pbuilder environment that it is going to act just like the Launchpad build farm +Still in our terminal: + sudo pbuilder create --debootstrapopts --variant=buildd +- Update our environment with these new packages +Still in our terminal, type: + sudo pbuilder --update --override-config +- Edit file ~/.bashrc ti add +DEBFULLNAME="" +DEBEMAIL="" + +# Init package tools for launchpad +- Create a Bazaar directory + mkdir bzr +- Create debian directory and upload it onto bzr branch ~dismine/valentina/debian + cd bzr + mkdir debian + cd debian + bzr init + cp -pr dolibarr_root/debian bzr/debian + bzr add debian + bzr commit -m "Init" + bzr push lp:~dismine/valentina/debian + or download it from launchpad bazaar: + cd bzr + bzr branch lp:~eldy/dolibarr/debian +- To update this debian directory, edit files into the bzr dir and run + bzr commit -m "Description of change" + bzr push lp:~dismine/valentina/debian +- Create a file dolibarr.recipe with content + cd bzr + vi dolibarr.recipe + # bzr-builder format 0.3 deb-version {debupstream}+{revno}+{revno:packaging} + lp:dolibarr + merge packaging lp:~dismine/valentina/debian +- Run command + cd bzr + bzr dailydeb --allow-fallback-to-native valentina.recipe working-dir + This will create a directory "working-dir" with dolibarr sources and will add sources from ~eldy/dolibarr/debian +- Test package sources + sudo pbuilder build /_.dsc + diff --git a/dist/debian/changelog b/dist/debian/changelog index dec65916b..f60eb5deb 100644 --- a/dist/debian/changelog +++ b/dist/debian/changelog @@ -1,5 +1,5 @@ -valentina (0.2+1hg20131126-ppa1-3) saucy; urgency=low +valentina (0.2.1-dev) saucy; urgency=low - * Add new dependions qttools5-dev-tools + * Release v.0.2.1-dev - -- Roman Telezhinsky Tue, 26 Nov 2013 21:28:15 +0200 + -- Roman Telezhinsky Tue, 04 Feb 2014 17:40:25 +0200 diff --git a/dist/debian/control b/dist/debian/control index bf642828a..66229707e 100644 --- a/dist/debian/control +++ b/dist/debian/control @@ -2,7 +2,7 @@ Source: valentina Section: graphics Priority: optional Maintainer: Roman Telezhinsky -Build-Depends: debhelper (>= 8.0.0), qtbase5-dev (>= 5.0.0), libqt5svg5-dev (>= 5.0.0), ccache (>= 3.1.7), g++ (>= 4.6.0), qt5-default (>= 5.0.0), qttools5-dev-tools (>= 5.0.0) +Build-Depends: debhelper (>= 8.0.0), qtbase5-dev (>= 5.0.0), libqt5svg5-dev (>= 5.0.0), ccache (>= 3.1.9), g++ (>= 4.6.0), qt5-default (>= 5.0.0), qttools5-dev-tools (>= 5.0.0), libqt5xmlpatterns5-dev (>= 5.0.0) Standards-Version: 3.9.4 Homepage: https://bitbucket.org/dismine/valentina diff --git a/dist/debian/rules b/dist/debian/rules index e9c14f409..15bbc3af8 100755 --- a/dist/debian/rules +++ b/dist/debian/rules @@ -1,10 +1,10 @@ #!/usr/bin/make -f - APPNAME := valentina + APPNAME := Valentina builddir: mkdir -p builddir builddir/Makefile: builddir - lrelease src/src.pro + lrelease $(APPNAME).pro cd builddir && qmake PREFIX=/usr ../$(APPNAME).pro -r build: build-stamp build-stamp: builddir/Makefile diff --git a/dist/debian/source/include-binaries b/dist/debian/source/include-binaries index bb85f001a..836386026 100644 --- a/dist/debian/source/include-binaries +++ b/dist/debian/source/include-binaries @@ -2,3 +2,7 @@ debian/usr/share/pixmaps/valentina.png debian/valentina/usr/bin/valentina debian/valentina/usr/share/valentina/translations/valentina_ru.qm debian/valentina/usr/share/valentina/translations/valentina_uk.qm +debian/valentina/usr/share/valentina/translations/valentina_de.qm +debian/valentina/usr/share/valentina/translations/valentina_cs.qm +debian/valentina/usr/share/valentina/translations/valentina_he_IL.qm +debian/valentina/usr/share/valentina/translations/valentina_fr.qm