]> git.pld-linux.org Git - packages/libexif.git/blob - libexif.spec
0becabdbd5b20d421fe057617c8ebb6362d69c70
[packages/libexif.git] / libexif.spec
1 #
2 # NOTE:
3 # - exif headers should be included as <libexif/something.h>
4 #   so don't ,,fix'' pkgconfig file
5 #
6 # Conditional build:
7 %bcond_without  static_libs     # don't build static library
8 #
9 Summary:        Library for parsing EXIF files from digital cameras
10 Summary(pl.UTF-8):      Biblioteka do czytania plików EXIF z kamer cyfrowych
11 Name:           libexif
12 Version:        0.6.16
13 Release:        3
14 Epoch:          1
15 License:        MIT
16 Group:          Libraries
17 Source0:        http://dl.sourceforge.net/libexif/%{name}-%{version}.tar.bz2
18 # Source0-md5:  deee153b1ded5a944ea05d041d959eca
19 Patch0:         %{name}-pl.po-update.patch
20 Patch1:         %{name}-ac.patch
21 Patch2:         %{name}-cve-2007-6351.patch
22 Patch3:         %{name}-cve-2007-6352.patch
23 URL:            http://libexif.sourceforge.net/
24 BuildRequires:  autoconf >= 2.59
25 BuildRequires:  automake >= 1:1.9
26 BuildRequires:  doxygen
27 BuildRequires:  gettext-devel >= 0.14.1
28 BuildRequires:  libtool
29 Obsoletes:      libexif7
30 Obsoletes:      libmnote
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 Most digital cameras produce EXIF files, which are JPEG files with
35 extra tags that contain information about the image. The EXIF library
36 allows you to parse an EXIF file and read the data from those tags.
37
38 %description -l pl.UTF-8
39 Większość kamer cyfrowych tworzy pliki EXIF, które są JPEGami z
40 dodatkowymi znacznikami zawierającymi informacje o obrazie. Biblioteka
41 EXIF pozwala czytać informacje z tych znaczników.
42
43 %package devel
44 Summary:        Header files for libexif
45 Summary(pl.UTF-8):      Pliki nagłówkowe dla libexif
46 Group:          Development/Libraries
47 Requires:       %{name} = %{epoch}:%{version}-%{release}
48 Obsoletes:      libexif7-devel
49 Obsoletes:      libmnote-devel
50
51 %description devel
52 Header files for libexif.
53
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe dla libexif.
56
57 %package static
58 Summary:        Static version of libexif
59 Summary(pl.UTF-8):      Statyczna wersja libexif
60 Group:          Development/Libraries
61 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
62 Obsoletes:      libmnote-static
63
64 %description static
65 Static version of libexif.
66
67 %description static -l pl.UTF-8
68 Statyczna wersja libexif.
69
70 %package apidocs
71 Summary:        libexif API documentation
72 Summary(pl.UTF-8):      Dokumentacja API biblioteki libexif
73 Group:          Documentation
74
75 %description apidocs
76 API and internal documentation for libexif library.
77
78 %description apidocs -l pl.UTF-8
79 Dokumentacja API oraz wewnętrzna dla biblioteki libexif.
80
81 %prep
82 %setup -q
83 %patch0 -p1
84 %patch1 -p1
85 %patch2 -p1
86 %patch3 -p1
87
88 rm -f po/stamp-po
89
90 %build
91 %{__gettextize}
92 %{__libtoolize}
93 %{__aclocal} -I m4m
94 %{__autoconf}
95 %{__autoheader}
96 %{__automake}
97 %configure \
98         %{!?with_static_libs:--disable-static}
99
100 # docs generation fails with -jN>1
101 %{__make} -j1
102
103 %install
104 rm -rf $RPM_BUILD_ROOT
105
106 %{__make} install \
107         DESTDIR=$RPM_BUILD_ROOT
108
109 rm -rf $RPM_BUILD_ROOT%{_docdir}/libexif
110
111 %find_lang %{name}-12
112
113 %clean
114 rm -rf $RPM_BUILD_ROOT
115
116 %post   -p /sbin/ldconfig
117 %postun -p /sbin/ldconfig
118
119 %files -f %{name}-12.lang
120 %defattr(644,root,root,755)
121 %doc README ChangeLog
122 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
123
124 %files devel
125 %defattr(644,root,root,755)
126 %attr(755,root,root) %{_libdir}/lib*.so
127 %{_libdir}/lib*.la
128 %{_includedir}/%{name}
129 %{_pkgconfigdir}/*.pc
130
131 %if %{with static_libs}
132 %files static
133 %defattr(644,root,root,755)
134 %{_libdir}/lib*.a
135 %endif
136
137 %files apidocs
138 %defattr(644,root,root,755)
139 %doc doc/doxygen-output/libexif*
This page took 0.065557 seconds and 2 git commands to generate.