]> git.pld-linux.org Git - SPECS.git/blob - libexif-gtk.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / libexif-gtk.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4 %bcond_without  gtk2            # GTK+ 2.x version
5 %bcond_without  gtk3            # GTK+ 3.x version
6 #
7 Summary:        GTK+ widgets for libexif
8 Summary(pl.UTF-8):      Widgety GTK+ do libexif
9 Name:           libexif-gtk
10 Version:        0.5.0
11 Release:        1
12 License:        LGPL v2+
13 Group:          X11/Libraries
14 #Source0Download: https://github.com/libexif/libexif-gtk/releases
15 Source0:        https://github.com/libexif/libexif-gtk/releases/download/v%{version}/%{name}-%{version}.tar.xz
16 # Source0-md5:  2bc72a49531cb86096e9038941ec6bda
17 Patch0:         %{name}-am.patch
18 URL:            https://libexif.github.io/
19 BuildRequires:  autoconf >= 2.69
20 BuildRequires:  automake >= 1:1.9
21 BuildRequires:  gettext-tools >= 0.14.1
22 %{?with_gtk2:BuildRequires:     gtk+2-devel >= 2:2.4}
23 %{?with_gtk3:BuildRequires:     gtk+3-devel >= 3.0}
24 BuildRequires:  libexif-devel >= 1:0.6.16
25 BuildRequires:  libtool >= 2:2
26 BuildRequires:  pkgconfig
27 BuildRequires:  tar >= 1:1.22
28 BuildRequires:  xz
29 Requires:       %{name}-common = %{version}-%{release}
30 Requires:       gtk+2 >= 2:2.4
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 Library of GTK+ widgets for libexif.
35
36 %description -l pl.UTF-8
37 Biblioteka widgetów GTK+ do libexif.
38
39 %package devel
40 Summary:        Development files for libexif-gtk (GTK+ 2.x version)
41 Summary(pl.UTF-8):      Pliki programistyczne biblioteki libexif-gtk (wersja dla GTK+ 2.x)
42 Group:          X11/Development/Libraries
43 Requires:       %{name} = %{version}-%{release}
44 Requires:       %{name}-devel-common = %{version}-%{release}
45 Requires:       gtk+2-devel >= 2:2.4
46
47 %description devel
48 Development files for libexif-gtk (GTK+ 2.x version).
49
50 %description devel -l pl.UTF-8
51 Pliki programistyczne biblioteki libexif-gtk (wersja dla GTK+ 2.x).
52
53 %package static
54 Summary:        Static libexif-gtk library (GTK+ 2.x version)
55 Summary(pl.UTF-8):      Statyczna biblioteka libexif-gtk (wersja dla GTK+ 2.x)
56 Group:          X11/Development/Libraries
57 Requires:       %{name}-devel = %{version}-%{release}
58
59 %description static
60 Static libexif-gtk library (GTK+ 2.x version).
61
62 %description static -l pl.UTF-8
63 Statyczna biblioteka libexif-gtk (wersja dla GTK+ 2.x).
64
65 %package common
66 Summary:        Common files for both libexif-gtk (GTK+ 2.x/3.x) versions
67 Summary(pl.UTF-8):      Pliki wspólne dla obu wersji libexif-gtk (GTK+ 2.x/3.x)
68 Group:          Libraries
69 Requires:       libexif >= 1:0.6.16
70
71 %description common
72 Common files for both libexif-gtk (GTK+ 2.x/3.x) versions.
73
74 %description common -l pl.UTF-8
75 Pliki wspólne dla obu wersji libexif-gtk (GTK+ 2.x/3.x).
76
77 %package devel-common
78 Summary:        Header files common for both libexif-gtk (GTK+ 2.x/3.x) versions
79 Summary(pl.UTF-8):      Pliki nagłówkowe wspólne dla obu wersji libexif-gtk (GTK+ 2.x/3.x)
80 Group:          Development/Libraries
81 Requires:       %{name}-common = %{version}-%{release}
82 Requires:       libexif-devel >= 1:0.6.16
83
84 %description devel-common
85 Header files common for both libexif-gtk (GTK+ 2.x/3.x) versions.
86
87 %description devel-common -l pl.UTF-8
88 Pliki nagłówkowe wspólne dla obu wersji libexif-gtk (GTK+ 2.x/3.x).
89
90 %package -n libexif-gtk3
91 Summary:        GTK+ 3.x widgets for libexif
92 Summary(pl.UTF-8):      Widgety GTK+ 3.x do libexif
93 Group:          X11/Libraries
94 Requires:       %{name}-common = %{version}-%{release}
95 Requires:       gtk+3 >= 3.0
96
97 %description -n libexif-gtk3
98 GTK+ 3.x widgets for libexif.
99
100 %description -n libexif-gtk3 -l pl.UTF-8
101 Widgety GTK+ 3.x do libexif.
102
103 %package -n libexif-gtk3-devel
104 Summary:        Development files for libexif-gtk (GTK+ 3.x version)
105 Summary(pl.UTF-8):      Pliki programistyczne biblioteki libexif-gtk (wersja dla GTK+ 3.x)
106 Group:          X11/Development/Libraries
107 Requires:       %{name}-devel-common = %{version}-%{release}
108 Requires:       libexif-gtk3 = %{version}-%{release}
109 Requires:       gtk+3-devel >= 3.0
110
111 %description -n libexif-gtk3-devel
112 Development files for libexif-gtk (GTK+ 3.x version).
113
114 %description -n libexif-gtk3-devel -l pl.UTF-8
115 Pliki programistyczne biblioteki libexif-gtk (wersja dla GTK+ 3.x).
116
117 %package -n libexif-gtk3-static
118 Summary:        Static libexif-gtk library (GTK+ 3.x version)
119 Summary(pl.UTF-8):      Statyczna biblioteka libexif-gtk (wersja dla GTK+ 3.x)
120 Group:          X11/Development/Libraries
121 Requires:       %{name}-devel = %{version}-%{release}
122
123 %description -n libexif-gtk3-static
124 Static libexif-gtk library (GTK+ 3.x version).
125
126 %description -n libexif-gtk3-static -l pl.UTF-8
127 Statyczna biblioteka libexif-gtk (wersja dla GTK+ 3.x).
128
129 %prep
130 %setup -q
131 %patch0 -p1
132
133 %build
134 %{__gettextize}
135 %{__libtoolize}
136 %{__aclocal} -I auto-m4 -I m4m
137 %{__autoconf}
138 %{__autoheader}
139 %{__automake}
140
141 %if %{with gtk2}
142 install -d gtk2
143 cd gtk2
144 ../%configure \
145         --disable-silent-rules \
146         %{!?with_static_libs:--disable-static}
147 %{__make}
148 cd ..
149 %endif
150
151 %if %{with gtk3}
152 install -d gtk3
153 cd gtk3
154 ../%configure \
155         --disable-silent-rules \
156         %{!?with_static_libs:--disable-static} \
157         --with-gtk3
158 %{__make}
159 cd ..
160 %endif
161
162 %install
163 rm -rf $RPM_BUILD_ROOT
164
165 %if %{with gtk2}
166 %{__make} -C gtk2 install \
167         DESTDIR=$RPM_BUILD_ROOT
168
169 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libexif-gtk.la
170 %endif
171
172 %if %{with gtk2}
173 %{__make} -C gtk3 install \
174         DESTDIR=$RPM_BUILD_ROOT
175
176 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libexif-gtk3.la
177 %endif
178
179 %find_lang %{name}-5
180
181 %clean
182 rm -rf $RPM_BUILD_ROOT
183
184 %post   -p /sbin/ldconfig
185 %postun -p /sbin/ldconfig
186
187 %post   -n libexif-gtk3 -p /sbin/ldconfig
188 %postun -n libexif-gtk3 -p /sbin/ldconfig
189
190 %if %{with gtk2}
191 %files
192 %defattr(644,root,root,755)
193 %attr(755,root,root) %{_libdir}/libexif-gtk.so.*.*.*
194 %attr(755,root,root) %ghost %{_libdir}/libexif-gtk.so.5
195
196 %files devel
197 %defattr(644,root,root,755)
198 %attr(755,root,root) %{_libdir}/libexif-gtk.so
199 %{_pkgconfigdir}/libexif-gtk.pc
200
201 %if %{with static_libs}
202 %files static
203 %defattr(644,root,root,755)
204 %{_libdir}/libexif-gtk.a
205 %endif
206 %endif
207
208 %files common -f %{name}-5.lang
209 %defattr(644,root,root,755)
210 %doc ChangeLog NEWS README
211
212 %files devel-common
213 %defattr(644,root,root,755)
214 %{_includedir}/libexif-gtk
215
216 %if %{with gtk3}
217 %files -n libexif-gtk3
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_libdir}/libexif-gtk3.so.*.*.*
220 %attr(755,root,root) %ghost %{_libdir}/libexif-gtk3.so.5
221
222 %files -n libexif-gtk3-devel
223 %defattr(644,root,root,755)
224 %attr(755,root,root) %{_libdir}/libexif-gtk3.so
225 %{_pkgconfigdir}/libexif-gtk3.pc
226
227 %if %{with static_libs}
228 %files -n libexif-gtk3-static
229 %defattr(644,root,root,755)
230 %{_libdir}/libexif-gtk3.a
231 %endif
232 %endif
This page took 1.147133 seconds and 3 git commands to generate.