]>
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.0.0 | |
5 | Release: 1 | |
6 | License: GPL v3 | |
7 | Group: X11/Applications/Graphics | |
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 | |
13 | BuildRequires: automake | |
14 | BuildRequires: barcode-devel >= 0.98 | |
15 | BuildRequires: docbook-dtd412-xml | |
16 | BuildRequires: evolution-data-server-devel >= 3.0.0 | |
17 | BuildRequires: gettext-devel | |
18 | BuildRequires: glib2-devel >= 1:2.28.2 | |
19 | BuildRequires: gnome-common >= 2.8.0 | |
20 | BuildRequires: gnome-doc-utils | |
21 | BuildRequires: gtk+3-devel >= 3.0.9 | |
22 | BuildRequires: gtk-doc >= 1.0 | |
23 | BuildRequires: iec16022-devel >= 0.2.4 | |
24 | BuildRequires: intltool >= 0.40.0 | |
25 | BuildRequires: librsvg-devel >= 2.32.0 | |
26 | BuildRequires: libtool | |
27 | BuildRequires: libxml2-devel >= 1:2.7.8 | |
28 | BuildRequires: pkgconfig | |
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 | |
33 | Requires(post,postun): desktop-file-utils | |
34 | Requires(post,postun): shared-mime-info | |
35 | Requires(post,postun): gtk-update-icon-cache | |
36 | Requires: %{name}-libs = %{version}-%{release} | |
37 | Requires: hicolor-icon-theme | |
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 | ||
44 | %description -l pl.UTF-8 | |
45 | gLabels jest małym, samodzielnym programem do tworzenia etykiet i | |
46 | wizytówek. | |
47 | ||
48 | %package libs | |
49 | Summary: glabels shared libraries | |
50 | Summary(pl.UTF-8): Biblioteki współdzielone glabels | |
51 | License: LGPL v3 | |
52 | Group: Libraries | |
53 | ||
54 | %description libs | |
55 | glabels shared libraries. | |
56 | ||
57 | %description libs -l pl.UTF-8 | |
58 | Biblioteki współdzielone glabels. | |
59 | ||
60 | %package devel | |
61 | Summary: Header files for glabels | |
62 | Summary(pl.UTF-8): Pliki nagłówkowe glabels | |
63 | License: LGPL v3 | |
64 | Group: Development/Libraries | |
65 | Requires: %{name}-libs = %{version}-%{release} | |
66 | Requires: glib2-devel >= 1:2.28.2 | |
67 | Requires: libxml2-devel >= 1:2.7.8 | |
68 | Requires: pango-devel | |
69 | ||
70 | %description devel | |
71 | Header files for glabels. | |
72 | ||
73 | %description devel -l pl.UTF-8 | |
74 | Pliki nagłówkowe glabels. | |
75 | ||
76 | %package static | |
77 | Summary: glabels static library | |
78 | Summary(pl.UTF-8): Statyczna biblioteka glabels | |
79 | License: LGPL v3 | |
80 | Group: Development/Libraries | |
81 | Requires: %{name}-devel = %{version}-%{release} | |
82 | ||
83 | %description static | |
84 | glabels staic library. | |
85 | ||
86 | %description static -l pl.UTF-8 | |
87 | Statyczna biblioteka glabels. | |
88 | ||
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 | ||
101 | %prep | |
102 | %setup -q | |
103 | %patch0 -p1 | |
104 | ||
105 | %build | |
106 | %{__glib_gettextize} | |
107 | %{__gnome_doc_common} | |
108 | %{__gtkdocize} | |
109 | %{__intltoolize} | |
110 | %{__libtoolize} | |
111 | %{__aclocal} | |
112 | %{__autoheader} | |
113 | %{__autoconf} | |
114 | %{__automake} | |
115 | %configure \ | |
116 | --disable-silent-rules \ | |
117 | --disable-schemas-compile \ | |
118 | --enable-gtk-doc \ | |
119 | --with-html-dir=%{_gtkdocdir} | |
120 | ||
121 | %{__make} | |
122 | ||
123 | %install | |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
126 | %{__make} install \ | |
127 | DESTDIR=$RPM_BUILD_ROOT | |
128 | ||
129 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
130 | ||
131 | %find_lang %{name}-3.0 --with-gnome | |
132 | ||
133 | %clean | |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
136 | %post | |
137 | %update_desktop_database_post | |
138 | %update_mime_database | |
139 | %update_icon_cache hicolor | |
140 | %glib_compile_schemas | |
141 | ||
142 | %postun | |
143 | %update_desktop_database_postun | |
144 | %update_mime_database | |
145 | %update_icon_cache hicolor | |
146 | %glib_compile_schemas | |
147 | ||
148 | %post libs -p /sbin/ldconfig | |
149 | %postun libs -p /sbin/ldconfig | |
150 | ||
151 | %files -f %{name}-3.0.lang | |
152 | %defattr(644,root,root,755) | |
153 | %doc AUTHORS ChangeLog README TODO | |
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 | |
159 | %{_mandir}/man1/*.1* | |
160 | %{_desktopdir}/glabels-3.0.desktop | |
161 | %{_iconsdir}/hicolor/*/*/*.png | |
162 | ||
163 | %files libs | |
164 | %defattr(644,root,root,755) | |
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 | |
170 | ||
171 | %files devel | |
172 | %defattr(644,root,root,755) | |
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 | |
179 | ||
180 | %files static | |
181 | %defattr(644,root,root,755) | |
182 | %{_libdir}/libglabels-3.0.a | |
183 | %{_libdir}/libglbarcode-3.0.a | |
184 | ||
185 | %files apidocs | |
186 | %defattr(644,root,root,755) | |
187 | %{_gtkdocdir}/libglabels-3.0 | |
188 | %{_gtkdocdir}/libglbarcode-3.0 |