]>
Commit | Line | Data |
---|---|---|
2c67cf86 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # unit tests | |
4 | ||
cea7cca4 JB |
5 | Summary: An XMP metadata support library |
6 | Summary(pl.UTF-8): Biblioteka obsługująca metadane XMP | |
debba741 | 7 | Name: exempi |
0ce0a9a3 | 8 | Version: 2.5.0 |
e1a9c22d | 9 | Release: 1 |
debba741 PZ |
10 | License: BSD |
11 | Group: Libraries | |
0ce0a9a3 | 12 | #Source0Download: https://libopenraw.freedesktop.org/exempi/ |
e1a9c22d | 13 | Source0: https://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.bz2 |
0ce0a9a3 JB |
14 | # Source0-md5: e0976661e4a09b6206228c8b8b447b53 |
15 | URL: https://libopenraw.freedesktop.org/exempi/ | |
2c67cf86 | 16 | %{?with_tests:BuildRequires: boost-devel >= 1.48.0} |
26d74ddd | 17 | BuildRequires: expat-devel >= 1.95 |
eb8a27a0 | 18 | BuildRequires: libstdc++-devel >= 6:4.4 |
065ff787 | 19 | BuildRequires: zlib-devel |
debba741 PZ |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
cea7cca4 | 23 | XMP metadata parsing and IO library. |
7cc2b3a5 JB |
24 | |
25 | %description -l pl.UTF-8 | |
cea7cca4 | 26 | Biblioteka do analizy oraz wejścia/wyjścia metadanych XMP. |
debba741 PZ |
27 | |
28 | %package devel | |
7cc2b3a5 JB |
29 | Summary: Header files for exempi |
30 | Summary(pl.UTF-8): Pliki nagłówkowe exempi | |
debba741 | 31 | Group: Development/Libraries |
7cc2b3a5 | 32 | Requires: %{name} = %{version}-%{release} |
26d74ddd | 33 | Requires: expat-devel >= 1.95 |
eb8a27a0 | 34 | Requires: libstdc++-devel >= 6:4.4 |
065ff787 | 35 | Requires: zlib-devel |
debba741 PZ |
36 | |
37 | %description devel | |
38 | Header files for exempi. | |
39 | ||
7cc2b3a5 JB |
40 | %description devel -l pl.UTF-8 |
41 | Pliki nagłówkowe exempi. | |
42 | ||
debba741 | 43 | %package static |
7cc2b3a5 JB |
44 | Summary: Static exempi library |
45 | Summary(pl.UTF-8): Statyczna biblioteka exempi | |
debba741 | 46 | Group: Development/Libraries |
7cc2b3a5 | 47 | Requires: %{name}-devel = %{version}-%{release} |
debba741 PZ |
48 | |
49 | %description static | |
7cc2b3a5 JB |
50 | Static exempi library. |
51 | ||
52 | %description static -l pl.UTF-8 | |
53 | Statyczna biblioteka exempi. | |
debba741 | 54 | |
a61a9ec4 JB |
55 | %package samples |
56 | Summary: Sample exempi programs | |
57 | Summary(pl.UTF-8): Przykładowe programy exempi | |
58 | Group: Applications/Archiving | |
7a2400b9 | 59 | # doesn't require base, statically linked with exempi code |
a61a9ec4 JB |
60 | |
61 | %description samples | |
62 | Sample programs using exempi library. | |
63 | ||
83909717 | 64 | %description samples -l pl.UTF-8 |
a61a9ec4 JB |
65 | Przykładowe programy używające biblioteki exempi. |
66 | ||
debba741 PZ |
67 | %prep |
68 | %setup -q | |
69 | ||
70 | %build | |
7a2400b9 JB |
71 | # configure fails on boost linking check |
72 | %configure \ | |
2c67cf86 JB |
73 | --disable-silent-rules \ |
74 | %{!?with_tests:--disable-unittest} | |
cea7cca4 | 75 | %{__make} |
debba741 | 76 | |
2c67cf86 JB |
77 | %if %{with tests} |
78 | %{__make} check | |
79 | %endif | |
80 | ||
debba741 PZ |
81 | %install |
82 | rm -rf $RPM_BUILD_ROOT | |
df41f371 TP |
83 | install -d $RPM_BUILD_ROOT%{_bindir} |
84 | ||
debba741 PZ |
85 | %{__make} install \ |
86 | DESTDIR=$RPM_BUILD_ROOT | |
87 | ||
5ff9f5d6 JB |
88 | # obsoleted by pkg-config |
89 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libexempi.la | |
90 | ||
df41f371 TP |
91 | install samples/source/{dumpmainxmp,dumpxmp,xmpcoverage,xmpfilescoverage} $RPM_BUILD_ROOT%{_bindir} |
92 | ||
debba741 PZ |
93 | %clean |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
7cc2b3a5 JB |
96 | %post -p /sbin/ldconfig |
97 | %postun -p /sbin/ldconfig | |
98 | ||
debba741 PZ |
99 | %files |
100 | %defattr(644,root,root,755) | |
065ff787 | 101 | %doc AUTHORS COPYING ChangeLog NEWS README TODO |
d45ee4fe | 102 | %attr(755,root,root) %{_bindir}/exempi |
7a2400b9 | 103 | %attr(755,root,root) %{_libdir}/libexempi.so.*.*.* |
0ce0a9a3 | 104 | %attr(755,root,root) %ghost %{_libdir}/libexempi.so.8 |
d45ee4fe | 105 | %{_mandir}/man1/exempi.1* |
debba741 PZ |
106 | |
107 | %files devel | |
108 | %defattr(644,root,root,755) | |
109 | %attr(755,root,root) %{_libdir}/libexempi.so | |
bf30a5e8 | 110 | %{_includedir}/exempi-2.0 |
7a2400b9 | 111 | %{_pkgconfigdir}/exempi-2.0.pc |
debba741 PZ |
112 | |
113 | %files static | |
114 | %defattr(644,root,root,755) | |
115 | %{_libdir}/libexempi.a | |
a61a9ec4 JB |
116 | |
117 | %files samples | |
118 | %defattr(644,root,root,755) | |
d45ee4fe JB |
119 | %attr(755,root,root) %{_bindir}/dumpmainxmp |
120 | %attr(755,root,root) %{_bindir}/dumpxmp | |
121 | %attr(755,root,root) %{_bindir}/xmpcoverage | |
122 | %attr(755,root,root) %{_bindir}/xmpfilescoverage |