]>
Commit | Line | Data |
---|---|---|
57e489a2 MB |
1 | Summary: gLabels - a GNOME program to create labels and business cards |
2 | Summary(pl.UTF-8): gLabels - program dla GNOME do tworzenia etykiet i wizytówek | |
19f5049f | 3 | Name: glabels |
ec8abf7b | 4 | Version: 3.4.1 |
5fae17ae | 5 | Release: 5 |
2761dd40 | 6 | License: GPL v3+ (libraries: LGPL v3+) |
57e489a2 | 7 | Group: X11/Applications/Graphics |
2761dd40 | 8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/glabels/3.4/%{name}-%{version}.tar.xz |
ec8abf7b | 9 | # Source0-md5: 095105ac95872bd9a767764fa60d5152 |
0882a4f4 | 10 | Patch0: %{name}-link.patch |
baae04fe | 11 | Patch1: %{name}-no-common.patch |
0882a4f4 MB |
12 | URL: http://www.glabels.org/ |
13 | BuildRequires: autoconf >= 2.64 | |
24de736e | 14 | BuildRequires: automake |
0882a4f4 | 15 | BuildRequires: barcode-devel >= 0.98 |
2761dd40 | 16 | BuildRequires: cairo-devel >= 1.14.0 |
8f80a103 | 17 | BuildRequires: docbook-dtd412-xml |
2761dd40 | 18 | BuildRequires: evolution-data-server-devel >= 3.12.0 |
7e2b4e32 | 19 | BuildRequires: gettext-tools |
2761dd40 | 20 | BuildRequires: glib2-devel >= 1:2.42.0 |
bbd08661 | 21 | BuildRequires: gnome-common >= 2.8.0 |
2761dd40 JB |
22 | BuildRequires: gtk+3-devel >= 3.14.0 |
23 | BuildRequires: gtk-doc >= 1.0 | |
0882a4f4 MB |
24 | BuildRequires: iec16022-devel >= 0.2.4 |
25 | BuildRequires: intltool >= 0.40.0 | |
2761dd40 JB |
26 | BuildRequires: librsvg-devel >= 2.39.0 |
27 | BuildRequires: libtool >= 2:2 | |
28 | BuildRequires: libxml2-devel >= 1:2.9.0 | |
29 | BuildRequires: pango-devel >= 1:1.36.0 | |
19f5049f | 30 | BuildRequires: pkgconfig |
0882a4f4 | 31 | BuildRequires: qrencode-devel >= 3.1.0 |
da7f17ef | 32 | BuildRequires: rpmbuild(macros) >= 1.752 |
b3119fdc ŁK |
33 | BuildRequires: tar >= 1:1.22 |
34 | BuildRequires: xz | |
ecf78639 | 35 | BuildRequires: yelp-tools |
0882a4f4 | 36 | BuildRequires: zint-devel >= 2.4.0 |
2761dd40 | 37 | Requires(post,postun): glib2 >= 1:2.42.0 |
2ebebbfe | 38 | Requires(post,postun): desktop-file-utils |
57e489a2 | 39 | Requires(post,postun): shared-mime-info |
0882a4f4 | 40 | Requires(post,postun): gtk-update-icon-cache |
eda7a1c6 | 41 | Requires: %{name}-libs = %{version}-%{release} |
2761dd40 JB |
42 | Requires: barcode >= 0.98 |
43 | Requires: evolution-data-server-libs >= 3.12.0 | |
44 | Requires: gtk+3 >= 3.14.0 | |
0882a4f4 | 45 | Requires: hicolor-icon-theme |
2761dd40 JB |
46 | Requires: iec16022 >= 0.2.4 |
47 | Requires: librsvg >= 2.39.0 | |
48 | Requires: qrencode-libs >= 3.1.0 | |
49 | Requires: zint >= 2.4.0 | |
19f5049f | 50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
51 | ||
52 | %description | |
53 | gLabels is a small stand-alone program for creating labels and | |
54 | business cards. | |
55 | ||
4d57a829 JR |
56 | %description -l pl.UTF-8 |
57 | gLabels jest małym, samodzielnym programem do tworzenia etykiet i | |
58 | wizytówek. | |
19f5049f | 59 | |
eda7a1c6 | 60 | %package libs |
61 | Summary: glabels shared libraries | |
f96878fa | 62 | Summary(pl.UTF-8): Biblioteki współdzielone glabels |
2761dd40 | 63 | License: LGPL v3+ |
eda7a1c6 | 64 | Group: Libraries |
2761dd40 JB |
65 | Requires: cairo >= 1.14.0 |
66 | Requires: glib2 >= 1:2.42.0 | |
67 | Requires: libxml2 >= 1:2.9.0 | |
68 | Requires: pango >= 1:1.36.0 | |
eda7a1c6 | 69 | |
70 | %description libs | |
71 | glabels shared libraries. | |
72 | ||
4d57a829 JR |
73 | %description libs -l pl.UTF-8 |
74 | Biblioteki współdzielone glabels. | |
eda7a1c6 | 75 | |
76 | %package devel | |
77 | Summary: Header files for glabels | |
f96878fa | 78 | Summary(pl.UTF-8): Pliki nagłówkowe glabels |
2761dd40 | 79 | License: LGPL v3+ |
eda7a1c6 | 80 | Group: Development/Libraries |
81 | Requires: %{name}-libs = %{version}-%{release} | |
2761dd40 JB |
82 | Requires: cairo-devel >= 1.14.0 |
83 | Requires: glib2-devel >= 1:2.42.0 | |
84 | Requires: libxml2-devel >= 1:2.9.0 | |
85 | Requires: pango-devel >= 1:1.36.0 | |
eda7a1c6 | 86 | |
87 | %description devel | |
88 | Header files for glabels. | |
89 | ||
4d57a829 JR |
90 | %description devel -l pl.UTF-8 |
91 | Pliki nagłówkowe glabels. | |
eda7a1c6 | 92 | |
93 | %package static | |
94 | Summary: glabels static library | |
f96878fa | 95 | Summary(pl.UTF-8): Statyczna biblioteka glabels |
2761dd40 | 96 | License: LGPL v3+ |
eda7a1c6 | 97 | Group: Development/Libraries |
98 | Requires: %{name}-devel = %{version}-%{release} | |
99 | ||
100 | %description static | |
101 | glabels staic library. | |
102 | ||
4d57a829 | 103 | %description static -l pl.UTF-8 |
eda7a1c6 | 104 | Statyczna biblioteka glabels. |
105 | ||
57e489a2 MB |
106 | %package apidocs |
107 | Summary: glabels library API documentation | |
108 | Summary(pl.UTF-8): Dokumentacja API biblioteki glabels | |
2761dd40 | 109 | License: CC-BY-SA v3.0 |
57e489a2 MB |
110 | Group: Documentation |
111 | Requires: gtk-doc-common | |
a960c6e2 | 112 | BuildArch: noarch |
57e489a2 MB |
113 | |
114 | %description apidocs | |
115 | glabels library API documentation. | |
116 | ||
117 | %description apidocs -l pl.UTF-8 | |
118 | Dokumentacja API biblioteki glabels. | |
119 | ||
19f5049f | 120 | %prep |
121 | %setup -q | |
48d936e9 | 122 | %patch0 -p1 |
baae04fe | 123 | %patch1 -p1 |
19f5049f | 124 | |
125 | %build | |
2ebebbfe | 126 | %{__glib_gettextize} |
9ae0d152 | 127 | %{__gtkdocize} |
0882a4f4 MB |
128 | %{__intltoolize} |
129 | %{__libtoolize} | |
bbd08661 | 130 | %{__aclocal} |
19f5049f | 131 | %{__autoheader} |
19f5049f | 132 | %{__autoconf} |
0882a4f4 | 133 | %{__automake} |
19f5049f | 134 | %configure \ |
0882a4f4 | 135 | --disable-schemas-compile \ |
2761dd40 | 136 | --disable-silent-rules \ |
9ae0d152 | 137 | --enable-gtk-doc \ |
0882a4f4 | 138 | --with-html-dir=%{_gtkdocdir} |
8f80a103 | 139 | |
19f5049f | 140 | %{__make} |
141 | ||
142 | %install | |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
145 | %{__make} install \ | |
146 | DESTDIR=$RPM_BUILD_ROOT | |
147 | ||
0882a4f4 | 148 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
2ebebbfe | 149 | |
0882a4f4 | 150 | %find_lang %{name}-3.0 --with-gnome |
19f5049f | 151 | |
24de736e JB |
152 | %clean |
153 | rm -rf $RPM_BUILD_ROOT | |
154 | ||
48d936e9 | 155 | %post |
2ebebbfe | 156 | %update_desktop_database_post |
57e489a2 | 157 | %update_mime_database |
0882a4f4 MB |
158 | %update_icon_cache hicolor |
159 | %glib_compile_schemas | |
48d936e9 | 160 | |
161 | %postun | |
2ebebbfe | 162 | %update_desktop_database_postun |
57e489a2 | 163 | %update_mime_database |
0882a4f4 MB |
164 | %update_icon_cache hicolor |
165 | %glib_compile_schemas | |
2ebebbfe | 166 | |
24723a20 | 167 | %post libs -p /sbin/ldconfig |
37a3a6ad | 168 | %postun libs -p /sbin/ldconfig |
eda7a1c6 | 169 | |
0882a4f4 | 170 | %files -f %{name}-3.0.lang |
19f5049f | 171 | %defattr(644,root,root,755) |
2761dd40 | 172 | %doc AUTHORS COPYING-TEMPLATES COPYING.README_FIRST ChangeLog NEWS README TODO |
0882a4f4 MB |
173 | %attr(755,root,root) %{_bindir}/glabels-3 |
174 | %attr(755,root,root) %{_bindir}/glabels-3-batch | |
ecf78639 | 175 | %{_datadir}/appdata/glabels-3.appdata.xml |
0882a4f4 MB |
176 | %{_datadir}/glabels-3.0 |
177 | %{_datadir}/glib-2.0/schemas/org.gnome.glabels-3.gschema.xml | |
178 | %{_datadir}/mime/packages/glabels-3.0.xml | |
2761dd40 JB |
179 | %{_mandir}/man1/glabels-3.1* |
180 | %{_mandir}/man1/glabels-3-batch.1* | |
0882a4f4 | 181 | %{_desktopdir}/glabels-3.0.desktop |
2761dd40 JB |
182 | %{_iconsdir}/hicolor/*x*/apps/glabels-3.0.png |
183 | %{_iconsdir}/hicolor/48x48/mimetypes/application-x-glabels.png | |
184 | %{_iconsdir}/hicolor/scalable/apps/glabels-3.0.svg | |
185 | %{_iconsdir}/hicolor/scalable/mimetypes/application-x-glabels.svg | |
eda7a1c6 | 186 | |
187 | %files libs | |
188 | %defattr(644,root,root,755) | |
0882a4f4 MB |
189 | %attr(755,root,root) %{_libdir}/libglabels-3.0.so.*.*.* |
190 | %attr(755,root,root) %ghost %{_libdir}/libglabels-3.0.so.8 | |
191 | %attr(755,root,root) %{_libdir}/libglbarcode-3.0.so.*.*.* | |
192 | %attr(755,root,root) %ghost %{_libdir}/libglbarcode-3.0.so.0 | |
193 | %{_datadir}/libglabels-3.0 | |
eda7a1c6 | 194 | |
195 | %files devel | |
196 | %defattr(644,root,root,755) | |
0882a4f4 MB |
197 | %attr(755,root,root) %{_libdir}/libglabels-3.0.so |
198 | %attr(755,root,root) %{_libdir}/libglbarcode-3.0.so | |
199 | %{_includedir}/libglabels-3.0 | |
200 | %{_includedir}/libglbarcode-3.0 | |
201 | %{_pkgconfigdir}/libglabels-3.0.pc | |
202 | %{_pkgconfigdir}/libglbarcode-3.0.pc | |
eda7a1c6 | 203 | |
204 | %files static | |
205 | %defattr(644,root,root,755) | |
0882a4f4 MB |
206 | %{_libdir}/libglabels-3.0.a |
207 | %{_libdir}/libglbarcode-3.0.a | |
57e489a2 MB |
208 | |
209 | %files apidocs | |
210 | %defattr(644,root,root,755) | |
0882a4f4 MB |
211 | %{_gtkdocdir}/libglabels-3.0 |
212 | %{_gtkdocdir}/libglbarcode-3.0 |