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