]>
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 |
a02d6060 | 12 | Version: 0.6.19 |
9f61253d | 13 | Release: 1 |
855a53ff | 14 | Epoch: 1 |
e7e2cc24 | 15 | License: LGPL v2+ |
61e17b9e | 16 | Group: Libraries |
a02d6060 JB |
17 | Source0: http://downloads.sourceforge.net/libexif/%{name}-%{version}.tar.bz2 |
18 | # Source0-md5: 56144a030a4c875c600b1ccf713f69f7 | |
7c2bf567 | 19 | URL: http://libexif.sourceforge.net/ |
c1990b47 | 20 | BuildRequires: autoconf >= 2.59 |
595895e3 | 21 | BuildRequires: automake >= 1:1.9 |
6196d5e1 | 22 | BuildRequires: doxygen |
c1990b47 | 23 | BuildRequires: gettext-devel >= 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 JB |
69 | Group: Documentation |
70 | ||
71 | %description apidocs | |
72 | API and internal documentation for libexif library. | |
73 | ||
0cafe918 JR |
74 | %description apidocs -l pl.UTF-8 |
75 | Dokumentacja API oraz wewnętrzna dla biblioteki libexif. | |
6196d5e1 | 76 | |
61e17b9e | 77 | %prep |
78 | %setup -q | |
80c68bde | 79 | |
61e17b9e | 80 | %build |
7a2f914a JB |
81 | %{__gettextize} |
82 | %{__libtoolize} | |
6196d5e1 | 83 | %{__aclocal} -I m4m |
7a2f914a JB |
84 | %{__autoconf} |
85 | %{__autoheader} | |
86 | %{__automake} | |
95002b87 | 87 | %configure \ |
88 | %{!?with_static_libs:--disable-static} | |
7c2bf567 | 89 | |
22016294 ER |
90 | # docs generation fails with -jN>1 |
91 | %{__make} -j1 | |
61e17b9e | 92 | |
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
61e17b9e | 95 | |
40ebb9d8 JB |
96 | %{__make} install \ |
97 | DESTDIR=$RPM_BUILD_ROOT | |
61e17b9e | 98 | |
6196d5e1 JB |
99 | rm -rf $RPM_BUILD_ROOT%{_docdir}/libexif |
100 | ||
7a2f914a | 101 | %find_lang %{name}-12 |
7c2bf567 | 102 | |
61e17b9e | 103 | %clean |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
613bb981 | 106 | %post -p /sbin/ldconfig |
107 | %postun -p /sbin/ldconfig | |
108 | ||
7a2f914a | 109 | %files -f %{name}-12.lang |
61e17b9e | 110 | %defattr(644,root,root,755) |
9f61253d JB |
111 | %doc AUTHORS ChangeLog NEWS README |
112 | %attr(755,root,root) %{_libdir}/libexif.so.*.*.* | |
113 | %attr(755,root,root) %ghost %{_libdir}/libexif.so.12 | |
61e17b9e | 114 | |
115 | %files devel | |
116 | %defattr(644,root,root,755) | |
9f61253d JB |
117 | %attr(755,root,root) %{_libdir}/libexif.so |
118 | %{_libdir}/libexif.la | |
4fb1d2fc | 119 | %{_includedir}/%{name} |
9f61253d | 120 | %{_pkgconfigdir}/libexif.pc |
61e17b9e | 121 | |
95002b87 | 122 | %if %{with static_libs} |
61e17b9e | 123 | %files static |
124 | %defattr(644,root,root,755) | |
9f61253d | 125 | %{_libdir}/libexif.a |
95002b87 | 126 | %endif |
6196d5e1 JB |
127 | |
128 | %files apidocs | |
129 | %defattr(644,root,root,755) | |
130 | %doc doc/doxygen-output/libexif* |