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