RELEASE 3.38 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
* Main modules (Common.pm/Handler.pm/Portal.pm/Manager.pm)
* Makefile.PL for cross-dependencies
Clément OUDOT's avatar
Clément OUDOT committed
11
* Doxyfile
12 13

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

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

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

- Update documentation:
Xavier Guimard's avatar
Xavier Guimard committed
24 25 26 27 28 29 30

  $ ./script/parameters-for-wiki.pl >/tmp/prmlist.txt

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

Xavier Guimard's avatar
Xavier Guimard committed
32 33 34 35 36 37 38
- 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
39 40 41
- Update debian/changelog
  launch just `dch -r` and force save (":w" and ot ":x")

Clément OUDOT's avatar
Clément OUDOT committed
42
- Check Debian packages quality
Xavier Guimard's avatar
Xavier Guimard committed
43
  $ cme check dpkg
Clément OUDOT's avatar
Clément OUDOT committed
44

45 46 47
For minor release
-----------------

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

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

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

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

57 58 59 60
- Change "latest" symlink in dokuwiki 

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

61 62
Make the distribution
---------------------
63

64 65
- CPAN packages:
$ make clean && make cpan
66 67

- Tarball:
68 69
$ make clean && make dist

Clément OUDOT's avatar
Clément OUDOT committed
70 71 72 73 74 75
- RedHat packaging:

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

Next steps: see rpm/README
76 77 78

- Debian packaging:

79 80 81 82
Create the debian specific tarball:
$ make clean && make debian-dist

Untar the debian archive and launch:
83 84 85 86 87 88
$ make debian-packages

Packages are in /tmp

Sign packages:
$ dpkg-sig -p --sign builder /tmp/*.deb
89 90


91 92
Upload the distribution
---------------------
93

94 95 96
- CPAN:
Upload modules tarballs (generated by make cpan)

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

- 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
105 106
Copy all generated files (*.deb):
$ scp *.deb lemonldapng@lemonldap-ng.org:incoming/
107 108 109 110

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
111 112
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
113 114

See also reprepro configuration file: 'distributions'
115

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

121 122 123 124
Site
----

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

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

Clément OUDOT's avatar
Clément OUDOT committed
130 131 132 133
- 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
134 135
- Optional: blogs and news sites (LinuxFR, etc.)

Xavier Guimard's avatar
Xavier Guimard committed
136 137 138 139 140 141 142
After release
-------------

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