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