[packages/libraw] - pl - gomp bcond
qboosh
qboosh at pld-linux.org
Sat Sep 22 09:12:10 CEST 2012
commit 7a472efe41d58b91b195bb787f698d92f840fe1c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Sep 22 09:13:07 2012 +0200
- pl
- gomp bcond
libraw.spec | 88 +++++++++++++++++++++++++++++++++++++++++++++----------------
1 file changed, 66 insertions(+), 22 deletions(-)
---
diff --git a/libraw.spec b/libraw.spec
index f906663..cd75c0a 100644
--- a/libraw.spec
+++ b/libraw.spec
@@ -1,17 +1,24 @@
-Summary: LibRaw is a library for reading RAW files
+#
+# Conditional build:
+%bcond_without gomp # OpenMP support
+#
+Summary: LibRaw - a library for reading RAW files
+Summary(pl.UTF-8): LibRaw - biblioteka do odczytu plików RAW
Name: libraw
Version: 0.14.7
Release: 2
-License: LGPL 2.1 / CDDL 1.0 / LibRaw Software License
+License: LGPL v2.1 or CDDL v1.0 or LibRaw Software License
Group: Libraries
Source0: http://www.libraw.org/data/LibRaw-%{version}.tar.gz
# Source0-md5: 8b622d82c927d8975c22ee4316584ebd
-URL: http://www.libraw.org
-BuildRequires: libstdc++-devel
-BuildRequires: libgomp-devel
+URL: http://www.libraw.org/
+%{?with_gomp:BuildRequires: gcc >= 6:4.2}
BuildRequires: jasper-devel
-BuildRequires: libjpeg-devel
BuildRequires: lcms2-devel
+%{?with_gomp:BuildRequires: libgomp-devel}
+BuildRequires: libjpeg-devel
+BuildRequires: libstdc++-devel
+BuildRequires: pkgconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -23,36 +30,62 @@ of drawbacks have already been eliminated and part will be fixed in
future. The users of the library are provided with API to be built
into their software programs.
+%description -l pl.UTF-8
+LibRaw to biblioteka do odczytu plików RAW uzyskanych z cyfrowych
+aparatów fotograficznych (w formacie CRW/CR2, NEF, RAF, DNG i innych).
+
+LibRaw jest oparty na kodzie źródłowym dcraw, z którego część wad
+została już wyeliminowana, a część zostanie poprawiona w przyszłości.
+
%package samples
-Summary: libraw sample programs
-Group: Applications
+Summary: LibRaw sample programs
+Summary(pl.UTF-8): Programy przykładowe do LibRaw
+Group: Applications/Graphics
%description samples
LibRaw sample programs.
+%description samples -l pl.UTF-8
+Programy przykładowe do LibRaw.
+
%package devel
Summary: Header files for LibRaw
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LibRaw
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
+Requires: jasper-devel
+Requires: lcms2-devel
+%{?with_gomp:Requires: libgomp-devel}
+Requires: libjpeg-devel
+Requires: libstdc++-devel
%description devel
-Static libraries and header files for LibRaw.
+Header files for LibRaw.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki LibRaw.
%package static
-Summary: Static libraw library
+Summary: Static LibRaw library
+Summary(pl.UTF-8): Statyczna biblioteka LibRaw
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
-Static libraw library.
+Static LibRaw library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka LibRaw.
%prep
%setup -q -n LibRaw-%{version}
%build
%configure \
- LIBS="-lgomp"
-%{__make}
+ %{!?with_gomp:--disable-openmp}
+
+%{__make} \
+ %{?with_gomp:lib_libraw_la_LIBADD=-lgomp lib_libraw_r_la_LIBADD=-lgomp}
%install
rm -rf $RPM_BUILD_ROOT
@@ -60,7 +93,8 @@ rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-rm -r $RPM_BUILD_ROOT/%{_docdir}/%{name}
+# packaged as %doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -70,7 +104,8 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README* COPYRIGHT
+%doc COPYRIGHT Changelog.txt LICENSE.LibRaw.pdf README README.demosaic-packs
+%lang(ru) %doc Changelog.rus README.demosaic-packs.rus
%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
@@ -78,21 +113,30 @@ rm -rf $RPM_BUILD_ROOT
%files samples
%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/4channels
+%attr(755,root,root) %{_bindir}/dcraw_emu
+%attr(755,root,root) %{_bindir}/dcraw_half
+%attr(755,root,root) %{_bindir}/half_mt
+%attr(755,root,root) %{_bindir}/mem_image
+%attr(755,root,root) %{_bindir}/multirender_test
+%attr(755,root,root) %{_bindir}/postprocessing_benchmark
+%attr(755,root,root) %{_bindir}/raw-identify
+%attr(755,root,root) %{_bindir}/simple_dcraw
+%attr(755,root,root) %{_bindir}/unprocessed_raw
%files devel
%defattr(644,root,root,755)
-%doc doc/*
+%doc doc/{index.html,*-eng.html}
+%lang(ru) %doc doc/*-rus.html
+%attr(755,root,root) %{_libdir}/libraw.so
+%attr(755,root,root) %{_libdir}/libraw_r.so
+%{_libdir}/libraw.la
+%{_libdir}/libraw_r.la
%{_includedir}/libraw
%{_pkgconfigdir}/libraw.pc
%{_pkgconfigdir}/libraw_r.pc
-%{_libdir}/libraw.la
-%{_libdir}/libraw_r.la
-%{_libdir}/libraw.so
-%{_libdir}/libraw_r.so
%files static
%defattr(644,root,root,755)
%{_libdir}/libraw.a
%{_libdir}/libraw_r.a
-
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libraw.git/commitdiff/7a472efe41d58b91b195bb787f698d92f840fe1c
More information about the pld-cvs-commit
mailing list