]>
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 |
2761dd40 | 4 | Version: 3.4.0 |
71cb9b5d | 5 | Release: 2 |
2761dd40 | 6 | License: GPL v3+ (libraries: LGPL v3+) |
57e489a2 | 7 | Group: X11/Applications/Graphics |
2761dd40 JB |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/glabels/3.4/%{name}-%{version}.tar.xz |
9 | # Source0-md5: 6b364a487b9856b831c9db0e845e67a2 | |
0882a4f4 MB |
10 | Patch0: %{name}-link.patch |
11 | URL: http://www.glabels.org/ | |
12 | BuildRequires: autoconf >= 2.64 | |
24de736e | 13 | BuildRequires: automake |
0882a4f4 | 14 | BuildRequires: barcode-devel >= 0.98 |
2761dd40 | 15 | BuildRequires: cairo-devel >= 1.14.0 |
8f80a103 | 16 | BuildRequires: docbook-dtd412-xml |
2761dd40 | 17 | BuildRequires: evolution-data-server-devel >= 3.12.0 |
7e2b4e32 | 18 | BuildRequires: gettext-tools |
2761dd40 | 19 | BuildRequires: glib2-devel >= 1:2.42.0 |
bbd08661 | 20 | BuildRequires: gnome-common >= 2.8.0 |
2761dd40 JB |
21 | BuildRequires: gtk+3-devel >= 3.14.0 |
22 | BuildRequires: gtk-doc >= 1.0 | |
0882a4f4 MB |
23 | BuildRequires: iec16022-devel >= 0.2.4 |
24 | BuildRequires: intltool >= 0.40.0 | |
2761dd40 JB |
25 | BuildRequires: librsvg-devel >= 2.39.0 |
26 | BuildRequires: libtool >= 2:2 | |
27 | BuildRequires: libxml2-devel >= 1:2.9.0 | |
28 | BuildRequires: pango-devel >= 1:1.36.0 | |
19f5049f | 29 | BuildRequires: pkgconfig |
0882a4f4 MB |
30 | BuildRequires: qrencode-devel >= 3.1.0 |
31 | BuildRequires: rpmbuild(macros) >= 1.592 | |
b3119fdc ŁK |
32 | BuildRequires: tar >= 1:1.22 |
33 | BuildRequires: xz | |
ecf78639 | 34 | BuildRequires: yelp-tools |
0882a4f4 | 35 | BuildRequires: zint-devel >= 2.4.0 |
2761dd40 | 36 | Requires(post,postun): glib2 >= 1:2.42.0 |
2ebebbfe | 37 | Requires(post,postun): desktop-file-utils |
57e489a2 | 38 | Requires(post,postun): shared-mime-info |
0882a4f4 | 39 | Requires(post,postun): gtk-update-icon-cache |
eda7a1c6 | 40 | Requires: %{name}-libs = %{version}-%{release} |
2761dd40 JB |
41 | Requires: barcode >= 0.98 |
42 | Requires: evolution-data-server-libs >= 3.12.0 | |
43 | Requires: gtk+3 >= 3.14.0 | |
0882a4f4 | 44 | Requires: hicolor-icon-theme |
2761dd40 JB |
45 | Requires: iec16022 >= 0.2.4 |
46 | Requires: librsvg >= 2.39.0 | |
47 | Requires: qrencode-libs >= 3.1.0 | |
48 | Requires: zint >= 2.4.0 | |
19f5049f | 49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
50 | ||
51 | %description | |
52 | gLabels is a small stand-alone program for creating labels and | |
53 | business cards. | |
54 | ||
4d57a829 JR |
55 | %description -l pl.UTF-8 |
56 | gLabels jest małym, samodzielnym programem do tworzenia etykiet i | |
57 | wizytówek. | |
19f5049f | 58 | |
eda7a1c6 | 59 | %package libs |
60 | Summary: glabels shared libraries | |
f96878fa | 61 | Summary(pl.UTF-8): Biblioteki współdzielone glabels |
2761dd40 | 62 | License: LGPL v3+ |
eda7a1c6 | 63 | Group: Libraries |
2761dd40 JB |
64 | Requires: cairo >= 1.14.0 |
65 | Requires: glib2 >= 1:2.42.0 | |
66 | Requires: libxml2 >= 1:2.9.0 | |
67 | Requires: pango >= 1:1.36.0 | |
eda7a1c6 | 68 | |
69 | %description libs | |
70 | glabels shared libraries. | |
71 | ||
4d57a829 JR |
72 | %description libs -l pl.UTF-8 |
73 | Biblioteki współdzielone glabels. | |
eda7a1c6 | 74 | |
75 | %package devel | |
76 | Summary: Header files for glabels | |
f96878fa | 77 | Summary(pl.UTF-8): Pliki nagłówkowe glabels |
2761dd40 | 78 | License: LGPL v3+ |
eda7a1c6 | 79 | Group: Development/Libraries |
80 | Requires: %{name}-libs = %{version}-%{release} | |
2761dd40 JB |
81 | Requires: cairo-devel >= 1.14.0 |
82 | Requires: glib2-devel >= 1:2.42.0 | |
83 | Requires: libxml2-devel >= 1:2.9.0 | |
84 | Requires: pango-devel >= 1:1.36.0 | |
eda7a1c6 | 85 | |
86 | %description devel | |
87 | Header files for glabels. | |
88 | ||
4d57a829 JR |
89 | %description devel -l pl.UTF-8 |
90 | Pliki nagłówkowe glabels. | |
eda7a1c6 | 91 | |
92 | %package static | |
93 | Summary: glabels static library | |
f96878fa | 94 | Summary(pl.UTF-8): Statyczna biblioteka glabels |
2761dd40 | 95 | License: LGPL v3+ |
eda7a1c6 | 96 | Group: Development/Libraries |
97 | Requires: %{name}-devel = %{version}-%{release} | |
98 | ||
99 | %description static | |
100 | glabels staic library. | |
101 | ||
4d57a829 | 102 | %description static -l pl.UTF-8 |
eda7a1c6 | 103 | Statyczna biblioteka glabels. |
104 | ||
57e489a2 MB |
105 | %package apidocs |
106 | Summary: glabels library API documentation | |
107 | Summary(pl.UTF-8): Dokumentacja API biblioteki glabels | |
2761dd40 | 108 | License: CC-BY-SA v3.0 |
57e489a2 MB |
109 | Group: Documentation |
110 | Requires: gtk-doc-common | |
8228dd29 ER |
111 | %if "%{_rpmversion}" >= "5" |
112 | BuildArch: noarch | |
113 | %endif | |
57e489a2 MB |
114 | |
115 | %description apidocs | |
116 | glabels library API documentation. | |
117 | ||
118 | %description apidocs -l pl.UTF-8 | |
119 | Dokumentacja API biblioteki glabels. | |
120 | ||
19f5049f | 121 | %prep |
122 | %setup -q | |
48d936e9 | 123 | %patch0 -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 |