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