]> git.pld-linux.org Git - packages/exempi.git/blobdiff - exempi.spec
Update to 2.4.4
[packages/exempi.git] / exempi.spec
index ceafba64f607a9d3ea057777d0f1dcde4b7584e5..6ccbbaff2cf7cc316ac726e1c3f1fbc8134a67f8 100644 (file)
@@ -1,29 +1,33 @@
-Summary:       An XMP support library
-Summary(pl.UTF-8):     Biblioteka obsługująca XMP
+Summary:       An XMP metadata support library
+Summary(pl.UTF-8):     Biblioteka obsługująca metadane XMP
 Name:          exempi
-Version:       1.99.4
-Release:       1.1
+Version:       2.4.4
+Release:       1
 License:       BSD
 Group:         Libraries
-Source0:       http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.gz
-# Source0-md5: 7efeb1c35d19016607911d4ba89c3745
-BuildRequires: boost-devel
-BuildRequires: expat-devel
-BuildRequires: libstdc++-devel
-BuildConflicts:        boost-test-devel
+Source0:       https://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.bz2
+# Source0-md5: a335b032f0174bb2f3e152fb442e4603
+URL:           https://libopenraw.freedesktop.org/wiki/Exempi
+BuildRequires: boost-devel >= 1.33.1
+BuildRequires: expat-devel >= 1.95
+BuildRequires: libstdc++-devel >= 6:4.4
+BuildRequires: zlib-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-XMP parsing and IO library.
+XMP metadata parsing and IO library.
 
 %description -l pl.UTF-8
-Biblioteka do analizy oraz wejścia/wyjścia XMP.
+Biblioteka do analizy oraz wejścia/wyjścia metadanych XMP.
 
 %package devel
 Summary:       Header files for exempi
 Summary(pl.UTF-8):     Pliki nagłówkowe exempi
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
+Requires:      expat-devel >= 1.95
+Requires:      libstdc++-devel >= 6:4.4
+Requires:      zlib-devel
 
 %description devel
 Header files for exempi.
@@ -43,18 +47,40 @@ Static exempi library.
 %description static -l pl.UTF-8
 Statyczna biblioteka exempi.
 
+%package samples
+Summary:       Sample exempi programs
+Summary(pl.UTF-8):     Przykładowe programy exempi
+Group:         Applications/Archiving
+# doesn't require base, statically linked with exempi code
+
+%description samples
+Sample programs using exempi library.
+
+%description samples -l pl.UTF-8
+Przykładowe programy używające biblioteki exempi.
+
 %prep
 %setup -q
 
 %build
-%configure
+# configure fails on boost linking check
+%configure \
+       ax_cv_boost_unit_test_framework=no \
+       --disable-silent-rules
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libexempi.la
+
+install samples/source/{dumpmainxmp,dumpxmp,xmpcoverage,xmpfilescoverage} $RPM_BUILD_ROOT%{_bindir}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -63,16 +89,25 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README COPYING ChangeLog
-%attr(755,root,root) %{_libdir}/libexempi.so.*.*
+%doc AUTHORS COPYING ChangeLog NEWS README TODO
+%attr(755,root,root) %{_bindir}/exempi
+%attr(755,root,root) %{_libdir}/libexempi.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libexempi.so.3
+%{_mandir}/man1/exempi.1*
 
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libexempi.so
-%{_libdir}/libexempi.la
 %{_includedir}/exempi-2.0
-%{_pkgconfigdir}/*.pc
+%{_pkgconfigdir}/exempi-2.0.pc
 
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libexempi.a
+
+%files samples
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/dumpmainxmp
+%attr(755,root,root) %{_bindir}/dumpxmp
+%attr(755,root,root) %{_bindir}/xmpcoverage
+%attr(755,root,root) %{_bindir}/xmpfilescoverage
This page took 0.059234 seconds and 4 git commands to generate.