packages: bacula/bacula.spec - packaging %ghost as symlink only brings trou...
glen
glen at pld-linux.org
Wed Mar 17 17:09:29 CET 2010
Author: glen Date: Wed Mar 17 16:09:29 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- packaging %ghost as symlink only brings trouble (extra Filelinktos deps, when payload is not even in rpm)
- btw, how about packaging the ghosts in main package?
---- Files affected:
packages/bacula:
bacula.spec (1.130 -> 1.131)
---- Diffs:
================================================================
Index: packages/bacula/bacula.spec
diff -u packages/bacula/bacula.spec:1.130 packages/bacula/bacula.spec:1.131
--- packages/bacula/bacula.spec:1.130 Wed Mar 17 10:18:06 2010
+++ packages/bacula/bacula.spec Wed Mar 17 17:09:24 2010
@@ -544,23 +544,23 @@
# install libraries for all the database backends
# ldconfig will add the soname symlinks when one of the packages is installed
for database in %{databases} ; do
- for libfile in libbacsql/$database%{_libdir}/lib*-*.so ; do
- orig_name=`basename $libfile`
- file_prefix="${orig_name%%-*.so}"
- file_suffix="${orig_name#*-}"
- file_name="$file_prefix-$database-$file_suffix"
- install "$libfile" "$RPM_BUILD_ROOT/%{_libdir}/$file_name"
- ln -sf "$file_name" "$RPM_BUILD_ROOT/%{_libdir}/$orig_name"
+ for libfile in libbacsql/$database%{_libdir}/lib*-*.so; do
+ orig_name=${libfile##*/}
+ file_prefix=${orig_name%%-*.so}
+ file_suffix=${orig_name#*-}
+ file_name=$file_prefix-$database-$file_suffix
+ install -p $libfile $RPM_BUILD_ROOT/%{_libdir}/$file_name
+ touch $RPM_BUILD_ROOT/%{_libdir}/$orig_name
done
done
-install %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-dir
-install %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-fd
-install %{SOURCE12} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-sd
-install %{SOURCE13} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-dir
-install %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/bacula-dir
-install %{SOURCE15} $RPM_BUILD_ROOT/etc/sysconfig/bacula-fd
-install %{SOURCE16} $RPM_BUILD_ROOT/etc/sysconfig/bacula-sd
+install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-dir
+install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-fd
+install -p %{SOURCE12} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-sd
+cp -a %{SOURCE13} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-dir
+cp -a %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/bacula-dir
+cp -a %{SOURCE15} $RPM_BUILD_ROOT/etc/sysconfig/bacula-fd
+cp -a %{SOURCE16} $RPM_BUILD_ROOT/etc/sysconfig/bacula-sd
%if %{with console_wx}
# tray-monitor is for regular users
@@ -1013,6 +1013,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.131 2010/03/17 16:09:24 glen
+- packaging %ghost as symlink only brings trouble (extra Filelinktos deps, when payload is not even in rpm)
+- btw, how about packaging the ghosts in main package?
+
Revision 1.130 2010/03/17 09:18:06 jajcus
- enable python scripting
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/bacula/bacula.spec?r1=1.130&r2=1.131&f=u
More information about the pld-cvs-commit
mailing list