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