lemonldap-ng/rpm
Clément OUDOT 6f2f263c9f Merge branch 'el7' into 'v2.0'
Improve RPM Requires: filtering

See merge request lemonldap-ng/lemonldap-ng!54

(cherry picked from commit bc100d059e)

c305da5c Split Fedora requires filtering from EL filtering
35919e8d Sentry::Raven is available for Fedora
36985b50 Net::OpenID::Server is available in Fedora
bf8de0a7 Don't filter Requires on XML::LibXSLT
c88b9cf3 Don't filter Requires on XML::LibXML
8a6e4d61 Web::ID is available in Fedora
aee9ee3f Lasso is available in Fedora 29+
eb4c7357 Fix Lasso Requires filtering
afc7c8e2 Use macro to define httpd log dir
d5827c6f Net::OpenID::Server is available in EPEL7
bb9e0ef8 Drop EL6 support, perl in EL6 is too old for the code base anyway
bda04bf5 XML::LibXSLT is already BR:'ed, no need to filter the corresponding Requires:
056ff5ba XML::LibXML is available for EL7
7fadd39c Fix Lasso Requires filtering (EL7)
5abb193c Fix Version:, 2.0.2 has not been tagged yet
023cfb1d Fix %preun to not erroneously wipe httpd conf files
2019-02-03 14:14:48 +01:00
..
lemonldap-ng.spec Merge branch 'el7' into 'v2.0' 2019-02-03 14:14:48 +01:00
README Update RPM README 2017-09-01 13:51:34 +00:00

== 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:
-----
%_topdir /home/user/build
%dist .el7
%rhel 7
-----
- 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/rpm7

First copy RPM files (they must be signed!) and source RPM:
$ scp *.noarch.rpm lemonldapng@lemonldap-ng.org:redhat/2.0/7/noarch/
$ scp *.src.rpm lemonldapng@lemonldap-ng.org:redhat/2.0/7/SRPMS/

Then connect on server and launch repodata:
$ ssh lemonldapng@lemonldap-ng.org
lemonldapng@lemonldap-ng.org$ cd redhat/2.0/7/
lemonldapng@lemonldap-ng.org$ createrepo noarch
lemonldapng@lemonldap-ng.org$ createrepo SRPMS

That's all!