]> git.pld-linux.org Git - packages/exempi.git/blame - exempi.spec
- updated boost dependency, required only for tests
[packages/exempi.git] / exempi.spec
CommitLineData
2c67cf86
JB
1#
2# Conditional build:
3%bcond_without tests # unit tests
4
cea7cca4
JB
5Summary: An XMP metadata support library
6Summary(pl.UTF-8): Biblioteka obsługująca metadane XMP
debba741 7Name: exempi
3c65b5ba 8Version: 2.4.5
e1a9c22d 9Release: 1
debba741
PZ
10License: BSD
11Group: Libraries
e1a9c22d 12Source0: https://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.bz2
3c65b5ba 13# Source0-md5: bb7a06ef8bbf79a59e32562b198daefd
e1a9c22d 14URL: https://libopenraw.freedesktop.org/wiki/Exempi
2c67cf86 15%{?with_tests:BuildRequires: boost-devel >= 1.48.0}
26d74ddd 16BuildRequires: expat-devel >= 1.95
eb8a27a0 17BuildRequires: libstdc++-devel >= 6:4.4
065ff787 18BuildRequires: zlib-devel
debba741
PZ
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
cea7cca4 22XMP metadata parsing and IO library.
7cc2b3a5
JB
23
24%description -l pl.UTF-8
cea7cca4 25Biblioteka do analizy oraz wejścia/wyjścia metadanych XMP.
debba741
PZ
26
27%package devel
7cc2b3a5
JB
28Summary: Header files for exempi
29Summary(pl.UTF-8): Pliki nagłówkowe exempi
debba741 30Group: Development/Libraries
7cc2b3a5 31Requires: %{name} = %{version}-%{release}
26d74ddd 32Requires: expat-devel >= 1.95
eb8a27a0 33Requires: libstdc++-devel >= 6:4.4
065ff787 34Requires: zlib-devel
debba741
PZ
35
36%description devel
37Header files for exempi.
38
7cc2b3a5
JB
39%description devel -l pl.UTF-8
40Pliki nagłówkowe exempi.
41
debba741 42%package static
7cc2b3a5
JB
43Summary: Static exempi library
44Summary(pl.UTF-8): Statyczna biblioteka exempi
debba741 45Group: Development/Libraries
7cc2b3a5 46Requires: %{name}-devel = %{version}-%{release}
debba741
PZ
47
48%description static
7cc2b3a5
JB
49Static exempi library.
50
51%description static -l pl.UTF-8
52Statyczna biblioteka exempi.
debba741 53
a61a9ec4
JB
54%package samples
55Summary: Sample exempi programs
56Summary(pl.UTF-8): Przykładowe programy exempi
57Group: Applications/Archiving
7a2400b9 58# doesn't require base, statically linked with exempi code
a61a9ec4
JB
59
60%description samples
61Sample programs using exempi library.
62
83909717 63%description samples -l pl.UTF-8
a61a9ec4
JB
64Przykł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
81rm -rf $RPM_BUILD_ROOT
df41f371
TP
82install -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
90install samples/source/{dumpmainxmp,dumpxmp,xmpcoverage,xmpfilescoverage} $RPM_BUILD_ROOT%{_bindir}
91
debba741
PZ
92%clean
93rm -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
This page took 0.093635 seconds and 4 git commands to generate.