]> git.pld-linux.org Git - packages/libexif.git/blob - libexif.spec
- removed la file, rel. 2
[packages/libexif.git] / libexif.spec
1 #
2 # NOTE:
3 # - exif headers should be included as <libexif/something.h>
4 #   so don't ,,fix'' pkgconfig file
5 #
6 # Conditional build:
7 %bcond_without  static_libs     # don't build static library
8 #
9 Summary:        Library for parsing EXIF files from digital cameras
10 Summary(pl.UTF-8):      Biblioteka do czytania plików EXIF z kamer cyfrowych
11 Name:           libexif
12 Version:        0.6.20
13 Release:        2
14 Epoch:          1
15 License:        LGPL v2+
16 Group:          Libraries
17 Source0:        http://downloads.sourceforge.net/libexif/%{name}-%{version}.tar.bz2
18 # Source0-md5:  19844ce6b5d075af16f0d45de1e8a6a3
19 URL:            http://libexif.sourceforge.net/
20 BuildRequires:  autoconf >= 2.59
21 BuildRequires:  automake >= 1:1.9
22 BuildRequires:  doxygen
23 BuildRequires:  gettext-devel >= 0.14.1
24 BuildRequires:  libtool
25 Obsoletes:      libexif7
26 Obsoletes:      libmnote
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
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.
33
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.
38
39 %package devel
40 Summary:        Header files for libexif
41 Summary(pl.UTF-8):      Pliki nagłówkowe dla libexif
42 Group:          Development/Libraries
43 Requires:       %{name} = %{epoch}:%{version}-%{release}
44 Obsoletes:      libexif7-devel
45 Obsoletes:      libmnote-devel
46
47 %description devel
48 Header files for libexif.
49
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe dla libexif.
52
53 %package static
54 Summary:        Static version of libexif
55 Summary(pl.UTF-8):      Statyczna wersja libexif
56 Group:          Development/Libraries
57 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
58 Obsoletes:      libmnote-static
59
60 %description static
61 Static version of libexif.
62
63 %description static -l pl.UTF-8
64 Statyczna wersja libexif.
65
66 %package apidocs
67 Summary:        libexif API documentation
68 Summary(pl.UTF-8):      Dokumentacja API biblioteki libexif
69 Group:          Documentation
70
71 %description apidocs
72 API and internal documentation for libexif library.
73
74 %description apidocs -l pl.UTF-8
75 Dokumentacja API oraz wewnętrzna dla biblioteki libexif.
76
77 %prep
78 %setup -q
79
80 %build
81 %{__gettextize}
82 %{__libtoolize}
83 %{__aclocal} -I m4m
84 %{__autoconf}
85 %{__autoheader}
86 %{__automake}
87 %configure \
88         %{!?with_static_libs:--disable-static}
89
90 # docs generation fails with -jN>1
91 %{__make} -j1
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT
98
99 %{__rm} -r $RPM_BUILD_ROOT{%{_docdir}/libexif,%{_libdir}/libexif.la}
100
101 %find_lang %{name}-12
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %post   -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
108
109 %files -f %{name}-12.lang
110 %defattr(644,root,root,755)
111 %doc AUTHORS ChangeLog NEWS README
112 %attr(755,root,root) %{_libdir}/libexif.so.*.*.*
113 %attr(755,root,root) %ghost %{_libdir}/libexif.so.12
114
115 %files devel
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/libexif.so
118 %{_includedir}/%{name}
119 %{_pkgconfigdir}/%{name}.pc
120
121 %if %{with static_libs}
122 %files static
123 %defattr(644,root,root,755)
124 %{_libdir}/libexif.a
125 %endif
126
127 %files apidocs
128 %defattr(644,root,root,755)
129 %doc doc/doxygen-output/libexif*
This page took 0.085824 seconds and 3 git commands to generate.