RELEASE 3.45 KB
Newer Older
1 2 3 4 5 6 7
How to build a release for LemonLDAP::NG
========================================

The version
-----------

- The release version should be updated in the following location:
Xavier Guimard's avatar
Xavier Guimard committed
8
* changelog (add a changelog from GitLab for the target version)
9 10 11 12
* Main modules (Common.pm/Handler.pm/Portal.pm/Manager.pm)
* Makefile.PL for cross-dependencies

- Then update packages information with:
13
$ make clean && make cpan
14 15

- Version must also be updated in RPM and Debian build files
16 17
  - rpm/lemonldap-ng.spec: update versions and add changelog entry
  - debian/changelog: add changelog entry
18 19 20 21

Before release
--------------

Xavier Guimard's avatar
Xavier Guimard committed
22 23 24
- Update languages (needs a Transifex token)
  $ ./scripts/download_translations

25
- Update documentation:
26

Xavier Guimard's avatar
Xavier Guimard committed
27
  $ ./scripts/parameters-for-wiki.pl >/tmp/prmlist.txt
28 29 30 31 32

  Replace https://lemonldap-ng.org/documentation/X.X/parameterlist by
  /tmp/prmlist.txt content
  
  $ make documentation
33

34 35 36 37 38 39 40
- Update changelog:

  $ ./scripts/generate-changelog.pl

  This update "changelog" file using GitLab issues (tags Bug, New feature,
  Improvement)

Xavier Guimard's avatar
Xavier Guimard committed
41 42 43
- Update debian/changelog
  launch just `dch -r` and force save (":w" and ot ":x")

Clément OUDOT's avatar
Clément OUDOT committed
44
- Check Debian packages quality
45
  $ cme check dpkg
Clément OUDOT's avatar
Clément OUDOT committed
46

47 48 49
For minor release
-----------------

Clément OUDOT's avatar
Clément OUDOT committed
50
- Go on gitlab and create a new tag: https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/tags/new
51 52 53 54

For major release
-----------------

Clément OUDOT's avatar
Clément OUDOT committed
55
- Go on gitlab and create a new branch: https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/branches/new
56

Clément OUDOT's avatar
Clément OUDOT committed
57
- Go on gitlab and create a new tag: https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/tags/new
58

59 60 61 62
- Change "latest" symlink in dokuwiki 

- Edit scripts/doc.pl in trunk to point on the new documentation path

63 64
Make the distribution
---------------------
65

66 67
- CPAN packages:
$ make clean && make cpan
68 69

- Tarball:
70 71
$ make clean && make dist

72 73 74 75 76 77
- RedHat packaging:

Create the RPM specific tarball:
$ make clean && make rpm-dist

Next steps: see rpm/README
78 79 80

- Debian packaging:

81 82 83 84
Create the debian specific tarball:
$ make clean && make debian-dist

Untar the debian archive and launch:
85 86 87 88 89 90
$ make debian-packages

Packages are in /tmp

Sign packages:
$ dpkg-sig -p --sign builder /tmp/*.deb
91 92


93 94
Upload the distribution
---------------------
95

96 97 98
- CPAN:
Upload modules tarballs (generated by make cpan)

Clément OUDOT's avatar
Clément OUDOT committed
99 100
- OW2 Release:
Upload dist and bundles on sftp://release-up.ow2.org/projects/lemonldap
101 102 103 104 105 106

- RPM: see rpm/REDAME

- DEB:
The DEB repository is hosted on http://lemonldap-ng.org/deb

Clément OUDOT's avatar
Clément OUDOT committed
107 108
Copy all generated files (*.deb):
$ scp *.deb lemonldapng@lemonldap-ng.org:incoming/
109 110 111 112

Then connect on the server and launch reprepro:
$ ssh lemonldapng@lemonldap-ng.org
lemonldapng@lemonldap-ng.org$ cd deb/
Clément OUDOT's avatar
Clément OUDOT committed
113 114
lemonldapng@sd-22107:~/deb$ reprepro --ask-passphrase -Vb . includedeb stable ../incoming/*VERSION*deb
lemonldapng@sd-22107:~/deb$ reprepro --ask-passphrase -Vb . includedeb 2.0 ../incoming/*VERSION*deb
115 116

See also reprepro configuration file: 'distributions'
117

Clément OUDOT's avatar
Clément OUDOT committed
118 119 120 121 122
- Docker:
Build a new image from https://github.com/LemonLDAPNG/lemonldap-ng-docker
Tag image to latest
Upload on Docker hub

123 124 125 126
Site
----

- Update links on the download page
Clément OUDOT's avatar
Clément OUDOT committed
127
- Close the milestone on Gitlab and create a new one
128 129 130 131

Spread the word
---------------

Clément OUDOT's avatar
Clément OUDOT committed
132 133 134 135
- News on OW2 projects page: https://projects.ow2.org/bin/view/lemonldap-ng/
- Twitter account / Facebook page
- IRC channel subject and Mattermost
- Mailing lists: lemonldap-ng-users / lemonldap-ng-announces
136 137
- Optional: blogs and news sites (LinuxFR, etc.)

Xavier Guimard's avatar
Xavier Guimard committed
138 139 140 141 142 143 144
After release
-------------

- Update debian/changelog
$ dch -v <New number>-1 (and write "New release")
- Update $VERSION anywhere