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