]> git.pld-linux.org Git - packages/libexif.git/blame - libexif.spec
- License is LGPL (v2+)
[packages/libexif.git] / libexif.spec
CommitLineData
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 9Summary: Library for parsing EXIF files from digital cameras
182013db 10Summary(pl.UTF-8): Biblioteka do czytania plików EXIF z kamer cyfrowych
61e17b9e 11Name: libexif
9f61253d
JB
12Version: 0.6.17
13Release: 1
855a53ff 14Epoch: 1
e7e2cc24 15License: LGPL v2+
61e17b9e 16Group: Libraries
7a2f914a 17Source0: http://dl.sourceforge.net/libexif/%{name}-%{version}.tar.bz2
9f61253d 18# Source0-md5: f7cf4e623a48c9a3b13f7f95f0a41015
6196d5e1 19Patch0: %{name}-pl.po-update.patch
7c2bf567 20URL: http://libexif.sourceforge.net/
c1990b47 21BuildRequires: autoconf >= 2.59
595895e3 22BuildRequires: automake >= 1:1.9
6196d5e1 23BuildRequires: doxygen
c1990b47 24BuildRequires: gettext-devel >= 0.14.1
7a2f914a 25BuildRequires: libtool
6366ae79 26Obsoletes: libexif7
665bd263
JB
27Obsoletes: libmnote
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61e17b9e 29
30%description
665bd263
JB
31Most digital cameras produce EXIF files, which are JPEG files with
32extra tags that contain information about the image. The EXIF library
33allows you to parse an EXIF file and read the data from those tags.
61e17b9e 34
0cafe918
JR
35%description -l pl.UTF-8
36Większość kamer cyfrowych tworzy pliki EXIF, które są JPEGami z
37dodatkowymi znacznikami zawierającymi informacje o obrazie. Biblioteka
38EXIF pozwala czytać informacje z tych znaczników.
61e17b9e 39
40%package devel
41Summary: Header files for libexif
182013db 42Summary(pl.UTF-8): Pliki nagłówkowe dla libexif
61e17b9e 43Group: Development/Libraries
665bd263 44Requires: %{name} = %{epoch}:%{version}-%{release}
6366ae79 45Obsoletes: libexif7-devel
665bd263 46Obsoletes: libmnote-devel
61e17b9e 47
48%description devel
49Header files for libexif.
50
0cafe918
JR
51%description devel -l pl.UTF-8
52Pliki nagłówkowe dla libexif.
61e17b9e 53
54%package static
55Summary: Static version of libexif
182013db 56Summary(pl.UTF-8): Statyczna wersja libexif
61e17b9e 57Group: Development/Libraries
665bd263
JB
58Requires: %{name}-devel = %{epoch}:%{version}-%{release}
59Obsoletes: libmnote-static
61e17b9e 60
61%description static
62Static version of libexif.
63
0cafe918 64%description static -l pl.UTF-8
61e17b9e 65Statyczna wersja libexif.
66
6196d5e1
JB
67%package apidocs
68Summary: libexif API documentation
182013db 69Summary(pl.UTF-8): Dokumentacja API biblioteki libexif
6196d5e1
JB
70Group: Documentation
71
72%description apidocs
73API and internal documentation for libexif library.
74
0cafe918
JR
75%description apidocs -l pl.UTF-8
76Dokumentacja API oraz wewnętrzna dla biblioteki libexif.
6196d5e1 77
61e17b9e 78%prep
79%setup -q
8724f0c2 80%patch0 -p1
61e17b9e 81
80c68bde
JB
82rm -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
98rm -rf $RPM_BUILD_ROOT
61e17b9e 99
40ebb9d8
JB
100%{__make} install \
101 DESTDIR=$RPM_BUILD_ROOT
61e17b9e 102
6196d5e1
JB
103rm -rf $RPM_BUILD_ROOT%{_docdir}/libexif
104
7a2f914a 105%find_lang %{name}-12
7c2bf567 106
61e17b9e 107%clean
108rm -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*
This page took 0.114195 seconds and 4 git commands to generate.