]> git.pld-linux.org Git - packages/libexif.git/blob - libexif.spec
- added bcond_without static_libs
[packages/libexif.git] / libexif.spec
1 %bcond_without  static_libs     # don't build static library
2 Summary:        Library for parsing EXIF files from digital cameras
3 Summary(pl):    Biblioteka do czytania plików EXIF z kamer cyfrowych
4 Name:           libexif
5 Version:        0.6.12
6 Release:        3
7 Epoch:          1
8 License:        MIT
9 Group:          Libraries
10 Source0:        http://dl.sourceforge.net/libexif/%{name}-%{version}.tar.bz2
11 # Source0-md5:  9f952ee8db0be7c53a075c34e8286d91
12 Source1:        %{name}-pl.po
13 Patch0:         %{name}-gcc4.patch
14 Patch1:         %{name}-segv.patch
15 URL:            http://libexif.sourceforge.net/
16 BuildRequires:  autoconf >= 2.59
17 BuildRequires:  automake >= 1:1.8
18 BuildRequires:  gettext-devel >= 0.14.1
19 BuildRequires:  libtool
20 Obsoletes:      libexif7
21 Obsoletes:      libmnote
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Most digital cameras produce EXIF files, which are JPEG files with
26 extra tags that contain information about the image. The EXIF library
27 allows you to parse an EXIF file and read the data from those tags.
28
29 %description -l pl
30 Wiêkszo¶æ kamer cyfrowych tworzy pliki EXIF, które s± JPEGami z
31 dodatkowymi znacznikami zawieraj±cymi informacje o obrazie. Biblioteka
32 EXIF pozwala czytaæ informacje z tych znaczników.
33
34 %package devel
35 Summary:        Header files for libexif
36 Summary(pl):    Pliki nag³ówkowe dla libexif
37 Group:          Development/Libraries
38 Requires:       %{name} = %{epoch}:%{version}-%{release}
39 Obsoletes:      libexif7-devel
40 Obsoletes:      libmnote-devel
41
42 %description devel
43 Header files for libexif.
44
45 %description devel -l pl
46 Pliki nag³ówkowe dla libexif.
47
48 %package static
49 Summary:        Static version of libexif
50 Summary(pl):    Statyczna wersja libexif
51 Group:          Development/Libraries
52 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
53 Obsoletes:      libmnote-static
54
55 %description static
56 Static version of libexif.
57
58 %description static -l pl
59 Statyczna wersja libexif.
60
61 %prep
62 %setup -q
63 %patch0 -p1
64 %patch1 -p1
65
66 cp %{SOURCE1} po/pl.po
67 %{__perl} -pi -e 's/de es fr/de es fr pl/' configure.in
68 rm -f po/stamp-po
69
70 %build
71 %{__gettextize}
72 %{__libtoolize}
73 %{__aclocal} -I m4
74 %{__autoconf}
75 %{__autoheader}
76 %{__automake}
77 %configure \
78         %{!?with_static_libs:--disable-static}
79
80 %{__make}
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84
85 %{__make} install \
86         DESTDIR=$RPM_BUILD_ROOT
87
88 %find_lang %{name}-12
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %post   -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
95
96 %files -f %{name}-12.lang
97 %defattr(644,root,root,755)
98 %doc README ChangeLog
99 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
100
101 %files devel
102 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_libdir}/lib*.so
104 %{_libdir}/lib*.la
105 %{_includedir}/%{name}
106 %{_pkgconfigdir}/*.pc
107
108 %if %{with static_libs}
109 %files static
110 %defattr(644,root,root,755)
111 %{_libdir}/lib*.a
112 %endif
This page took 0.282645 seconds and 4 git commands to generate.