34 lines
1015 B
Plaintext
34 lines
1015 B
Plaintext
== How to build RPM LemonLDAP::NG ==
|
|
|
|
%_topdir: where you build RPMs (by default, /usr/src/redhat)
|
|
|
|
- Install rpm-build package
|
|
- Install all build dependencies (see BuildRequires in lemonldap-ng.spec)
|
|
- Put LemonLDAP::NG tarball in %_topdir/SOURCES (built with 'make dist')
|
|
- Edit ~/.rpmmacros and set your build parameters (example for RHEL5):
|
|
-----
|
|
%_topdir /home/user/build
|
|
%dist .el5
|
|
%rhel 5
|
|
-----
|
|
- Go to %_topdir
|
|
- Do rpmbuild -ta SOURCES/lemonldap-ng-VERSION.tar.gz
|
|
|
|
This RPM can be built for several distribution like RedHat, CentOS, Fedora, OpenSuSE...
|
|
|
|
== Update YUM repository ==
|
|
|
|
The YUM repository is hosted on http://lemonldap-ng.org/rpm
|
|
|
|
First copy RPM files (they must be signed!) and source RPM:
|
|
$ scp *.noarch.rpm lemonldapng@lemonldap-ng.org:rpm/noarch/
|
|
$ scp *.src.rpm lemonldapng@lemonldap-ng.org:rpm/SRPMS/
|
|
|
|
Then connect on server and launch repodata:
|
|
$ ssh lemonldapng@lemonldap-ng.org
|
|
lemonldapng@lemonldap-ng.org$ createrepo rpm/
|
|
|
|
Do the same for EL6 RPMs in rpm6/ directory.
|
|
|
|
That's all!
|