]>
Commit | Line | Data |
---|---|---|
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 | |
3 | Name: glabels | |
4 | Version: 3.4.0 | |
5 | Release: 1 | |
6 | License: GPL v3+ (libraries: LGPL v3+) | |
7 | Group: X11/Applications/Graphics | |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/glabels/3.4/%{name}-%{version}.tar.xz | |
9 | # Source0-md5: 6b364a487b9856b831c9db0e845e67a2 | |
10 | Patch0: %{name}-link.patch | |
11 | URL: http://www.glabels.org/ | |
12 | BuildRequires: autoconf >= 2.64 | |
13 | BuildRequires: automake | |
14 | BuildRequires: barcode-devel >= 0.98 | |
15 | BuildRequires: cairo-devel >= 1.14.0 | |
16 | BuildRequires: docbook-dtd412-xml | |
17 | BuildRequires: evolution-data-server-devel >= 3.12.0 | |
18 | BuildRequires: gettext-tools | |
19 | BuildRequires: glib2-devel >= 1:2.42.0 | |
20 | BuildRequires: gnome-common >= 2.8.0 | |
21 | BuildRequires: gtk+3-devel >= 3.14.0 | |
22 | BuildRequires: gtk-doc >= 1.0 | |
23 | BuildRequires: iec16022-devel >= 0.2.4 | |
24 | BuildRequires: intltool >= 0.40.0 | |
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 | |
29 | BuildRequires: pkgconfig | |
30 | BuildRequires: qrencode-devel >= 3.1.0 | |
31 | BuildRequires: rpmbuild(macros) >= 1.592 | |
32 | BuildRequires: tar >= 1:1.22 | |
33 | BuildRequires: xz | |
34 | BuildRequires: yelp-tools | |
35 | BuildRequires: zint-devel >= 2.4.0 | |
36 | Requires(post,postun): glib2 >= 1:2.42.0 | |
37 | Requires(post,postun): desktop-file-utils | |
38 | Requires(post,postun): shared-mime-info | |
39 | Requires(post,postun): gtk-update-icon-cache | |
40 | Requires: %{name}-libs = %{version}-%{release} | |
41 | Requires: barcode >= 0.98 | |
42 | Requires: evolution-data-server-libs >= 3.12.0 | |
43 | Requires: gtk+3 >= 3.14.0 | |
44 | Requires: hicolor-icon-theme | |
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 | |
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 | ||
55 | %description -l pl.UTF-8 | |
56 | gLabels jest małym, samodzielnym programem do tworzenia etykiet i | |
57 | wizytówek. | |
58 | ||
59 | %package libs | |
60 | Summary: glabels shared libraries | |
61 | Summary(pl.UTF-8): Biblioteki współdzielone glabels | |
62 | License: LGPL v3+ | |
63 | Group: Libraries | |
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 | |
68 | ||
69 | %description libs | |
70 | glabels shared libraries. | |
71 | ||
72 | %description libs -l pl.UTF-8 | |
73 | Biblioteki współdzielone glabels. | |
74 | ||
75 | %package devel | |
76 | Summary: Header files for glabels | |
77 | Summary(pl.UTF-8): Pliki nagłówkowe glabels | |
78 | License: LGPL v3+ | |
79 | Group: Development/Libraries | |
80 | Requires: %{name}-libs = %{version}-%{release} | |
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 | |
85 | ||
86 | %description devel | |
87 | Header files for glabels. | |
88 | ||
89 | %description devel -l pl.UTF-8 | |
90 | Pliki nagłówkowe glabels. | |
91 | ||
92 | %package static | |
93 | Summary: glabels static library | |
94 | Summary(pl.UTF-8): Statyczna biblioteka glabels | |
95 | License: LGPL v3+ | |
96 | Group: Development/Libraries | |
97 | Requires: %{name}-devel = %{version}-%{release} | |
98 | ||
99 | %description static | |
100 | glabels staic library. | |
101 | ||
102 | %description static -l pl.UTF-8 | |
103 | Statyczna biblioteka glabels. | |
104 | ||
105 | %package apidocs | |
106 | Summary: glabels library API documentation | |
107 | Summary(pl.UTF-8): Dokumentacja API biblioteki glabels | |
108 | License: CC-BY-SA v3.0 | |
109 | Group: Documentation | |
110 | Requires: gtk-doc-common | |
111 | %if "%{_rpmversion}" >= "5" | |
112 | BuildArch: noarch | |
113 | %endif | |
114 | ||
115 | %description apidocs | |
116 | glabels library API documentation. | |
117 | ||
118 | %description apidocs -l pl.UTF-8 | |
119 | Dokumentacja API biblioteki glabels. | |
120 | ||
121 | %prep | |
122 | %setup -q | |
123 | %patch0 -p1 | |
124 | ||
125 | %build | |
126 | %{__glib_gettextize} | |
127 | %{__gtkdocize} | |
128 | %{__intltoolize} | |
129 | %{__libtoolize} | |
130 | %{__aclocal} | |
131 | %{__autoheader} | |
132 | %{__autoconf} | |
133 | %{__automake} | |
134 | %configure \ | |
135 | --disable-schemas-compile \ | |
136 | --disable-silent-rules \ | |
137 | --enable-gtk-doc \ | |
138 | --with-html-dir=%{_gtkdocdir} | |
139 | ||
140 | %{__make} | |
141 | ||
142 | %install | |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
145 | %{__make} install \ | |
146 | DESTDIR=$RPM_BUILD_ROOT | |
147 | ||
148 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
149 | ||
150 | %find_lang %{name}-3.0 --with-gnome | |
151 | ||
152 | %clean | |
153 | rm -rf $RPM_BUILD_ROOT | |
154 | ||
155 | %post | |
156 | %update_desktop_database_post | |
157 | %update_mime_database | |
158 | %update_icon_cache hicolor | |
159 | %glib_compile_schemas | |
160 | ||
161 | %postun | |
162 | %update_desktop_database_postun | |
163 | %update_mime_database | |
164 | %update_icon_cache hicolor | |
165 | %glib_compile_schemas | |
166 | ||
167 | %post libs -p /sbin/ldconfig | |
168 | %postun libs -p /sbin/ldconfig | |
169 | ||
170 | %files -f %{name}-3.0.lang | |
171 | %defattr(644,root,root,755) | |
172 | %doc AUTHORS COPYING-TEMPLATES COPYING.README_FIRST ChangeLog NEWS README TODO | |
173 | %attr(755,root,root) %{_bindir}/glabels-3 | |
174 | %attr(755,root,root) %{_bindir}/glabels-3-batch | |
175 | %{_datadir}/appdata/glabels-3.appdata.xml | |
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 | |
179 | %{_mandir}/man1/glabels-3.1* | |
180 | %{_mandir}/man1/glabels-3-batch.1* | |
181 | %{_desktopdir}/glabels-3.0.desktop | |
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 | |
186 | ||
187 | %files libs | |
188 | %defattr(644,root,root,755) | |
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 | |
194 | ||
195 | %files devel | |
196 | %defattr(644,root,root,755) | |
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 | |
203 | ||
204 | %files static | |
205 | %defattr(644,root,root,755) | |
206 | %{_libdir}/libglabels-3.0.a | |
207 | %{_libdir}/libglbarcode-3.0.a | |
208 | ||
209 | %files apidocs | |
210 | %defattr(644,root,root,755) | |
211 | %{_gtkdocdir}/libglabels-3.0 | |
212 | %{_gtkdocdir}/libglbarcode-3.0 |