]> git.pld-linux.org Git - packages/libnsfb.git/commitdiff
fix lib64 systems install; verbose files; ghost soname symlink auto/th/libnsfb-0.1.0-1
authorElan Ruusamäe <glen@delfi.ee>
Sat, 27 Apr 2013 14:49:27 +0000 (17:49 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 27 Apr 2013 14:49:27 +0000 (17:49 +0300)
lib.patch [new file with mode: 0644]
libnsfb.spec

diff --git a/lib.patch b/lib.patch
new file mode 100644 (file)
index 0000000..e178684
--- /dev/null
+++ b/lib.patch
@@ -0,0 +1,17 @@
+--- libnsfb-0.1.0/Makefile~    2013-04-27 17:46:15.000000000 +0300
++++ libnsfb-0.1.0/Makefile     2013-04-27 17:47:10.907357377 +0300
+@@ -98,11 +98,12 @@
+ include $(NSBUILD)/Makefile.top
+ # Extra installation rules
++lib := lib
+ I := /include
+ INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libnsfb.h
+ INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libnsfb_plot.h
+ INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libnsfb_plot_util.h
+ INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libnsfb_event.h
+ INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libnsfb_cursor.h
+-INSTALL_ITEMS := $(INSTALL_ITEMS) /lib/pkgconfig:lib$(COMPONENT).pc.in
+-INSTALL_ITEMS := $(INSTALL_ITEMS) /lib:$(OUTPUT)
++INSTALL_ITEMS := $(INSTALL_ITEMS) /$(lib)/pkgconfig:lib$(COMPONENT).pc.in
++INSTALL_ITEMS := $(INSTALL_ITEMS) /$(lib):$(OUTPUT)
index 17debe39d2ef022b072315f550d6771976534932..45725c4ae2474807556ab0970670819c3550782a 100644 (file)
@@ -11,6 +11,7 @@ Group:                Libraries
 Source0:       http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
 # Source0-md5: 686a4d2064edfed47d2653588c3b5512
 Patch0:                %{name}-link.patch
+Patch1:                lib.patch
 URL:           http://www.netsurf-browser.org/projects/libnsfb/
 BuildRequires: SDL-devel
 BuildRequires: libvncserver-devel
@@ -67,6 +68,7 @@ Statyczna biblioteka libnsfb.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 export CC="%{__cc}"
@@ -85,12 +87,14 @@ export LDFLAGS="%{rpmldflags}"
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__make} install Q= \
+       lib=%{_lib} \
        PREFIX=%{_prefix} \
        COMPONENT_TYPE=lib-shared \
        DESTDIR=$RPM_BUILD_ROOT
 
 %if %{with static_libs}
 %{__make} install Q= \
+       lib=%{_lib} \
        PREFIX=%{_prefix} \
        COMPONENT_TYPE=lib-static \
        DESTDIR=$RPM_BUILD_ROOT
@@ -104,16 +108,17 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
+%attr(755,root,root) %{_libdir}/libnsfb.so.*.*.*
+%ghost %{_libdir}/libnsfb.so.0
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_includedir}/*.h
-%{_pkgconfigdir}/*pc
+%{_libdir}/libnsfb.so
+%{_includedir}/libnsfb*.h
+%{_pkgconfigdir}/libnsfb.pc
 
 %if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libnsfb.a
 %endif
This page took 0.042487 seconds and 4 git commands to generate.