summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElan Ruusamäe2012-04-02 09:49:15 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commite68276229d47b7f6447b38a28dafbf2455bf41d9 (patch)
tree4685a2e928d08dcf3b4e6f172bfb2f0b5a864231
parent143250a8f19dbd881048ce2f2d4624c8c9e71810 (diff)
downloadppp-e68276229d47b7f6447b38a28dafbf2455bf41d9.zip
ppp-e68276229d47b7f6447b38a28dafbf2455bf41d9.tar.gz
- dir to symlink conflict resolving on upgradeauto/th/ppp-2_4_5-7
Changed files: ppp.spec -> 1.154
-rw-r--r--ppp.spec11
1 files changed, 10 insertions, 1 deletions
diff --git a/ppp.spec b/ppp.spec
index 90a79af..8d5cf23 100644
--- a/ppp.spec
+++ b/ppp.spec
@@ -17,7 +17,7 @@ Summary(tr.UTF-8): PPP sunucu süreci
Summary(zh_CN.UTF-8): PPP 配置和管理软件包.
Name: ppp
Version: 2.4.5
-Release: 6
+Release: 7
Epoch: 3
License: distributable
Group: Networking/Daemons
@@ -187,6 +187,15 @@ ln -s plugins $v
%clean
rm -rf $RPM_BUILD_ROOT
+%pretrans
+# %{version} used to be directory
+if [ -d %{_libdir}/pppd/%{version} -a ! -L %{_libdir}/pppd/%{version} ]; then
+ set -e
+ rm -f %{_libdir}/pppd/plugins
+ mv %{_libdir}/pppd/{%{version},plugins}
+ ln -sn plugins %{_libdir}/pppd/%{version}
+fi
+
%files
%defattr(644,root,root,755)
%doc README.linux debian/README.debian scripts