Author: rmeggins
Update of /cvs/dirsec/adminserver/pkg
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10461
Added Files:
fedora-ds-admin.spec
Log Message:
added spec files
--- NEW FILE fedora-ds-admin.spec ---
%define shortname fedora-ds
%define pkgname dirsrv
Summary: Fedora Administration Server (admin)
Name: fedora-ds-admin
Version: 1.1.0
Release: 1.15%{?dist}
License: GPL
URL:
http://directory.fedoraproject.org/
Group: System Environment/Daemons
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: nspr-devel >= 4.6.4
BuildRequires: nss-devel >= 3.11.4
BuildRequires: svrcore-devel >= 4.0.3
BuildRequires: mozldap-devel >= 6.0.4
BuildRequires: cyrus-sasl-devel >= 2.1.19
BuildRequires: icu >= 3.4
BuildRequires: libicu-devel >= 3.4
BuildRequires: httpd-devel
BuildRequires: apr-devel
BuildRequires: mod_nss
BuildRequires: adminutil-devel
Requires: fedora-ds-base
Requires: mod_nss
# the following are needed for some of our scripts
Requires: perl-Mozilla-LDAP
# for the init script
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
Source0: %{name}-%{version}.tar.bz2
# fedora-ds-cvs.sh should be used to generate the source tarball from CVS
Source1: %{name}-cvs.sh
%description
Fedora Administration Server is an HTTP agent that provides management features
for Fedora Directory Server. It provides some management web apps that can
be used through a web browser. It provides the authentication, access control,
and CGI utilities used by the console.
%prep
%setup -q -n %{name}-%{version}
%build
%configure --disable-rpath
# Generate symbolic info for debuggers
export XCFLAGS=$RPM_OPT_FLAGS
%ifarch x86_64 ppc64 ia64 s390x sparc64
export USE_64=1
%endif
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR="$RPM_BUILD_ROOT" install
# make console jars directory
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/html/java
#remove libtool and static libs
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
rm -f $RPM_BUILD_ROOT%{_libdir}/*.so
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/%{pkgname}/modules/*.a
rm -f $RPM_BUILD_ROOT%{_libdir}/%{pkgname}/modules/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/chkconfig --add %{pkgname}-admin
/sbin/ldconfig
%preun
if [ $1 = 0 ]; then
/sbin/service %{pkgname}-admin stop >/dev/null 2>&1 || :
/sbin/chkconfig --del %{pkgname}-admin
fi
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc LICENSE
%dir %{_sysconfdir}/%{pkgname}/admin-serv
%config(noreplace)%{_sysconfdir}/%{pkgname}/admin-serv/*.conf
%{_datadir}/%{pkgname}
%{_initrddir}/%{pkgname}-admin
%{_sysconfdir}/sysconfig/%{pkgname}-admin
%{_sbindir}/*
%{_libdir}/*.so.*
%{_libdir}/%{pkgname}
%changelog
* Mon Oct 15 2007 Rich Megginson <rmeggins(a)redhat.com> - 1.1.0-1.15
- fix bogus dist macro
- change mozldap6 to mozldap
* Thu Oct 11 2007 Rich Megginson <rmeggins(a)redhat.com> - 1.1.0-1.14
- make admin server work with SELinux enabled
- fix wording errors in setup
* Mon Oct 8 2007 Rich Megginson <rmeggins(a)redhat.com> - 1.1.0-1.13
- added /etc/sysconfig/dirsrv-admin the file that allows you to set
- the environment used to start up the admin server (e.g. keytab, ulimit, etc.)
- the initscript and admin start script use this file now
- This version also has a fix to print the correct error message if the admin
- server cannot be contacted during setup or migration.
* Thu Sep 27 2007 Rich Megginson <rmeggins(a)redhat.com> - 1.1.0-1.12
- fix a couple of migration issues, including the rpath $libdir problem
- allow ds_remove from console to remove instances
* Wed Sep 19 2007 Rich Megginson <rmeggins(a)redhat.com> - 1.1.0-1.11
- one line fix to fix of 295001 - console.conf clobbered
* Tue Sep 18 2007 Rich Megginson <rmeggins(a)redhat.com> - 1.1.0-1.10
- fixed migration issue bugzilla 295001 - console.conf clobbered
* Fri Sep 14 2007 Rich Megginson <rmeggins(a)redhat.com> - 1.1.0-1.9
- fix several more migration problems
* Fri Sep 14 2007 Rich Megginson <rmeggins(a)redhat.com> - 1.1.0-1.8
- fix migration - servers are started as they are migrated now
* Tue Aug 21 2007 Rich Megginson <rmeggins(a)redhat.com> - 1.1.0-1.7
- Fix the with-fhs-opt configure flag
* Fri Aug 17 2007 Rich Megginson <rmeggins(a)redhat.com> - 1.1.0-1.6
- remove curses
- make mod_admserv link against sasl
- add the usual .m4 files to mod_admserv instead of having all of
- the component logic in configure.in
* Thu Aug 16 2007 Rich Megginson <rmeggins(a)redhat.com> - 1.1.0-1.5
- incorporate Noriko's migration fix
* Wed Aug 15 2007 Rich Megginson <rmeggins(a)redhat.com> - 1.1.0-1.4
- address several migration issues
* Mon Aug 13 2007 Rich Megginson <rmeggins(a)redhat.com> - 1.1.0-1.3
- there is no devel package, so remove unused .so files
* Mon Aug 13 2007 Rich Megginson <rmeggins(a)redhat.com> - 1.1.0-1.2
- forgot to tag the modules
* Fri Aug 10 2007 Rich Megginson <rmeggins(a)redhat.com> - 1.1.0-1.1
- get rid of cvsdate
- use pkgname of dirsrv for filesystem path naming
- get rid of devel package
- simplify files section
* Fri Aug 10 2007 Noriko Hosoi <nhosoi(a)redhat.com> - 1.1.0-0.3.20070810
- updated to latest sources
- upgraded the mozldap6 version to 6.0.4
* Wed Aug 8 2007 Noriko Hosoi <nhosoi(a)redhat.com> - 1.1.0-0.2.20070808
- updated to latest sources -- bug fixes in the setup scripts
* Mon Aug 6 2007 Rich Megginson <rmeggins(a)redhat.com> - 1.1.0-0.1.20070806
- updated to latest sources
* Thu Aug 2 2007 Rich Megginson <rmeggins(a)redhat.com> - 1.1.0-0.4.20070802
- There are no files in bindir anymore
* Thu Aug 2 2007 Rich Megginson <rmeggins(a)redhat.com> - 1.1.0-0.3.20070802
- forgot to prepend build root to java dir creation
* Thu Aug 2 2007 Rich Megginson <rmeggins(a)redhat.com> - 1.1.0-0.2.20070802
- forgot to add mod_admserv and mod_restartd to source
* Thu Aug 2 2007 Rich Megginson <rmeggins(a)redhat.com> - 1.1.0-0.1.20070802
- updated to latest sources - fix build breakage
- add console jars dir under html
* Mon Jul 23 2007 Rich Megginson <rmeggins(a)redhat.com> - 1.1.0-0.1.20070725
- Initial version based on fedora-ds-base.spec