[packages/libraw] Version: 0.14.7

jajcus jajcus at pld-linux.org
Fri Sep 21 09:22:26 CEST 2012


commit 2071f71c95f41aeb296d69f3dc17ea3c14fe6455
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Fri Sep 21 09:22:02 2012 +0200

    Version: 0.14.7

 libraw-pkgconfig.patch | 48 ---------------------------------------------
 libraw.spec            | 53 ++++++++++++++++++++++++++------------------------
 2 files changed, 28 insertions(+), 73 deletions(-)
---
diff --git a/libraw.spec b/libraw.spec
index a3bb31c..c38f3d3 100644
--- a/libraw.spec
+++ b/libraw.spec
@@ -1,20 +1,17 @@
-# TODO:
-# - Docs
-# - Get upstream to include proper configure!
-
-%define _packname LibRaw
-
 Summary:	LibRaw is a library for reading RAW files
 Name:		libraw
-Version:	0.11.3
+Version:	0.14.7
 Release:	1
 License:	LGPL 2.1 / CDDL 1.0 / LibRaw Software License
 Group:		Libraries
-Source0:	http://www.libraw.org/data/%{_packname}-%{version}.tar.gz
-# Source0-md5:	16d1113166979f4f9e133e350e9e5872
-Patch0:		%{name}-pkgconfig.patch
+Source0:	http://www.libraw.org/data/LibRaw-%{version}.tar.gz
+# Source0-md5:	8b622d82c927d8975c22ee4316584ebd
 URL:		http://www.libraw.org
 BuildRequires:	libstdc++-devel
+BuildRequires:	libgomp-devel
+BuildRequires:	jasper-devel
+BuildRequires:	libjpeg-devel
+BuildRequires:	lcms2-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -46,26 +43,23 @@ Group:		Development/Libraries
 Requires:	%{name}-devel = %{version}-%{release}
 
 %description static
-Static FOO library.
+Static libraw library.
 
 %prep
-%setup -q -n %{_packname}-%{version}
-%patch0 -p1
+%setup -q -n LibRaw-%{version}
 
 %build
+%configure \
+	LIBS="-lgomp"
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-#%{__make} install \
-	#DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_bindir},%{_pkgconfigdir}}
-cp -R libraw $RPM_BUILD_ROOT%{_includedir}
-install lib/libraw{,_r}.a $RPM_BUILD_ROOT%{_libdir}
-install bin/[a-z]* $RPM_BUILD_ROOT%{_bindir}
-install *.pc $RPM_BUILD_ROOT%{_pkgconfigdir}
+rm -r $RPM_BUILD_ROOT/%{_docdir}/%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -73,22 +67,31 @@ rm -rf $RPM_BUILD_ROOT
 %post	-p /sbin/ldconfig
 %postun	-p /sbin/ldconfig
 
+%files
+%defattr(644,root,root,755)
+%doc README* COPYRIGHT
+%ghost %attr(755,root,root) %{_libdir}/libraw.so.5
+%attr(755,root,root) %{_libdir}/libraw.so.5.*
+%ghost %attr(755,root,root) %{_libdir}/libraw_r.so.5
+%attr(755,root,root) %{_libdir}/libraw_r.so.5.*
+
 %files samples
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/*
 
 %files devel
 %defattr(644,root,root,755)
+%doc doc/*
 %{_includedir}/libraw
 %{_pkgconfigdir}/libraw.pc
 %{_pkgconfigdir}/libraw_r.pc
-%{_libdir}/libraw.a
-%{_libdir}/libraw_r.a
+%{_libdir}/libraw.la
+%{_libdir}/libraw_r.la
+%{_libdir}/libraw.so
+%{_libdir}/libraw_r.so
 
-%if 0
-# only static library built, included in the -devel package
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libraw.a
 %{_libdir}/libraw_r.a
-%endif
+
diff --git a/libraw-pkgconfig.patch b/libraw-pkgconfig.patch
deleted file mode 100644
index ace3dc0..0000000
--- a/libraw-pkgconfig.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-'diff --git a/Makefile b/Makefile
-index 51ba805..8e9dac2 100644
---- a/Makefile
-+++ b/Makefile
-@@ -20,6 +20,7 @@ all_samples: bin/raw-identify bin/simple_dcraw  bin/dcraw_emu bin/dcraw_half bin
- install: library
- 	@if [ -d /usr/local/include ] ; then cp -R libraw /usr/local/include/ ; else echo 'no /usr/local/include' ; fi
- 	@if [ -d /usr/local/lib ] ; then cp lib/libraw.a lib/libraw_r.a /usr/local/lib/ ; else echo 'no /usr/local/lib' ; fi
-+	@if [ -d /usr/local/lib/pkgconfig ] ; then cp libraw.pc libraw_r.pc /usr/local/lib/pkgconfig ; else echo 'no /usr/local/lib/pkgconfig' ; fi
- 
- install-binaries: all_samples
- 	@if [ -d /usr/local/bin ] ; then cp bin/[a-z]* /usr/local/bin/ ; else echo 'no /usr/local/bin' ; fi
-diff --git a/libraw.pc b/libraw.pc
-new file mode 100644
-index 0000000..15ec862
---- /dev/null
-+++ b/libraw.pc
-@@ -0,0 +1,12 @@
-+prefix=/usr
-+exec_prefix=${prefix}
-+libdir=${exec_prefix}/lib
-+includedir=${prefix}/include
-+
-+Name: libraw
-+Description: Raw image decoder library (non-thread-safe)
-+Requires: 
-+Version: 0.9.1
-+Libs: -L${libdir} -lraw -lstdc++
-+Cflags: -I${includedir}/libraw
-+
-diff --git a/libraw_r.pc b/libraw_r.pc
-new file mode 100644
-index 0000000..b54242b
---- /dev/null
-+++ b/libraw_r.pc
-@@ -0,0 +1,12 @@
-+prefix=/usr
-+exec_prefix=${prefix}
-+libdir=${exec_prefix}/lib
-+includedir=${prefix}/include
-+
-+Name: libraw
-+Description: Raw image decoder library (thread-safe)
-+Requires: 
-+Version: 0.9.1
-+Libs: -L${libdir} -lraw_r -lstdc++
-+Cflags: -I${includedir}/libraw
-+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libraw.git/commitdiff/2071f71c95f41aeb296d69f3dc17ea3c14fe6455



More information about the pld-cvs-commit mailing list