-
Notifications
You must be signed in to change notification settings - Fork 0
/
exiv2.spec
136 lines (111 loc) · 3.39 KB
/
exiv2.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
#
# Conditional build:
%bcond_without apidocs # API documentation
%bcond_with curl # enable webready with HTTP support via curl
Summary: EXIF and IPTC metadata manipulation tools
Summary(pl.UTF-8): Narzędzia do obróbki metadanych EXIF i IPTC
Name: exiv2
Version: 0.28.2
Release: 1
License: GPL v2+
Group: Applications/Graphics
#Source0Download: https://github.com/Exiv2/exiv2/releases
Source0: https://github.com/Exiv2/exiv2/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 75a8766216a15ad104f09ab4a0eab7ca
URL: https://github.com/Exiv2/exiv2
BuildRequires: cmake >= 3.11.0
%{?with_curl:BuildRequires: curl-devel}
%{?with_apidocs:BuildRequires: doxygen}
BuildRequires: expat-devel
BuildRequires: gettext-tools
BuildRequires: inih-c++-devel
BuildRequires: libbrotli-devel
BuildRequires: libstdc++-devel >= 6:8
BuildRequires: rpm-build >= 4.6
BuildRequires: rpmbuild(macros) >= 1.605
BuildRequires: zlib-devel
Requires: %{name}-libs = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
EXIF and IPTC metadata manipulation tools.
%description -l pl.UTF-8
Narzędzia do obróbki metadanych EXIF i IPTC.
%package libs
Summary: EXIF and IPTC metadata manipulation library
Summary(pl.UTF-8): Biblioteka do obróbki metadanych EXIF i IPTC
Group: Libraries
%description libs
EXIF and IPTC metadata manipulation library.
%description libs -l pl.UTF-8
Biblioteka do obróbki metadanych EXIF i IPTC.
%package devel
Summary: EXIF and IPTC metadata manipulation library development files
Summary(pl.UTF-8): Pliki programistyczne biblioteki do obróbki metadanych EXIF i IPTC
Group: Development/Libraries
Requires: %{name}-libs = %{version}-%{release}
%{?with_curl:Requires: curl-devel}
Requires: expat-devel
Requires: inih-c++-devel
Requires: libstdc++-devel
Requires: zlib-devel
Obsoletes: exiv2-static < 0.27.0a-3
%description devel
EXIF and IPTC metadata manipulation library development files.
%description devel -l pl.UTF-8
Pliki programistyczne biblioteki do obróbki metadanych EXIF i IPTC.
%package apidocs
Summary: API documentation for exiv2 library
Summary(pl.UTF-8): Dokumentacja API biblioteki exiv2
Group: Documentation
BuildArch: noarch
%description apidocs
API documentation for exiv2 library.
%description apidocs -l pl.UTF-8
Dokumentacja API biblioteki exiv2.
%prep
%setup -q
%build
install -d build
cd build
%cmake .. \
-DCMAKE_INSTALL_DOCDIR=%{_docdir}/exiv2 \
%{?with_apidocs:-DEXIV2_BUILD_DOC=ON} \
-DEXIV2_BUILD_SAMPLES=OFF \
-DEXIV2_ENABLE_BMFF=ON \
%{?with_curl:-DEXIV2_ENABLE_CURL=ON} \
-DEXIV2_ENABLE_NLS=ON \
-DEXIV2_ENABLE_VIDEO=ON \
%{?with_curl:-DEXIV2_ENABLE_WEBREADY=ON}
%{__make}
%if %{with apidocs}
%{__make} doc
%endif
%install
rm -rf $RPM_BUILD_ROOT
%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc README.md doc/ChangeLog doc/cmd.txt
%attr(755,root,root) %{_bindir}/exiv2
%{_mandir}/man1/exiv2.1*
%files libs
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libexiv2.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libexiv2.so.28
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libexiv2.so
%{_includedir}/exiv2
%{_pkgconfigdir}/exiv2.pc
%{_libdir}/cmake/exiv2
%if %{with apidocs}
%files apidocs
%defattr(644,root,root,755)
%{_docdir}/exiv2
%endif