]> git.pld-linux.org Git - packages/libfpx.git/blob - libfpx.spec
- updated to 1.3.1-7, now maintained by ImageMagick Studio
[packages/libfpx.git] / libfpx.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 #
5 Summary:        FlashPIX OpenSource Toolkit
6 Summary(pl.UTF-8):      Biblioteka do obróbki obrazków FlashPIX
7 Name:           libfpx
8 Version:        1.3.1.7
9 Release:        1
10 License:        distributable (see COPYING)
11 Group:          Libraries
12 Source0:        http://www.imagemagick.org/download/delegates/%{name}-1.3.1-7.tar.xz
13 # Source0-md5:  1b3a5297aaae4101e84d1e50e6a853ee
14 Patch0:         %{name}-link.patch
15 URL:            http://www.imagemagick.org/
16 BuildRequires:  autoconf >= 2.60
17 BuildRequires:  automake >= 1:1.11
18 BuildRequires:  libtool >= 2:1.5
19 BuildRequires:  libstdc++-devel >= 3.2.2
20 BuildRequires:  tar >= 1:1.22
21 BuildRequires:  xz
22 Provides:       fpx
23 Obsoletes:      fpx
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 FlashPIX OpenSource Toolkit is based on source obtained from the
28 Digital Imaging Group Inc. and includes a sample FlashPIX library
29 implementation contributed by Eastman Kodak Company.
30
31 %description -l pl.UTF-8
32 FlashPIX OpenSource Toolkit jest bazowany na źródłach uzyskanych od
33 Digital Imaging Group i zawiera przykładową implementację biblioteki
34 FlashPIX, do której przyczynił się Eastman Kodak Company.
35
36 %package devel
37 Summary:        FlashPIX header file and documentation
38 Summary(pl.UTF-8):      Plik nagłówkowy i dokumentacja do FlashPIX
39 Group:          Development/Libraries
40 Requires:       %{name} = %{version}-%{release}
41 Obsoletes:      fpx-devel
42
43 %description devel
44 FlashPIX header files and programmer's documentation.
45
46 %description devel -l pl.UTF-8
47 Plik nagłówkowy potrzebny do kompilowania programów korzystających z
48 biblioteki FlashPIX oraz dokumentacja do tej biblioteki.
49
50 %package static
51 Summary:        FlashPIX static library
52 Summary(pl.UTF-8):      Statyczna biblioteka FlashPIX
53 Group:          Development/Libraries
54 Requires:       %{name}-devel = %{version}-%{release}
55 Obsoletes:      fpx-static
56
57 %description static
58 Static version of FlashPIX library.
59
60 %description static -l pl.UTF-8
61 Statyczna wersja biblioteki FlashPIX.
62
63 %prep
64 %setup -q -n %{name}-1.3.1-7
65 %patch0 -p1
66
67 ln -f flashpix.h COPYING
68
69 %build
70 %{__libtoolize}
71 %{__aclocal}
72 %{__autoconf}
73 %{__automake}
74 %configure \
75         --enable-fast-install \
76         %{!?with_static_libs:--disable-static}
77 %{__make}
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81
82 %{__make} install \
83         DESTDIR=$RPM_BUILD_ROOT
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %post   -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
90
91 %files
92 %defattr(644,root,root,755)
93 %doc AUTHORS COPYING ChangeLog NEWS README
94 %attr(755,root,root) %{_libdir}/libfpx.so.*.*.*
95 %attr(755,root,root) %ghost %{_libdir}/libfpx.so.1
96
97 %files devel
98 %defattr(644,root,root,755)
99 %doc doc/*.pdf doc/readme.txt
100 %attr(755,root,root) %{_libdir}/libfpx.so
101 %{_libdir}/libfpx.la
102 %{_includedir}/fpxlib.h
103
104 %if %{with static_libs}
105 %files static
106 %defattr(644,root,root,755)
107 %{_libdir}/libfpx.a
108 %endif
This page took 0.090085 seconds and 3 git commands to generate.