source: spec/trunk/SPECS/courier-authlib.spec@ 1036

Last change on this file since 1036 was 206, checked in by Yuri Dario, 14 years ago

spec: added courier imap and authlib build.

  • Property svn:eol-style set to native
File size: 6.7 KB
Line 
1
2Name: courier-authlib
3Summary: Courier authentication library
4Version: 0.63.0
5Release: 0%{?dist}
6License: GPLv2+
7Group: Productivity/Networking/Email/Servers
8Url: http://www.courier-mta.org/imap/
9Source: %{name}-%{version}.tar.bz2
10#Source1: courier-authdaemon.init
11#Source2: rpmlintrc
12Patch1: courier-authlib.diff
13
14BuildRoot: %{_tmppath}/%{name}-%{version}-build
15#PreReq: coreutils
16#BuildRequires: expect gcc-c++ gdbm-devel
17#BuildRequires: mysql-devel
18#BuildRequires: openldap2-devel pam-devel postgresql-devel
19#BuildRequires: procps
20#Requires: expect
21
22
23%description
24The Courier authentication library provides authentication services for
25other Courier applications.
26
27%package devel
28Summary: Development libraries for the Courier authentication library
29License: GPLv2+
30Group: Development/Libraries/Other
31Requires: %{name} = %{version}
32
33%description devel
34This package contains the development libraries and files needed to
35compile Courier packages that use this authentication library. Install
36this package in order to build the rest of the Courier packages. After
37they are built and installed this package can be removed. Files in
38this package are not needed at runtime.
39
40
41%package userdb
42Summary: Userdb support for the Courier authentication library
43License: GPLv2+
44Group: Productivity/Networking/Email/Servers
45
46%description userdb
47This package installs the userdb support for the Courier authentication
48library. Userdb is a simple way to manage virtual mail accounts using
49a GDBM-based database file.
50
51#%package ldap
52#Summary: LDAP support for the Courier authentication library
53#License: GPLv2+
54#Group: Productivity/Networking/Email/Servers
55
56#%description ldap
57#This package installs LDAP support for the Courier authentication
58#library. Install this package in order to be able to authenticate using
59#LDAP.
60
61#%package mysql
62#Summary: MySQL support for the Courier authentication library
63#License: GPLv2+
64#Group: Productivity/Networking/Email/Servers
65
66#%description mysql
67#This package installs MySQL support for the Courier authentication
68#library. Install this package in order to be able to authenticate using
69#MySQL.
70
71#%package pgsql
72#Summary: PostgreSQL support for the Courier authentication library
73#License: GPLv2+
74#Group: Productivity/Networking/Email/Servers
75
76#%description pgsql
77#This package installs PostgreSQL support for the Courier authentication
78#library. Install this package in order to be able to authenticate using
79#PostgreSQL.
80
81#%package pipe
82#Summary: Pipe support for the Courier authentication library
83#License: GPLv2+
84#Group: Productivity/Networking/Email/Servers
85
86#%description pipe
87#This package installs Pipe support for the Courier authentication
88#library. Install this package in order to be able to authenticate using
89#Pipe.
90
91%prep
92%setup -q
93%patch1 -p1 -b .os2~
94
95%build
96
97export CONFIG_SHELL="/bin/sh"
98export CFLAGS="$RPM_OPT_FLAGS -DLDAP_DEPRECATED=1"
99export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf"
100export LIBS="-lurpo"
101%configure \
102 --libexecdir=%{_prefix}/lib \
103 --datadir=%{_datadir}/courier-imap \
104 --sharedstatedir=%{_sharedstatedir}/%{name} \
105 --with-piddir=/var/run \
106 --disable-root-check \
107 --enable-unicode \
108 --with-authdaemonvar=%{_localstatedir}/run/authdaemon.courier-imap \
109 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
110
111%{__make} %{?jobs:-j%jobs}
112
113%install
114%{__make} install DESTDIR=$RPM_BUILD_ROOT
115#mv $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*.so* $RPM_BUILD_ROOT%{_libdir}
116%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
117%{__install} -m 755 sysconftool $RPM_BUILD_ROOT%{_prefix}/lib/%{name}
118%{__install} -m 755 authmigrate $RPM_BUILD_ROOT%{_prefix}/lib/%{name}
119%{__mkdir_p} $RPM_BUILD_ROOT%{_sysconfdir}/init.d
120#%{__install} -m 755 %{S:1} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/courier-authdaemon
121%{__ln_s} -f ../../%{_sysconfdir}/init.d/courier-authdaemon \
122 $RPM_BUILD_ROOT%{_sbindir}/rccourier-authdaemon
123
124%{__install} -m 755 authpwd.dll $RPM_BUILD_ROOT%{_prefix}/lib/%{name}
125
126#%preun
127#%stop_on_removal courier-authdaemon
128#if [ "$1" = "0" ]; then
129# %{__rm} -f /var/run/authdaemon.courier-imap/{socket,pid,pid.lock}
130#fi
131
132#%post
133#/sbin/ldconfig
134#%{_prefix}/lib/%{name}/authmigrate >/dev/null
135#%{_prefix}/lib/%{name}/sysconftool %{_sysconfdir}/authlib/*.dist >/dev/null
136#if [ "$1" = "1" ]; then
137# %{fillup_and_insserv -f courier-authdaemon}
138#fi
139
140#%postun
141#/sbin/ldconfig
142#%restart_on_update courier-authdaemon
143#%insserv_cleanup
144
145#%post userdb -p /sbin/ldconfig
146
147#%postun userdb -p /sbin/ldconfig
148
149#%post ldap -p /sbin/ldconfig
150
151#%postun ldap -p /sbin/ldconfig
152
153#%post mysql -p /sbin/ldconfig
154
155#%postun mysql -p /sbin/ldconfig
156
157#%post pgsql -p /sbin/ldconfig
158
159#%postun pgsql -p /sbin/ldconfig
160
161#%post pipe -p /sbin/ldconfig
162
163#%postun pipe -p /sbin/ldconfig
164
165%post
166%wps_object_create_begin
167COURIER_FOLDER:WPFolder|Courier Daemons|<WP_DESKTOP>|TITLE=Courier Daemons;
168COURIER_AUTHD:WPProgram|Courier Auth daemon|<COURIER_FOLDER>|EXENAME=((%{_prefix}/lib/%{name}/authdaemond.exe));STARTUPDIR=((%{_prefix}/lib/%{name}));PARAMETERS=;TITLE=Courier Auth daemon;
169%wps_object_create_end
170
171%postun
172%wps_object_delete_all
173
174%clean
175%{__rm} -rf $RPM_BUILD_ROOT
176
177%files
178%defattr(-,root,root,-)
179%doc README README*html
180%doc NEWS COPYING* AUTHORS ChangeLog authldap.schema
181#%{_sysconfdir}/init.d/courier-authdaemon
182%dir %{_sysconfdir}/authlib
183%config %{_sysconfdir}/authlib/*
184%dir %attr(700,root,root) %{_localstatedir}/run/authdaemon.courier-imap
185%{_sbindir}/authdaemond
186%{_sbindir}/authenumerate.exe
187%{_sbindir}/authpasswd.exe
188%{_sbindir}/authtest.exe
189%{_sbindir}/courierlogger.exe
190%{_sbindir}/rccourier-authdaemon
191%dir %{_prefix}/lib/%{name}
192%{_prefix}/lib/%{name}/authmigrate
193%{_prefix}/lib/%{name}/sysconftool
194%{_prefix}/lib/%{name}/authdaemond.exe
195%{_prefix}/lib/%{name}/authsystem.passwd
196%{_prefix}/lib/%{name}/makedatprog.exe
197%{_prefix}/lib/%{name}/*.dll
198%{_mandir}/man1/*
199
200%files devel
201%defattr(-,root,root,-)
202#%doc authlib.html auth_*.html
203%{_bindir}/courierauthconfig.exe
204%{_includedir}/*
205%{_mandir}/man3/*
206%dir %{_prefix}/lib/%{name}/*.a
207
208%files userdb
209%defattr(-,root,root,-)
210%{_sbindir}/makeuserdb
211%{_sbindir}/pw2userdb
212%{_sbindir}/userdb
213%{_sbindir}/userdb-test-cram-md5
214#%{_sbindir}/userdbpw
215#%{_libdir}/libauthuserdb.so
216#%{_libdir}/libauthuserdb.so.0*
217%{_mandir}/man8/*userdb*
218
219#%files ldap
220#%defattr(-,root,root,-)
221#%doc README.ldap authldap.schema
222#%{_libdir}/libauthldap.so*
223
224#%files mysql
225#%defattr(-,root,root,-)
226#%{_libdir}/libauthmysql.so*
227
228#%files pgsql
229#%defattr(-,root,root,-)
230#%{_libdir}/libauthpgsql.so*
231
232#%files pipe
233#%defattr(-,root,root,-)
234#%{_libdir}/libauthpipe.so*
235
236%changelog
Note: See TracBrowser for help on using the repository browser.