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