README 1.04 KB
Newer Older
Clément OUDOT's avatar
Clément OUDOT committed
1
== How to build RPM LemonLDAP::NG ==
2 3

%_topdir: where you build RPMs (by default, /usr/src/redhat)
4 5

- Install rpm-build package
6
- Install all build dependencies (see BuildRequires in lemonldap-ng.spec)
Clément OUDOT's avatar
Clément OUDOT committed
7
- Put LemonLDAP::NG tarball in %_topdir/SOURCES (built with 'make dist')
Clément OUDOT's avatar
Clément OUDOT committed
8
- Edit ~/.rpmmacros and set your build parameters:
9 10
-----
%_topdir /home/user/build
Clément OUDOT's avatar
Clément OUDOT committed
11 12
%dist .el7
%rhel 7
13 14
-----
- Go to %_topdir
Clément OUDOT's avatar
Clément OUDOT committed
15
- Do rpmbuild -ta SOURCES/lemonldap-ng-VERSION.tar.gz
16

Clément OUDOT's avatar
Clément OUDOT committed
17
This RPM can be built for several distribution like RedHat, CentOS, Fedora, OpenSuSE...
18

Clément OUDOT's avatar
Clément OUDOT committed
19 20
== Update YUM repository ==

Clément OUDOT's avatar
Clément OUDOT committed
21
The YUM repository is hosted on http://lemonldap-ng.org/rpm7
Clément OUDOT's avatar
Clément OUDOT committed
22 23

First copy RPM files (they must be signed!) and source RPM:
Clément OUDOT's avatar
Clément OUDOT committed
24 25
$ scp *.noarch.rpm lemonldapng@lemonldap-ng.org:redhat/2.0/7/noarch/
$ scp *.src.rpm lemonldapng@lemonldap-ng.org:redhat/2.0/7/SRPMS/
Clément OUDOT's avatar
Clément OUDOT committed
26 27 28

Then connect on server and launch repodata:
$ ssh lemonldapng@lemonldap-ng.org
Clément OUDOT's avatar
Clément OUDOT committed
29 30 31
lemonldapng@lemonldap-ng.org$ cd redhat/2.0/7/
lemonldapng@lemonldap-ng.org$ createrepo noarch
lemonldapng@lemonldap-ng.org$ createrepo SRPMS
32

Clément OUDOT's avatar
Clément OUDOT committed
33
That's all!