]>
Commit | Line | Data |
---|---|---|
bc20e815 MB |
1 | Summary: Online dictionary |
2 | Summary(pl.UTF-8): Słownik online | |
3 | Name: gnome-dictionary | |
0a200e84 AF |
4 | Version: 3.9.0 |
5 | Release: 1 | |
bc20e815 MB |
6 | Epoch: 1 |
7 | License: GPL v2 | |
8 | Group: X11/Applications | |
0a200e84 AF |
9 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-dictionary/3.9/%{name}-%{version}.tar.xz |
10 | # Source0-md5: 4a82e6d7f3d2bfd65056bae87ca9d5f6 | |
bc20e815 MB |
11 | URL: http://live.gnome.org/GnomeUtils |
12 | BuildRequires: autoconf >= 2.63 | |
13 | BuildRequires: automake >= 1:1.11 | |
03183856 | 14 | BuildRequires: gettext-tools >= 0.17 |
bc20e815 | 15 | BuildRequires: glib2-devel >= 1:2.28.0 |
0a200e84 | 16 | BuildRequires: yelp-tools |
bc20e815 MB |
17 | BuildRequires: gtk+3-devel >= 3.0.3 |
18 | BuildRequires: gtk-doc >= 1.15 | |
19 | BuildRequires: intltool >= 0.40.0 | |
20 | BuildRequires: libtool >= 2:2.2.6 | |
21 | BuildRequires: pkgconfig >= 1:0.22 | |
22 | BuildRequires: rpmbuild(find_lang) >= 1.35 | |
23 | BuildRequires: rpmbuild(macros) >= 1.592 | |
24 | BuildRequires: tar >= 1:1.22 | |
25 | BuildRequires: xz | |
26 | Requires(post,postun): glib2 >= 1:2.26.0 | |
27 | Requires: glib2 >= 1:2.28.0 | |
28 | Requires: gtk+3 >= 3.0.3 | |
29 | Requires: libgdict = %{epoch}:%{version}-%{release} | |
30 | Provides: gnome-utils-dict | |
f0ef6cba | 31 | Provides: gnome-utils-dictionary = %{epoch}:%{version}-%{release} |
bc20e815 MB |
32 | Obsoletes: gnome-dict |
33 | Obsoletes: gnome-utils-dict | |
f0ef6cba | 34 | Obsoletes: gnome-utils-dictionary < 1:3.3.2-1 |
bc20e815 MB |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
37 | %description | |
38 | Allows to look up an online dictionary for definitions and correct | |
39 | spellings of words. | |
40 | ||
41 | %description -l pl.UTF-8 | |
42 | Pozwala na wyszukiwanie definicji i poprawnej pisowni słów w słowniku | |
43 | sieciowym. | |
44 | ||
45 | %package -n libgdict | |
46 | Summary: libgdict library | |
47 | Summary(pl.UTF-8): Biblioteka libgdict | |
48 | License: LGPL v2 | |
49 | Group: X11/Libraries | |
50 | ||
51 | %description -n libgdict | |
52 | libgdict library. | |
53 | ||
54 | %description -n libgdict -l pl.UTF-8 | |
55 | Biblioteka libgdict. | |
56 | ||
57 | %package -n libgdict-devel | |
58 | Summary: Header files for libgdict library | |
59 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgdict | |
60 | License: LGPL v2 | |
61 | Group: X11/Development/Libraries | |
62 | Requires: gtk+3-devel >= 3.0.3 | |
63 | Requires: libgdict = %{epoch}:%{version}-%{release} | |
64 | ||
65 | %description -n libgdict-devel | |
66 | This is the package containing the header files for libgdict library. | |
67 | ||
68 | %description -n libgdict-devel -l pl.UTF-8 | |
69 | Ten pakiet zawiera pliki nagłówkowe biblioteki libgdict. | |
70 | ||
71 | %package -n libgdict-static | |
72 | Summary: Static libgdict library | |
73 | Summary(pl.UTF-8): Statyczna biblioteka libgdict | |
74 | License: LGPL v2 | |
75 | Group: X11/Development/Libraries | |
76 | Requires: libgdict-devel = %{epoch}:%{version}-%{release} | |
77 | ||
78 | %description -n libgdict-static | |
79 | Static libgdict library. | |
80 | ||
81 | %description -n libgdict-static -l pl.UTF-8 | |
82 | Statyczna biblioteka libgdict. | |
83 | ||
84 | %package -n libgdict-apidocs | |
85 | Summary: libgdict API documentation | |
86 | Summary(pl.UTF-8): Dokumentacja API libgdict | |
87 | Group: Documentation | |
88 | Requires: gtk-doc-common | |
89 | ||
90 | %description -n libgdict-apidocs | |
91 | libgdict API documentation. | |
92 | ||
93 | %description -n libgdict-apidocs -l pl.UTF-8 | |
94 | Dokumentacja API libgdict. | |
95 | ||
96 | %prep | |
97 | %setup -q | |
98 | ||
99 | %build | |
0a200e84 | 100 | mkdir m4 |
bc20e815 MB |
101 | %{__intltoolize} |
102 | %{__aclocal} -I m4 | |
103 | %{__autoheader} | |
104 | %{__autoconf} | |
105 | %{__automake} | |
106 | %configure \ | |
107 | --disable-silent-rules \ | |
108 | --enable-gtk-doc \ | |
109 | --enable-static \ | |
110 | --with-html-dir=%{_gtkdocdir} | |
111 | %{__make} | |
112 | ||
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
116 | %{__make} install \ | |
117 | DESTDIR=$RPM_BUILD_ROOT | |
118 | ||
119 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgdict-1.0.la | |
120 | ||
121 | %find_lang %{name} --with-gnome --with-omf | |
122 | ||
123 | %clean | |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
126 | %post | |
127 | %glib_compile_schemas | |
128 | ||
129 | %postun | |
130 | %glib_compile_schemas | |
131 | ||
132 | %post -n libgdict -p /sbin/ldconfig | |
133 | %postun -n libgdict -p /sbin/ldconfig | |
134 | ||
135 | %files -f %{name}.lang | |
136 | %defattr(644,root,root,755) | |
137 | %doc AUTHORS NEWS README TODO | |
138 | %attr(755,root,root) %{_bindir}/gnome-dictionary | |
139 | %{_desktopdir}/gnome-dictionary.desktop | |
140 | %{_datadir}/gnome-dictionary | |
141 | %{_datadir}/glib-2.0/schemas/org.gnome.dictionary.gschema.xml | |
142 | %{_mandir}/man1/gnome-dictionary.1* | |
143 | ||
144 | %files -n libgdict | |
145 | %defattr(644,root,root,755) | |
146 | %attr(755,root,root) %{_libdir}/libgdict-1.0.so.*.*.* | |
147 | %attr(755,root,root) %ghost %{_libdir}/libgdict-1.0.so.6 | |
148 | %{_datadir}/gdict-1.0 | |
149 | ||
150 | %files -n libgdict-devel | |
151 | %defattr(644,root,root,755) | |
152 | %attr(755,root,root) %{_libdir}/libgdict-1.0.so | |
153 | %{_includedir}/gdict-1.0 | |
154 | %{_pkgconfigdir}/gdict-1.0.pc | |
155 | ||
156 | %files -n libgdict-static | |
157 | %defattr(644,root,root,755) | |
158 | %{_libdir}/libgdict-1.0.a | |
159 | ||
160 | %files -n libgdict-apidocs | |
161 | %defattr(644,root,root,755) | |
162 | %{_gtkdocdir}/gdict |