]>
Commit | Line | Data |
---|---|---|
debba741 | 1 | Summary: An XMP support library |
7cc2b3a5 | 2 | Summary(pl.UTF-8): Biblioteka obsługująca XMP |
debba741 | 3 | Name: exempi |
bc5c5806 | 4 | Version: 2.0.1 |
df41f371 | 5 | Release: 1 |
debba741 PZ |
6 | License: BSD |
7 | Group: Libraries | |
8 | Source0: http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.gz | |
bc5c5806 | 9 | # Source0-md5: 8d72412c8a1e0330c4fa57da2d0ef96e |
ba4e058e | 10 | URL: http://libopenraw.freedesktop.org/wiki/Exempi |
26d74ddd JB |
11 | BuildRequires: boost-devel >= 1.33.1 |
12 | BuildRequires: expat-devel >= 1.95 | |
7cc2b3a5 | 13 | BuildRequires: libstdc++-devel |
debba741 PZ |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
7cc2b3a5 JB |
17 | XMP parsing and IO library. |
18 | ||
19 | %description -l pl.UTF-8 | |
20 | Biblioteka do analizy oraz wejścia/wyjścia XMP. | |
debba741 PZ |
21 | |
22 | %package devel | |
7cc2b3a5 JB |
23 | Summary: Header files for exempi |
24 | Summary(pl.UTF-8): Pliki nagłówkowe exempi | |
debba741 | 25 | Group: Development/Libraries |
7cc2b3a5 | 26 | Requires: %{name} = %{version}-%{release} |
26d74ddd JB |
27 | Requires: expat-devel >= 1.95 |
28 | Requires: libstdc++-devel | |
debba741 PZ |
29 | |
30 | %description devel | |
31 | Header files for exempi. | |
32 | ||
7cc2b3a5 JB |
33 | %description devel -l pl.UTF-8 |
34 | Pliki nagłówkowe exempi. | |
35 | ||
debba741 | 36 | %package static |
7cc2b3a5 JB |
37 | Summary: Static exempi library |
38 | Summary(pl.UTF-8): Statyczna biblioteka exempi | |
debba741 | 39 | Group: Development/Libraries |
7cc2b3a5 | 40 | Requires: %{name}-devel = %{version}-%{release} |
debba741 PZ |
41 | |
42 | %description static | |
7cc2b3a5 JB |
43 | Static exempi library. |
44 | ||
45 | %description static -l pl.UTF-8 | |
46 | Statyczna biblioteka exempi. | |
debba741 | 47 | |
a61a9ec4 JB |
48 | %package samples |
49 | Summary: Sample exempi programs | |
50 | Summary(pl.UTF-8): Przykładowe programy exempi | |
51 | Group: Applications/Archiving | |
7a2400b9 | 52 | # doesn't require base, statically linked with exempi code |
a61a9ec4 JB |
53 | |
54 | %description samples | |
55 | Sample programs using exempi library. | |
56 | ||
57 | %description devel -l pl.UTF-8 | |
58 | Przykładowe programy używające biblioteki exempi. | |
59 | ||
debba741 PZ |
60 | %prep |
61 | %setup -q | |
62 | ||
63 | %build | |
7a2400b9 JB |
64 | # configure fails on boost linking check |
65 | %configure \ | |
66 | ax_cv_boost_unit_test_framework=no | |
debba741 PZ |
67 | %{__make} |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
df41f371 TP |
71 | install -d $RPM_BUILD_ROOT%{_bindir} |
72 | ||
debba741 PZ |
73 | %{__make} install \ |
74 | DESTDIR=$RPM_BUILD_ROOT | |
75 | ||
df41f371 TP |
76 | install samples/source/{dumpmainxmp,dumpxmp,xmpcoverage,xmpfilescoverage} $RPM_BUILD_ROOT%{_bindir} |
77 | ||
debba741 PZ |
78 | %clean |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
7cc2b3a5 JB |
81 | %post -p /sbin/ldconfig |
82 | %postun -p /sbin/ldconfig | |
83 | ||
debba741 PZ |
84 | %files |
85 | %defattr(644,root,root,755) | |
26d74ddd | 86 | %doc AUTHORS COPYING ChangeLog NEWS README |
7a2400b9 JB |
87 | %attr(755,root,root) %{_libdir}/libexempi.so.*.*.* |
88 | %attr(755,root,root) %ghost %{_libdir}/libexempi.so.3 | |
debba741 PZ |
89 | |
90 | %files devel | |
91 | %defattr(644,root,root,755) | |
92 | %attr(755,root,root) %{_libdir}/libexempi.so | |
93 | %{_libdir}/libexempi.la | |
bf30a5e8 | 94 | %{_includedir}/exempi-2.0 |
7a2400b9 | 95 | %{_pkgconfigdir}/exempi-2.0.pc |
debba741 PZ |
96 | |
97 | %files static | |
98 | %defattr(644,root,root,755) | |
99 | %{_libdir}/libexempi.a | |
a61a9ec4 JB |
100 | |
101 | %files samples | |
102 | %defattr(644,root,root,755) | |
103 | %attr(755,root,root) %{_bindir}/* |