- added %post - make symlink to binary placed in %{_datadir}/compupic
authordarekr <darekr@pld-linux.org>
Tue, 5 Dec 2006 22:37:34 +0000 (22:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  to execute properly. but i don't know how to resolve the problem from TODO
  In installation script author wrote symlink has to exist.

Changed files:
    compupic.spec -> 1.13

compupic.spec

index 5a52cf8..85e3013 100644 (file)
@@ -40,7 +40,6 @@ mv $RPM_BUILD_ROOT%{_datadir}/compupic/README .
 cd $RPM_BUILD_ROOT%{_datadir}/compupic
 %{__perl} -pi -e 's/libn/FOOB/g' compupic
 %{__perl} -pi -e 's/nss/FOO/g' compupic
-ln compupic ../../bin/compupic
 cd -
 
 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
@@ -48,10 +47,12 @@ install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+ln -s %{_datadir}/compupic/compupic /usr/bin/compupic
+
 %files
 %defattr(644,root,root,755)
 %doc README LICENSE
-%attr(755,root,root) %{_bindir}/compupic
 %dir %{_datadir}/compupic
 # XXX: it can't be in %{_datadir}
 %attr(755,root,root) %{_datadir}/compupic/compupic
This page took 0.057251 seconds and 4 git commands to generate.