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