]> git.pld-linux.org Git - packages/libraw.git/blob - libraw.spec
cd75c0af777ac6b86ffa04501bf3ed65b2b37f07
[packages/libraw.git] / libraw.spec
1 #
2 # Conditional build:
3 %bcond_without  gomp    # OpenMP support
4 #
5 Summary:        LibRaw - a library for reading RAW files
6 Summary(pl.UTF-8):      LibRaw - biblioteka do odczytu plików RAW
7 Name:           libraw
8 Version:        0.14.7
9 Release:        2
10 License:        LGPL v2.1 or CDDL v1.0 or LibRaw Software License
11 Group:          Libraries
12 Source0:        http://www.libraw.org/data/LibRaw-%{version}.tar.gz
13 # Source0-md5:  8b622d82c927d8975c22ee4316584ebd
14 URL:            http://www.libraw.org/
15 %{?with_gomp:BuildRequires:     gcc >= 6:4.2}
16 BuildRequires:  jasper-devel
17 BuildRequires:  lcms2-devel
18 %{?with_gomp:BuildRequires:     libgomp-devel}
19 BuildRequires:  libjpeg-devel
20 BuildRequires:  libstdc++-devel
21 BuildRequires:  pkgconfig
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 LibRaw is a library for reading RAW files obtained from digital photo
26 cameras (CRW/CR2, NEF, RAF, DNG, and others).
27
28 LibRaw is based on the source codes of the dcraw utility, where part
29 of drawbacks have already been eliminated and part will be fixed in
30 future. The users of the library are provided with API to be built
31 into their software programs.
32
33 %description -l pl.UTF-8
34 LibRaw to biblioteka do odczytu plików RAW uzyskanych z cyfrowych
35 aparatów fotograficznych (w formacie CRW/CR2, NEF, RAF, DNG i innych).
36
37 LibRaw jest oparty na kodzie źródłowym dcraw, z którego część wad
38 została już wyeliminowana, a część zostanie poprawiona w przyszłości.
39
40 %package samples
41 Summary:        LibRaw sample programs
42 Summary(pl.UTF-8):      Programy przykładowe do LibRaw
43 Group:          Applications/Graphics
44
45 %description samples
46 LibRaw sample programs.
47
48 %description samples -l pl.UTF-8
49 Programy przykładowe do LibRaw.
50
51 %package devel
52 Summary:        Header files for LibRaw
53 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki LibRaw
54 Group:          Development/Libraries
55 Requires:       %{name} = %{version}-%{release}
56 Requires:       jasper-devel
57 Requires:       lcms2-devel
58 %{?with_gomp:Requires:  libgomp-devel}
59 Requires:       libjpeg-devel
60 Requires:       libstdc++-devel
61
62 %description devel
63 Header files for LibRaw.
64
65 %description devel -l pl.UTF-8
66 Pliki nagłówkowe biblioteki LibRaw.
67
68 %package static
69 Summary:        Static LibRaw library
70 Summary(pl.UTF-8):      Statyczna biblioteka LibRaw
71 Group:          Development/Libraries
72 Requires:       %{name}-devel = %{version}-%{release}
73
74 %description static
75 Static LibRaw library.
76
77 %description static -l pl.UTF-8
78 Statyczna biblioteka LibRaw.
79
80 %prep
81 %setup -q -n LibRaw-%{version}
82
83 %build
84 %configure \
85         %{!?with_gomp:--disable-openmp}
86
87 %{__make} \
88         %{?with_gomp:lib_libraw_la_LIBADD=-lgomp lib_libraw_r_la_LIBADD=-lgomp}
89
90 %install
91 rm -rf $RPM_BUILD_ROOT
92
93 %{__make} install \
94         DESTDIR=$RPM_BUILD_ROOT
95
96 # packaged as %doc
97 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %files
106 %defattr(644,root,root,755)
107 %doc COPYRIGHT Changelog.txt LICENSE.LibRaw.pdf README README.demosaic-packs
108 %lang(ru) %doc Changelog.rus README.demosaic-packs.rus
109 %ghost %attr(755,root,root) %{_libdir}/libraw.so.5
110 %attr(755,root,root) %{_libdir}/libraw.so.5.*
111 %ghost %attr(755,root,root) %{_libdir}/libraw_r.so.5
112 %attr(755,root,root) %{_libdir}/libraw_r.so.5.*
113
114 %files samples
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_bindir}/4channels
117 %attr(755,root,root) %{_bindir}/dcraw_emu
118 %attr(755,root,root) %{_bindir}/dcraw_half
119 %attr(755,root,root) %{_bindir}/half_mt
120 %attr(755,root,root) %{_bindir}/mem_image
121 %attr(755,root,root) %{_bindir}/multirender_test
122 %attr(755,root,root) %{_bindir}/postprocessing_benchmark
123 %attr(755,root,root) %{_bindir}/raw-identify
124 %attr(755,root,root) %{_bindir}/simple_dcraw
125 %attr(755,root,root) %{_bindir}/unprocessed_raw
126
127 %files devel
128 %defattr(644,root,root,755)
129 %doc doc/{index.html,*-eng.html}
130 %lang(ru) %doc doc/*-rus.html
131 %attr(755,root,root) %{_libdir}/libraw.so
132 %attr(755,root,root) %{_libdir}/libraw_r.so
133 %{_libdir}/libraw.la
134 %{_libdir}/libraw_r.la
135 %{_includedir}/libraw
136 %{_pkgconfigdir}/libraw.pc
137 %{_pkgconfigdir}/libraw_r.pc
138
139 %files static
140 %defattr(644,root,root,755)
141 %{_libdir}/libraw.a
142 %{_libdir}/libraw_r.a
This page took 0.090969 seconds and 2 git commands to generate.