2010-11-30 11:17:30 +01:00
|
|
|
== How to build RPM LemonLDAP::NG ==
|
2009-07-06 14:28:54 +02:00
|
|
|
|
|
|
|
%_topdir: where you build RPMs (by default, /usr/src/redhat)
|
2008-10-13 22:42:42 +02:00
|
|
|
|
|
|
|
- Install rpm-build package
|
2009-07-06 14:28:54 +02:00
|
|
|
- Install all build dependencies (see BuildRequires in lemonldap-ng.spec)
|
2010-11-30 11:17:30 +01:00
|
|
|
- Put LemonLDAP::NG tarball in %_topdir/SOURCES (built with 'make dist')
|
2016-02-29 15:40:08 +01:00
|
|
|
- Edit ~/.rpmmacros and set your build parameters:
|
2009-07-06 14:28:54 +02:00
|
|
|
-----
|
|
|
|
%_topdir /home/user/build
|
2016-02-29 15:40:08 +01:00
|
|
|
%dist .el7
|
|
|
|
%rhel 7
|
2009-07-06 14:28:54 +02:00
|
|
|
-----
|
|
|
|
- Go to %_topdir
|
2010-11-30 11:17:30 +01:00
|
|
|
- Do rpmbuild -ta SOURCES/lemonldap-ng-VERSION.tar.gz
|
2009-07-06 14:28:54 +02:00
|
|
|
|
2010-11-30 11:17:30 +01:00
|
|
|
This RPM can be built for several distribution like RedHat, CentOS, Fedora, OpenSuSE...
|
2009-07-06 14:28:54 +02:00
|
|
|
|
2010-11-30 11:17:30 +01:00
|
|
|
== Update YUM repository ==
|
|
|
|
|
2016-02-29 15:40:08 +01:00
|
|
|
The YUM repository is hosted on http://lemonldap-ng.org/rpm7
|
2010-11-30 11:17:30 +01:00
|
|
|
|
|
|
|
First copy RPM files (they must be signed!) and source RPM:
|
2017-09-01 15:51:34 +02:00
|
|
|
$ scp *.noarch.rpm lemonldapng@lemonldap-ng.org:redhat/2.0/7/noarch/
|
|
|
|
$ scp *.src.rpm lemonldapng@lemonldap-ng.org:redhat/2.0/7/SRPMS/
|
2010-11-30 11:17:30 +01:00
|
|
|
|
|
|
|
Then connect on server and launch repodata:
|
|
|
|
$ ssh lemonldapng@lemonldap-ng.org
|
2017-09-01 15:51:34 +02:00
|
|
|
lemonldapng@lemonldap-ng.org$ cd redhat/2.0/7/
|
|
|
|
lemonldapng@lemonldap-ng.org$ createrepo noarch
|
|
|
|
lemonldapng@lemonldap-ng.org$ createrepo SRPMS
|
2012-06-18 11:47:57 +02:00
|
|
|
|
2010-11-30 11:17:30 +01:00
|
|
|
That's all!
|