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