build.patch 773 B

12345678910111213141516171819202122232425262728
  1. commit 0dd47123655c52d68185f06b9da8fb0e1b925400
  2. Author: Ludwig Nussel <ludwig.nussel@suse.de>
  3. Date: Tue Feb 9 14:56:23 2010 +0100
  4. RedHat patch 2
  5. - change library file name
  6. - install devel symlink
  7. --- a/Makefile
  8. +++ b/Makefile
  9. @@ -11,7 +11,7 @@ VER = $(shell expr `pwd` : '.*-\([0-9.]*
  10. MVER = ${shell expr `pwd` : '.*-\([0-9]*\).[0-9]*'}
  11. static = ${libname}.a
  12. -shared = ${libname}.${VER}.so
  13. +shared = ${libname}.so.${VER}
  14. soname = ${libname}.so.${MVER}
  15. # overwritten by caller (e.g.: debian/rules)
  16. @@ -73,6 +73,7 @@ install_doc: docs/lockdev.3
  17. install_run: ${shared}
  18. install -m755 -d ${libdir}
  19. install -m644 ${shared} ${libdir}
  20. + ln -s ${shared} ${libdir}/liblockdev.so
  21. .PHONY: clean distclean perl-clean mostyclean
  22. perl-clean: clean