]> git.pld-linux.org Git - packages/Yap.git/blobdiff - Yap.spec
- massive attack: adding Source-md5
[packages/Yap.git] / Yap.spec
index 4892c1c5b26e25a518178e94b5f755d73aada4f0..51bde7120f4ff4f28221a378b206b0412b8907cc 100644 (file)
--- a/Yap.spec
+++ b/Yap.spec
@@ -2,10 +2,11 @@ Summary:      Prolog Compiler
 Summary(pl):   Kompilator Prologu
 Name:          Yap
 Version:       4.3.22
-Release:       1
+Release:       2
 License:       Artistic
 Group:         Development/Languages
 Source0:       http://www.ncc.up.pt/~vsc/Yap/Yap4.3/%{name}-%{version}.tar.gz
+# Source0-md5: f242618fc9e17ed2accd8e6b0ed68753
 URL:           http://www.ncc.up.pt/~vsc/Yap
 BuildRequires: readline-devel
 BuildRequires: indent
@@ -30,7 +31,7 @@ z Prologiem Quintus i SICStus.
 Summary:       Static library for YAP Prolog
 Summary(pl):   Statyczna biblioteka dla kompilatora Prologu YAP
 Group:         Development/Languages
-Requires:      %{name}-%{version}
+Requires:      %{name} = %{version}
 
 %description static
 Static library for YAP prolog.
@@ -52,13 +53,18 @@ Statyczna biblioteka dla kompilatora prologu YAP.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_infodir}
+install -d $RPM_BUILD_ROOT{%{_infodir},%{_examplesdir}/%{name}-%{version}}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
 install docs/*info* $RPM_BUILD_ROOT%{_infodir}
 
+for d in chr clpqr; do
+       mv -f $RPM_BUILD_ROOT%{_datadir}/Yap/$d/examples \
+               $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/$d
+done
+
 %post
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 /sbin/ldconfig
@@ -78,6 +84,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/Yap
 %{_includedir}/Yap
 %{_infodir}/*info*
+%{_examplesdir}/%{name}-%{version}
 
 %files static
 %defattr(644,root,root,755)
This page took 0.152275 seconds and 4 git commands to generate.