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