]>
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 |
b3119fdc | 4 | Version: 3.0.1 |
8228dd29 | 5 | Release: 3 |
0882a4f4 | 6 | License: GPL v3 |
57e489a2 | 7 | Group: X11/Applications/Graphics |
b3119fdc ŁK |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/glabels/3.0/%{name}-%{version}.tar.xz |
9 | # Source0-md5: 21abcdb6f812f03c628fdc77adfc0573 | |
0882a4f4 | 10 | Patch0: %{name}-link.patch |
b3119fdc | 11 | Patch1: eds-3.6.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 |
8f80a103 | 16 | BuildRequires: docbook-dtd412-xml |
b3119fdc | 17 | BuildRequires: evolution-data-server-devel >= 3.6.0 |
8f80a103 | 18 | BuildRequires: gettext-devel |
0882a4f4 | 19 | BuildRequires: glib2-devel >= 1:2.28.2 |
bbd08661 | 20 | BuildRequires: gnome-common >= 2.8.0 |
444e8e09 | 21 | BuildRequires: gnome-doc-utils |
0882a4f4 | 22 | BuildRequires: gtk+3-devel >= 3.0.9 |
9ae0d152 | 23 | BuildRequires: gtk-doc >= 1.0 |
0882a4f4 MB |
24 | BuildRequires: iec16022-devel >= 0.2.4 |
25 | BuildRequires: intltool >= 0.40.0 | |
26 | BuildRequires: librsvg-devel >= 2.32.0 | |
24de736e | 27 | BuildRequires: libtool |
0882a4f4 | 28 | BuildRequires: libxml2-devel >= 1:2.7.8 |
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 | |
0882a4f4 MB |
34 | BuildRequires: zint-devel >= 2.4.0 |
35 | Requires(post,postun): glib2 >= 1:2.26.0 | |
2ebebbfe | 36 | Requires(post,postun): desktop-file-utils |
57e489a2 | 37 | Requires(post,postun): shared-mime-info |
0882a4f4 | 38 | Requires(post,postun): gtk-update-icon-cache |
eda7a1c6 | 39 | Requires: %{name}-libs = %{version}-%{release} |
0882a4f4 | 40 | Requires: hicolor-icon-theme |
19f5049f | 41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
42 | ||
43 | %description | |
44 | gLabels is a small stand-alone program for creating labels and | |
45 | business cards. | |
46 | ||
4d57a829 JR |
47 | %description -l pl.UTF-8 |
48 | gLabels jest małym, samodzielnym programem do tworzenia etykiet i | |
49 | wizytówek. | |
19f5049f | 50 | |
eda7a1c6 | 51 | %package libs |
52 | Summary: glabels shared libraries | |
f96878fa | 53 | Summary(pl.UTF-8): Biblioteki współdzielone glabels |
0882a4f4 | 54 | License: LGPL v3 |
eda7a1c6 | 55 | Group: Libraries |
56 | ||
57 | %description libs | |
58 | glabels shared libraries. | |
59 | ||
4d57a829 JR |
60 | %description libs -l pl.UTF-8 |
61 | Biblioteki współdzielone glabels. | |
eda7a1c6 | 62 | |
63 | %package devel | |
64 | Summary: Header files for glabels | |
f96878fa | 65 | Summary(pl.UTF-8): Pliki nagłówkowe glabels |
0882a4f4 | 66 | License: LGPL v3 |
eda7a1c6 | 67 | Group: Development/Libraries |
68 | Requires: %{name}-libs = %{version}-%{release} | |
0882a4f4 MB |
69 | Requires: glib2-devel >= 1:2.28.2 |
70 | Requires: libxml2-devel >= 1:2.7.8 | |
71 | Requires: pango-devel | |
eda7a1c6 | 72 | |
73 | %description devel | |
74 | Header files for glabels. | |
75 | ||
4d57a829 JR |
76 | %description devel -l pl.UTF-8 |
77 | Pliki nagłówkowe glabels. | |
eda7a1c6 | 78 | |
79 | %package static | |
80 | Summary: glabels static library | |
f96878fa | 81 | Summary(pl.UTF-8): Statyczna biblioteka glabels |
0882a4f4 | 82 | License: LGPL v3 |
eda7a1c6 | 83 | Group: Development/Libraries |
84 | Requires: %{name}-devel = %{version}-%{release} | |
85 | ||
86 | %description static | |
87 | glabels staic library. | |
88 | ||
4d57a829 | 89 | %description static -l pl.UTF-8 |
eda7a1c6 | 90 | Statyczna biblioteka glabels. |
91 | ||
57e489a2 MB |
92 | %package apidocs |
93 | Summary: glabels library API documentation | |
94 | Summary(pl.UTF-8): Dokumentacja API biblioteki glabels | |
95 | Group: Documentation | |
96 | Requires: gtk-doc-common | |
8228dd29 ER |
97 | %if "%{_rpmversion}" >= "5" |
98 | BuildArch: noarch | |
99 | %endif | |
57e489a2 MB |
100 | |
101 | %description apidocs | |
102 | glabels library API documentation. | |
103 | ||
104 | %description apidocs -l pl.UTF-8 | |
105 | Dokumentacja API biblioteki glabels. | |
106 | ||
19f5049f | 107 | %prep |
108 | %setup -q | |
48d936e9 | 109 | %patch0 -p1 |
b3119fdc | 110 | %patch1 -p1 |
19f5049f | 111 | |
112 | %build | |
2ebebbfe | 113 | %{__glib_gettextize} |
2ebebbfe | 114 | %{__gnome_doc_common} |
9ae0d152 | 115 | %{__gtkdocize} |
0882a4f4 MB |
116 | %{__intltoolize} |
117 | %{__libtoolize} | |
bbd08661 | 118 | %{__aclocal} |
19f5049f | 119 | %{__autoheader} |
19f5049f | 120 | %{__autoconf} |
0882a4f4 | 121 | %{__automake} |
19f5049f | 122 | %configure \ |
0882a4f4 MB |
123 | --disable-silent-rules \ |
124 | --disable-schemas-compile \ | |
9ae0d152 | 125 | --enable-gtk-doc \ |
0882a4f4 | 126 | --with-html-dir=%{_gtkdocdir} |
8f80a103 | 127 | |
19f5049f | 128 | %{__make} |
129 | ||
130 | %install | |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ||
133 | %{__make} install \ | |
134 | DESTDIR=$RPM_BUILD_ROOT | |
135 | ||
0882a4f4 | 136 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
2ebebbfe | 137 | |
0882a4f4 | 138 | %find_lang %{name}-3.0 --with-gnome |
19f5049f | 139 | |
24de736e JB |
140 | %clean |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
48d936e9 | 143 | %post |
2ebebbfe | 144 | %update_desktop_database_post |
57e489a2 | 145 | %update_mime_database |
0882a4f4 MB |
146 | %update_icon_cache hicolor |
147 | %glib_compile_schemas | |
48d936e9 | 148 | |
149 | %postun | |
2ebebbfe | 150 | %update_desktop_database_postun |
57e489a2 | 151 | %update_mime_database |
0882a4f4 MB |
152 | %update_icon_cache hicolor |
153 | %glib_compile_schemas | |
2ebebbfe | 154 | |
24723a20 | 155 | %post libs -p /sbin/ldconfig |
37a3a6ad | 156 | %postun libs -p /sbin/ldconfig |
eda7a1c6 | 157 | |
0882a4f4 | 158 | %files -f %{name}-3.0.lang |
19f5049f | 159 | %defattr(644,root,root,755) |
eda7a1c6 | 160 | %doc AUTHORS ChangeLog README TODO |
0882a4f4 MB |
161 | %attr(755,root,root) %{_bindir}/glabels-3 |
162 | %attr(755,root,root) %{_bindir}/glabels-3-batch | |
163 | %{_datadir}/glabels-3.0 | |
164 | %{_datadir}/glib-2.0/schemas/org.gnome.glabels-3.gschema.xml | |
165 | %{_datadir}/mime/packages/glabels-3.0.xml | |
e8196dfa | 166 | %{_mandir}/man1/*.1* |
0882a4f4 MB |
167 | %{_desktopdir}/glabels-3.0.desktop |
168 | %{_iconsdir}/hicolor/*/*/*.png | |
eda7a1c6 | 169 | |
170 | %files libs | |
171 | %defattr(644,root,root,755) | |
0882a4f4 MB |
172 | %attr(755,root,root) %{_libdir}/libglabels-3.0.so.*.*.* |
173 | %attr(755,root,root) %ghost %{_libdir}/libglabels-3.0.so.8 | |
174 | %attr(755,root,root) %{_libdir}/libglbarcode-3.0.so.*.*.* | |
175 | %attr(755,root,root) %ghost %{_libdir}/libglbarcode-3.0.so.0 | |
176 | %{_datadir}/libglabels-3.0 | |
eda7a1c6 | 177 | |
178 | %files devel | |
179 | %defattr(644,root,root,755) | |
0882a4f4 MB |
180 | %attr(755,root,root) %{_libdir}/libglabels-3.0.so |
181 | %attr(755,root,root) %{_libdir}/libglbarcode-3.0.so | |
182 | %{_includedir}/libglabels-3.0 | |
183 | %{_includedir}/libglbarcode-3.0 | |
184 | %{_pkgconfigdir}/libglabels-3.0.pc | |
185 | %{_pkgconfigdir}/libglbarcode-3.0.pc | |
eda7a1c6 | 186 | |
187 | %files static | |
188 | %defattr(644,root,root,755) | |
0882a4f4 MB |
189 | %{_libdir}/libglabels-3.0.a |
190 | %{_libdir}/libglbarcode-3.0.a | |
57e489a2 MB |
191 | |
192 | %files apidocs | |
193 | %defattr(644,root,root,755) | |
0882a4f4 MB |
194 | %{_gtkdocdir}/libglabels-3.0 |
195 | %{_gtkdocdir}/libglbarcode-3.0 |