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