]> git.pld-linux.org Git - packages/libfpx.git/blobdiff - libfpx.spec
- updated to 1.3.1-10 (fixes CVE-2017-12921 CVE-2017-12925 and possibly CVE-2017...
[packages/libfpx.git] / libfpx.spec
index 4c49b5eb81403d909421b869a269e09162c6d11d..8811d271c695e62ea90c6d8955a107679b201995 100644 (file)
@@ -1,23 +1,26 @@
+#
+# Conditional build:
+%bcond_without static_libs     # don't build static library
+#
 Summary:       FlashPIX OpenSource Toolkit
-Summary(pl):   Biblioteka do obróbki obrazków FlashPIX
-Name:          fpx
-Version:       1.2.0
-Release:       3
-License:       distributable (see COPYING for details)
+Summary(pl.UTF-8):     Biblioteka do obróbki obrazków FlashPIX
+Name:          libfpx
+Version:       1.3.1.10
+Release:       1
+License:       distributable (see COPYING)
 Group:         Libraries
-# Strange... [URL] says you can order it (for money) and doesn't contain any
-# link, but sources can be freely redistributed. Can be found on any IM mirror.
-Source0:       ftp://ftp.simplesystems.org/pub/ImageMagick/delegates/%{name}-%{version}.tar.gz
-Patch0:                %{name}-wchar-conflict.patch
-Patch1:                %{name}-swap.patch
-Patch2:                %{name}-statfs.patch
-Patch3:                %{name}-shared.patch
-Patch4:                %{name}-nolibrt.patch
-URL:           http://www.digitalimaging.org/i_flashpix.html
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: libtool
-BuildRequires: gcc-c++
+Source0:       http://www.imagemagick.org/download/delegates/%{name}-1.3.1-10.tar.xz
+# Source0-md5: 6855850cde24262e3d7fd7b8514d0b1d
+Patch0:                %{name}-link.patch
+URL:           http://www.imagemagick.org/
+BuildRequires: autoconf >= 2.60
+BuildRequires: automake >= 1:1.11
+BuildRequires: libtool >= 2:1.5
+BuildRequires: libstdc++-devel >= 3.2.2
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+Provides:      fpx
+Obsoletes:     fpx
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -25,60 +28,59 @@ FlashPIX OpenSource Toolkit is based on source obtained from the
 Digital Imaging Group Inc. and includes a sample FlashPIX library
 implementation contributed by Eastman Kodak Company.
 
-%description -l pl
-FlashPIX OpenSource Toolkit jest bazowany na ¼ród³ach uzyskanych od
-Digital Imaging Group i zawiera przyk³adow± implementacjê biblioteki
-FlashPIX, do której przyczyni³ siê Eastman Kodak Company.
+%description -l pl.UTF-8
+FlashPIX OpenSource Toolkit jest bazowany na źródłach uzyskanych od
+Digital Imaging Group i zawiera przykładową implementację biblioteki
+FlashPIX, do której przyczynił się Eastman Kodak Company.
 
 %package devel
 Summary:       FlashPIX header file and documentation
-Summary(pl):   Plik nag³ówkowy i dokumentacja do FlashPIX
+Summary(pl.UTF-8):     Plik nagłówkowy i dokumentacja do FlashPIX
 Group:         Development/Libraries
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}-%{release}
+Obsoletes:     fpx-devel
 
 %description devel
 FlashPIX header files and programmer's documentation.
 
-%description devel -l pl
-Plik nag³ówkowy potrzebny do kompilowania programów korzystaj±cych z
+%description devel -l pl.UTF-8
+Plik nagłówkowy potrzebny do kompilowania programów korzystających z
 biblioteki FlashPIX oraz dokumentacja do tej biblioteki.
 
 %package static
 Summary:       FlashPIX static library
-Summary(pl):   Statyczna biblioteka FlashPIX
+Summary(pl.UTF-8):     Statyczna biblioteka FlashPIX
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{version}-%{release}
+Obsoletes:     fpx-static
 
 %description static
 Static version of FlashPIX library.
 
-%description static -l pl
+%description static -l pl.UTF-8
 Statyczna wersja biblioteki FlashPIX.
 
 %prep
-%setup -q -n lib%{name}-%{version}
+%setup -q -n %{name}-1.3.1-10
 %patch0 -p1
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
-%patch4 -p1
-mv -f oless/h/wchar.h oless/h/owchar.h
+
+ln -f flashpix.h COPYING
 
 %build
-rm -f missing
-libtoolize --copy --force
-aclocal
-autoconf
-automake -a -c
-%configure
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure \
+       --enable-fast-install \
+       %{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-
-gzip -9nf AUTHORS COPYING ChangeLog NEWS README doc/readme.txt
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -88,16 +90,19 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
-%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%doc AUTHORS COPYING ChangeLog NEWS README
+%attr(755,root,root) %{_libdir}/libfpx.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libfpx.so.1
 
 %files devel
 %defattr(644,root,root,755)
-%doc doc/*.pdf doc/*.gz
-%attr(755,root,root) %{_libdir}/lib*.so
-%attr(755,root,root) %{_libdir}/lib*.la
-%{_includedir}/*
+%doc doc/*.pdf doc/readme.txt
+%attr(755,root,root) %{_libdir}/libfpx.so
+%{_libdir}/libfpx.la
+%{_includedir}/fpxlib.h
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libfpx.a
+%endif
This page took 0.06717 seconds and 4 git commands to generate.