/[packages]/cauldron/389-dsgw/current/SPECS/389-dsgw.spec
ViewVC logotype

Contents of /cauldron/389-dsgw/current/SPECS/389-dsgw.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 402777 - (show annotations) (download)
Wed Mar 13 21:54:11 2013 UTC (11 years, 1 month ago) by spuhler
File size: 2490 byte(s)
updated to version 1.1.10 to make it build
added autoreconf -fi to satisfy libtool version
1 %define pkgname dirsrv
2
3 Summary: 389 Directory Server Gateway (dsgw)
4 Name: 389-dsgw
5 Version: 1.1.10
6 Release: %mkrel 1
7 License: GPLv2
8 URL: http://port389.org/
9 Source0: http://port389.org/sources/%{name}-%{version}.tar.bz2
10 Group: System/Servers
11 BuildRequires: nspr-devel
12 BuildRequires: nss-devel
13 BuildRequires: svrcore-devel
14 BuildRequires: mozldap-devel
15 BuildRequires: libsasl-devel
16 BuildRequires: icu
17 BuildRequires: libicu-devel
18 BuildRequires: 389-adminutil-devel
19
20 Requires: /etc/dirsrv/admin-serv/httpd.conf
21 # orgchart uses perldap
22 Requires: perl-Mozilla-LDAP
23
24
25
26 %description
27 389 Directory Server Gateway is a collection of 3 web applications
28 that run on top of the Administration Server used by the Directory
29 Server. These 3 applications are:
30 * phonebook - a simple phonebook application geared towards end users,
31 with simple search screens and simple self-service management
32 * orgchart - an organization chart viewer
33 * gateway - a more advanced search interface that allows admins to
34 create and edit user entries, and allows creation of templates for
35 different types of user and group entries
36
37 %prep
38 %setup -q -n %{name}-%{version}
39
40 %build
41 autoreconf -fi
42 %configure --disable-rpath --with-openldap
43
44 # Generate symbolic info for debuggers
45 export XCFLAGS=$RPM_OPT_FLAGS
46
47 %ifarch x86_64
48 export USE_64=1
49 %endif
50
51 %make
52
53 %install
54
55
56 make DESTDIR="%{buildroot}" install
57
58 # make cookie db directory
59 mkdir -p %{buildroot}%{_localstatedir}/run/%{pkgname}/dsgw/cookies
60 # touch the tmpfiles.d conf file - but will not be included in the package
61 mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d
62 touch %{buildroot}%{_sysconfdir}/tmpfiles.d/%{pkgname}-dsgw.conf
63
64
65
66 %post
67 # this has been problematic - if this directory
68 # does not exist, the server will silently fail to
69 # start - however, if the user has already created
70 # it, we don't want to overwrite the permissions
71 # on it - so we can't list it explicitly in the
72 # files section
73 if [ ! -d %{_localstatedir}/run/%{pkgname}/dsgw/cookies ] ; then
74 mkdir -p %{_localstatedir}/run/%{pkgname}/dsgw/cookies
75 fi
76
77 %files
78 %doc LICENSE
79 %dir %{_sysconfdir}/%{pkgname}/dsgw
80 %config(noreplace)%{_sysconfdir}/%{pkgname}/dsgw/*.conf
81 %{_datadir}/%{pkgname}/dsgw
82 %{_datadir}/%{pkgname}/manual/*/dsgw
83 %{_datadir}/%{pkgname}/properties/dsgw
84 %{_sbindir}/*
85 %{_libdir}/%{pkgname}/dsgw-cgi-bin
86 %ghost %{_sysconfdir}/tmpfiles.d/%{pkgname}-dsgw.conf
87

  ViewVC Help
Powered by ViewVC 1.1.30