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