split into Suse and Fedora RPM
This commit is contained in:
parent
6416197bc9
commit
938cd076df
|
@ -1,19 +1,22 @@
|
||||||
%define httpd_rootdir /var/www/html
|
%define httpd_rootdir /var/www/html
|
||||||
%define lam_dir lam
|
%define lam_dir lam
|
||||||
%define lam_uid apache
|
%define lam_uid @@USER@@
|
||||||
%define lam_gid apache
|
%define lam_gid @@GROUP@@
|
||||||
|
|
||||||
Name: ldap-account-manager
|
Name: ldap-account-manager
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: Productivity/Networking/Web/Frontends
|
Group: Productivity/Networking/Web/Frontends
|
||||||
Version: @@VERSION@@
|
Version: @@VERSION@@
|
||||||
Release: 1
|
Release: 1.@@DISTRIBUTION@@
|
||||||
Source0: ldap-account-manager-%{version}.tar.gz
|
Source0: ldap-account-manager-%{version}.tar.gz
|
||||||
URL: http://lam.sourceforge.net
|
URL: http://lam.sourceforge.net
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
|
||||||
Summary: Administration of LDAP users, groups and hosts via Web GUI
|
Summary: Administration of LDAP users, groups and hosts via Web GUI
|
||||||
|
Vendor: Roland Gruber
|
||||||
|
Packager: Roland Gruber <post@rolandgruber.de>
|
||||||
BuildArchitectures: noarch
|
BuildArchitectures: noarch
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
LDAP Account Manager (LAM) runs on an existing webserver. LAM
|
LDAP Account Manager (LAM) runs on an existing webserver. LAM
|
||||||
supports LDAP connections via SSL and TLS. It manages user, group
|
supports LDAP connections via SSL and TLS. It manages user, group
|
||||||
|
|
|
@ -99,17 +99,43 @@ cd ..
|
||||||
|
|
||||||
# RPM
|
# RPM
|
||||||
perl -pi -e "s/\\@\\@VERSION\\@\\@/$VERSION/g" lam-packaging/RPM/ldap-account-manager.spec
|
perl -pi -e "s/\\@\\@VERSION\\@\\@/$VERSION/g" lam-packaging/RPM/ldap-account-manager.spec
|
||||||
|
cp lam-packaging/RPM/ldap-account-manager.spec lam-packaging/RPM/ldap-account-manager-fedora.spec
|
||||||
|
cp lam-packaging/RPM/ldap-account-manager.spec lam-packaging/RPM/ldap-account-manager-suse.spec
|
||||||
|
|
||||||
|
# Fedora RPM
|
||||||
|
perl -pi -e "s/\\@\\@DISTRIBUTION\\@\\@/fedora/g" lam-packaging/RPM/ldap-account-manager-fedora.spec
|
||||||
|
perl -pi -e "s/\\@\\@USER\\@\\@/apache/g" lam-packaging/RPM/ldap-account-manager-fedora.spec
|
||||||
|
perl -pi -e "s/\\@\\@GROUP\\@\\@/apache/g" lam-packaging/RPM/ldap-account-manager-fedora.spec
|
||||||
mkdir RPM
|
mkdir RPM
|
||||||
cp ldap-account-manager-$VERSION.tar.gz /usr/src/rpm/SOURCES
|
cp ldap-account-manager-$VERSION.tar.gz /usr/src/rpm/SOURCES
|
||||||
rpmbuild --sign --clean --rmsource -ba lam-packaging/RPM/ldap-account-manager.spec
|
rpmbuild --sign --clean --rmsource -ba lam-packaging/RPM/ldap-account-manager-fedora.spec
|
||||||
mv /usr/src/rpm/SRPMS/ldap-account-manager*-$VERSION-1.src.rpm RPM/
|
mv /usr/src/rpm/SRPMS/ldap-account-manager*-$VERSION-1.src.rpm RPM/
|
||||||
mv /usr/src/rpm/RPMS/noarch/ldap-account-manager*-$VERSION-1.noarch.rpm RPM/
|
mv /usr/src/rpm/RPMS/noarch/ldap-account-manager*-$VERSION-1.noarch.rpm RPM/
|
||||||
|
|
||||||
# RPM for LAM Pro
|
# Fedora RPM for LAM Pro
|
||||||
cd LAMPro
|
cd LAMPro
|
||||||
mkdir RPM
|
mkdir RPM
|
||||||
cp ldap-account-manager-$VERSION.tar.gz /usr/src/rpm/SOURCES/ldap-account-manager-$VERSION.tar.gz
|
cp ldap-account-manager-$VERSION.tar.gz /usr/src/rpm/SOURCES/ldap-account-manager-$VERSION.tar.gz
|
||||||
rpmbuild --sign --clean --rmsource -ba ../lam-packaging/RPM/ldap-account-manager.spec
|
rpmbuild --sign --clean --rmsource -ba ../lam-packaging/RPM/ldap-account-manager-fedora.spec
|
||||||
|
mv /usr/src/rpm/SRPMS/ldap-account-manager*-$VERSION-1.src.rpm RPM/
|
||||||
|
mv /usr/src/rpm/RPMS/noarch/ldap-account-manager*-$VERSION-1.noarch.rpm RPM/
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
# Suse RPM
|
||||||
|
perl -pi -e "s/\\@\\@DISTRIBUTION\\@\\@/suse/g" lam-packaging/RPM/ldap-account-manager-suse.spec
|
||||||
|
perl -pi -e "s/\\@\\@USER\\@\\@/wwwrun/g" lam-packaging/RPM/ldap-account-manager-suse.spec
|
||||||
|
perl -pi -e "s/\\@\\@GROUP\\@\\@/www/g" lam-packaging/RPM/ldap-account-manager-suse.spec
|
||||||
|
mkdir RPM
|
||||||
|
cp ldap-account-manager-$VERSION.tar.gz /usr/src/rpm/SOURCES
|
||||||
|
rpmbuild --sign --clean --rmsource -ba lam-packaging/RPM/ldap-account-manager-suse.spec
|
||||||
|
mv /usr/src/rpm/SRPMS/ldap-account-manager*-$VERSION-1.src.rpm RPM/
|
||||||
|
mv /usr/src/rpm/RPMS/noarch/ldap-account-manager*-$VERSION-1.noarch.rpm RPM/
|
||||||
|
|
||||||
|
# Suse RPM for LAM Pro
|
||||||
|
cd LAMPro
|
||||||
|
mkdir RPM
|
||||||
|
cp ldap-account-manager-$VERSION.tar.gz /usr/src/rpm/SOURCES/ldap-account-manager-$VERSION.tar.gz
|
||||||
|
rpmbuild --sign --clean --rmsource -ba ../lam-packaging/RPM/ldap-account-manager-suse.spec
|
||||||
mv /usr/src/rpm/SRPMS/ldap-account-manager*-$VERSION-1.src.rpm RPM/
|
mv /usr/src/rpm/SRPMS/ldap-account-manager*-$VERSION-1.src.rpm RPM/
|
||||||
mv /usr/src/rpm/RPMS/noarch/ldap-account-manager*-$VERSION-1.noarch.rpm RPM/
|
mv /usr/src/rpm/RPMS/noarch/ldap-account-manager*-$VERSION-1.noarch.rpm RPM/
|
||||||
cd ..
|
cd ..
|
||||||
|
|
Loading…
Reference in New Issue