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