]> git.pld-linux.org Git - packages/exiv2.git/blame - exiv2.spec
- check-files cleanup
[packages/exiv2.git] / exiv2.spec
CommitLineData
cb5efecf
JB
1#
2# Conditional build:
3%bcond_with curl # enable webready with HTTP support via curl
4%bcond_with libssh # enable webready with SSH support via libssh
5
01db93bd
ER
6Summary: EXIF and IPTC metadata manipulation tools
7Summary(pl.UTF-8): Narzędzia do obróbki metadanych EXIF i IPTC
2ed429b9 8Name: exiv2
897df3dd 9Version: 0.26
cb5efecf 10Release: 1
193c9aa0 11License: GPL v2+
8e00bd9d 12Group: Applications/Graphics
92a2a169 13#Source0Download: http://www.exiv2.org/download.html
897df3dd
AM
14Source0: http://www.exiv2.org/builds/%{name}-%{version}-trunk.tar.gz
15# Source0-md5: 5399e3b570d7f9205f0e76d47582da4c
4ac2cd63 16Patch0: %{name}-mkinstalldirs.patch
769b1cb6 17Patch1: %{name}-png_support.patch
21ff7476 18URL: http://www.exiv2.org/
f8b7c239 19BuildRequires: autoconf >= 2.61
193c9aa0 20BuildRequires: automake
cb5efecf 21%{?with_curl:BuildRequires: curl-devel}
c18eedaa 22BuildRequires: expat-devel
a07acf56 23BuildRequires: gettext-tools
cb5efecf 24%{?with_libssh:BuildRequires: libssh-devel}
2ed429b9 25BuildRequires: libstdc++-devel
47a48176 26BuildRequires: libtool >= 2:2.0
193c9aa0 27BuildRequires: zlib-devel
e630c462 28Requires: %{name}-libs = %{version}-%{release}
2ed429b9 29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
01db93bd 32EXIF and IPTC metadata manipulation tools.
ebce9581 33
d4ecc369 34%description -l pl.UTF-8
01db93bd 35Narzędzia do obróbki metadanych EXIF i IPTC.
2ed429b9 36
37%package libs
01db93bd
ER
38Summary: EXIF and IPTC metadata manipulation library
39Summary(pl.UTF-8): Biblioteka do obróbki metadanych EXIF i IPTC
2ed429b9 40Group: Libraries
41
42%description libs
01db93bd 43EXIF and IPTC metadata manipulation library.
2ed429b9 44
d4ecc369 45%description libs -l pl.UTF-8
01db93bd 46Biblioteka do obróbki metadanych EXIF i IPTC.
ebce9581 47
2ed429b9 48%package devel
01db93bd
ER
49Summary: EXIF and IPTC metadata manipulation library development files
50Summary(pl.UTF-8): Pliki programistyczne biblioteki do obróbki metadanych EXIF i IPTC
2ed429b9 51Group: Development/Libraries
e630c462 52Requires: %{name}-libs = %{version}-%{release}
cb5efecf
JB
53%{?with_curl:Requires: curl-devel}
54Requires: expat-devel
55%{?with_libssh:Requires: libssh-devel}
e630c462 56Requires: libstdc++-devel
193c9aa0 57Requires: zlib-devel
2ed429b9 58
59%description devel
01db93bd 60EXIF and IPTC metadata manipulation library development files.
2ed429b9 61
d4ecc369 62%description devel -l pl.UTF-8
01db93bd 63Pliki programistyczne biblioteki do obróbki metadanych EXIF i IPTC.
ebce9581 64
2ed429b9 65%package static
01db93bd
ER
66Summary: EXIF and IPTC metadata manipulation static library
67Summary(pl.UTF-8): Statyczna biblioteka do obróbki metadanych EXIF i IPTC
2ed429b9 68Group: Development/Libraries
e630c462 69Requires: %{name}-devel = %{version}-%{release}
2ed429b9 70
71%description static
01db93bd 72EXIF and IPTC metadata manipulation static library.
2ed429b9 73
d4ecc369 74%description static -l pl.UTF-8
01db93bd 75Statyczna biblioteka do obróbki metadanych EXIF i IPTC.
ebce9581 76
2ed429b9 77%prep
897df3dd 78%setup -q -n %{name}-trunk
4ac2cd63 79%patch0 -p0
769b1cb6 80%patch1 -p1
2ed429b9 81
193c9aa0
JB
82ln -s config/configure.ac .
83
cb5efecf 84# AX_CXX_CHECK_FLAG from old autoconf-archive, missing in acinclude or separate file
3a86f705
JB
85tail -n +10113 config/aclocal.m4 >> acinclude.m4
86
2ed429b9 87%build
2c521f16 88%{__libtoolize} --install
193c9aa0
JB
89%{__aclocal}
90%{__autoconf}
e4e253d9 91# don't touch autoheader, config.h.in has been manually modified
cb5efecf
JB
92%configure \
93 --enable-video \
94%if %{with curl} || %{with libssh}
95 --enable-webready \
96 %{!?with_curl:--without-curl} \
97 %{!?with_libssh:--without-ssh}
98%endif
e4e253d9 99
e630c462
JB
100%{__make} \
101 CFLAGS="%{rpmcflags} -Wall" \
102 CXXFLAGS="%{rpmcxxflags} -Wall"
2ed429b9 103
104%install
105rm -rf $RPM_BUILD_ROOT
106
107%{__make} install \
7fda263c 108 incdir=%{_includedir}/exiv2 \
109 libdir=%{_libdir} \
110 bindir=%{_bindir} \
2ed429b9 111 DESTDIR=$RPM_BUILD_ROOT
112
cb5efecf
JB
113# obsoleted by pkg-config
114%{__rm} $RPM_BUILD_ROOT%{_libdir}/libexiv2.la
115# let rpm autodetect dependencies
116chmod 755 $RPM_BUILD_ROOT%{_libdir}/libexiv2.so*
8e976261
JB
117# samples (exifprint, exiv2json) are not installed, so don't package man
118%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/exiv2samples.1
cb5efecf 119
99f68a7f
RT
120%find_lang %{name}
121
2ed429b9 122%clean
123rm -rf $RPM_BUILD_ROOT
124
69953bc2
ER
125%post libs -p /sbin/ldconfig
126%postun libs -p /sbin/ldconfig
127
99f68a7f 128%files -f %{name}.lang
2ed429b9 129%defattr(644,root,root,755)
130%doc doc/ChangeLog README
50bae65e 131%attr(755,root,root) %{_bindir}/%{name}
0fc8fa4b 132%{_mandir}/man1/exiv2.1*
2ed429b9 133
134%files libs
135%defattr(644,root,root,755)
69953bc2 136%attr(755,root,root) %{_libdir}/libexiv2.so.*.*.*
897df3dd 137%attr(755,root,root) %ghost %{_libdir}/libexiv2.so.26
2ed429b9 138
139%files devel
140%defattr(644,root,root,755)
e630c462 141%attr(755,root,root) %{_libdir}/libexiv2.so
ebce9581 142%{_includedir}/%{name}
e4e253d9 143%{_pkgconfigdir}/exiv2.pc
2ed429b9 144
145%files static
146%defattr(644,root,root,755)
e630c462 147%{_libdir}/libexiv2.a
This page took 0.110322 seconds and 4 git commands to generate.