SPECS: dovecot.spec - use --enable-header-install to install heade...
qboosh
qboosh at pld-linux.org
Fri Jan 11 22:46:40 CET 2008
Author: qboosh Date: Fri Jan 11 21:46:40 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- use --enable-header-install to install headers
- install libs to dirs separate from plugins tree (%{_libdir}/dovecot-devel)
---- Files affected:
SPECS:
dovecot.spec (1.78 -> 1.79)
---- Diffs:
================================================================
Index: SPECS/dovecot.spec
diff -u SPECS/dovecot.spec:1.78 SPECS/dovecot.spec:1.79
--- SPECS/dovecot.spec:1.78 Fri Jan 11 22:21:05 2008
+++ SPECS/dovecot.spec Fri Jan 11 22:46:35 2008
@@ -12,7 +12,7 @@
Name: dovecot
Version: 1.0.10
Release: 1
-License: LGPL v2.1 and MIT
+License: MIT (libraries), LGPL v2.1 (the rest)
Group: Networking/Daemons
Source0: http://dovecot.org/releases/1.0/%{name}-%{version}.tar.gz
# Source0-md5: c050fa2a7dae8984d432595e3e8183e1
@@ -139,7 +139,9 @@
%{__autoheader}
%{__automake}
%configure \
+ --disable-static \
%{?debug:--enable-debug} \
+ --enable-header-install \
%{?with_ldap:--with-ldap} \
%{?with_mysql:--with-mysql} \
%{?with_pgsql:--with-pgsql} \
@@ -170,20 +172,16 @@
touch $RPM_BUILD_ROOT/etc/security/blacklist.imap
-# devel
-for dir in deliver imap lib lib-imap lib-mail lib-storage; do
- install -d $RPM_BUILD_ROOT%{_includedir}/%{name}/$dir
- install -p -m644 src/$folder/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/$dir
-done
+rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins{,/imap}/*.la
+# devel
for dir in lib lib-imap lib-mail lib-storage; do
- install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/$dir
- install -p -m644 src/$folder/*.a $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/$dir
+ install -d $RPM_BUILD_ROOT%{_libdir}/%{name}-devel/src/$dir
+ install -p -m644 src/$dir/*.a $RPM_BUILD_ROOT%{_libdir}/%{name}-devel/src/$dir
done
+ln -sf %{_includedir}/%{name}/dovecot-config $RPM_BUILD_ROOT%{_libdir}/%{name}-devel
-for f in dovecot-config config.h stamp.h; do
- install -p -m644 $f $RPM_BUILD_ROOT%{_includedir}/%{name}
-done
+rm -r $RPM_BUILD_ROOT%{_docdir}/%{name}/wiki
%clean
rm -rf $RPM_BUILD_ROOT
@@ -254,18 +252,7 @@
%files devel
%defattr(644,root,root,755)
-%{_libdir}/%{name}/plugins/*.a
-%attr(755,root,root) %{_libdir}/%{name}/plugins/*.la
-%{_libdir}/%{name}/plugins/imap/*.a
-%attr(755,root,root) %{_libdir}/%{name}/plugins/imap/*.la
-%dir %{_libdir}/%{name}/plugins/lib
-%{_libdir}/%{name}/plugins/lib/*.a
-%dir %{_libdir}/%{name}/plugins/lib-imap
-%{_libdir}/%{name}/plugins/lib-imap/*.a
-%dir %{_libdir}/%{name}/plugins/lib-mail
-%{_libdir}/%{name}/plugins/lib-mail/*.a
-%dir %{_libdir}/%{name}/plugins/lib-storage
-%{_libdir}/%{name}/plugins/lib-storage/*.a
+%{_libdir}/%{name}-devel
%{_includedir}/%{name}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -274,6 +261,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.79 2008-01-11 21:46:35 qboosh
+- use --enable-header-install to install headers
+- install libs to dirs separate from plugins tree (%{_libdir}/dovecot-devel)
+
Revision 1.78 2008-01-11 21:21:05 qboosh
- initial -devel cleanup
- pl for -devel
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/dovecot.spec?r1=1.78&r2=1.79&f=u
More information about the pld-cvs-commit
mailing list