[PATCH] librep 0.91.0 spec



Attached patch fixes:

- URL is http://sawfish.wikia.com/, not sourceforge
- Source URL is tuxfamily
- librep has to be compiled with rpath (previously not?)
- rpath must be removed after compile (chrpath)
- THANKS, BUGS, TREE, HACKING files are removed from tarball

If my mailer corrupts long lines see: http://b.bbbs.net/saw/librep.patch


diff --git a/librep.spec.in b/librep.spec.in
index a968b2c..854ee11 100644
--- a/librep.spec.in
+++ b/librep.spec.in
@@ -4,10 +4,11 @@ Release: 1%{?dist}
 Summary: An embeddable LISP environment
 License: GPLv2+
 Group: Development/Languages
-Source: http://download.sourceforge.net/librep/librep-%{version}.tar.bz2
-URL: http://librep.sourceforge.net/
-Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
+Source0: http://download.tuxfamily.org/sawfish/%{name}/%{name}-%{version}.tar.bz2
+URL: http://sawfish.wikia.com/
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: gmp-devel, gdbm-devel, readline-devel, libffi-devel, texinfo
+BuildRequires: chrpath
 
 %if %{?_emacs_sitelispdir:1}%{!?_emacs_sitelispdir:0}
 %define emacs_lispdir %{_emacs_sitelispdir}
@@ -46,14 +47,13 @@ nicely interacts and integrates into emacs.
 
 %build
 %configure --with-readline --enable-shared --disable-static
-sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
-sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
 make %{?_smp_mflags}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
+chrpath --delete $RPM_BUILD_ROOT%{_bindir}/rep
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -71,8 +71,9 @@ fi
 
 %files
 %defattr(-,root,root,-)
-%doc NEWS README THANKS TODO BUGS TREE HACKING
+%doc NEWS README TODO
 %dir %{_libdir}/rep/
+%dir %{_libdir}/rep/%{version}/
 %{_bindir}/rep
 %{_bindir}/rep-remote
 %{_datadir}/rep/
@@ -99,6 +100,10 @@ fi
 %{emacs_lispdir}/*.el
 
 %changelog
+* Sat Sep 25 2010 Kim B. Heino <b bbbs net> - 0.91.0-1
+- fix rpath again
+- fix doc-files, url, misc fixes
+
 * Sun Jan 10 2010 Kim B. Heino <b bbbs net> - 0.90.6-1
 - fix devel package, fix rpmlint warnings
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]