]>
Commit | Line | Data |
---|---|---|
051643cb | 1 | Summary: A user-friendly database environment |
f7680377 | 2 | Summary(pl.UTF-8): Przyjazne użytkownikowi środowisko bazodanowe |
7c214bde | 3 | Name: glom |
5f1841b1 | 4 | Version: 1.32.0 |
5d02eedc | 5 | Release: 5 |
7c214bde | 6 | License: GPL v2 |
d6830789 | 7 | Group: X11/Applications |
5f1841b1 JB |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/glom/1.32/%{name}-%{version}.tar.xz |
9 | # Source0-md5: 194d2dec2254f48c49f518935302992f | |
10 | Patch0: %{name}-build.patch | |
11 | Patch1: %{name}-pc.patch | |
7c214bde | 12 | URL: http://www.glom.org/ |
086f6619 JB |
13 | BuildRequires: autoconf >= 2.63 |
14 | BuildRequires: automake >= 1:1.10 | |
15 | BuildRequires: boost-devel | |
3191946c | 16 | BuildRequires: boost-python3-devel |
086f6619 | 17 | BuildRequires: evince-devel >= 3.0 |
d1827a26 | 18 | BuildRequires: gettext-tools >= 0.17 |
5f1841b1 | 19 | BuildRequires: glibmm-devel >= 2.47.4 |
086f6619 | 20 | BuildRequires: goocanvas2-devel >= 2.0.1 |
3191946c | 21 | BuildRequires: goocanvasmm2-devel >= 1.90.11 |
5f1841b1 | 22 | BuildRequires: gtkmm3-devel >= 3.22.0 |
3191946c | 23 | BuildRequires: gtksourceviewmm3-devel >= 3.18.0 |
d6830789 | 24 | BuildRequires: intltool >= 0.36.0 |
7c214bde | 25 | BuildRequires: iso-codes |
4ab1b777 | 26 | BuildRequires: libarchive-devel >= 3.0 |
086f6619 | 27 | BuildRequires: libepc-devel >= 0.4.0 |
5f1841b1 | 28 | BuildRequires: libgda5-devel >= 5.2.9 |
3191946c | 29 | BuildRequires: libgdamm5-devel >= 4.99.10 |
5f1841b1 JB |
30 | BuildRequires: libsigc++-devel >= 2.9.2 |
31 | BuildRequires: libstdc++-devel >= 6:5 | |
086f6619 | 32 | BuildRequires: libtool >= 2:2.2.0 |
5f1841b1 | 33 | BuildRequires: libxml++-devel >= 3.0.0 |
051643cb | 34 | BuildRequires: libxslt-devel >= 1.1.17 |
086f6619 | 35 | BuildRequires: mm-common >= 0.9.5 |
d6830789 | 36 | BuildRequires: pkgconfig |
086f6619 JB |
37 | BuildRequires: pkgconfig(libgda-mysql-5.0) |
38 | BuildRequires: pkgconfig(libgda-postgres-5.0) | |
39 | BuildRequires: pkgconfig(libgda-sqlite-5.0) | |
3191946c JB |
40 | BuildRequires: python3-devel >= 1:3.2 |
41 | BuildRequires: python3-pygobject3-devel >= 2.29.0 | |
d6830789 MB |
42 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
43 | BuildRequires: rpmbuild(macros) >= 1.311 | |
086f6619 JB |
44 | BuildRequires: sphinx-pdg |
45 | BuildRequires: tar >= 1:1.22 | |
46 | BuildRequires: xz | |
d6830789 | 47 | Requires(post,postun): desktop-file-utils |
384aa7d7 | 48 | Requires(post,postun): gtk-update-icon-cache |
16071c1b | 49 | Requires(post,postun): hicolor-icon-theme |
7c214bde | 50 | Requires(post,postun): shared-mime-info |
086f6619 | 51 | Requires: evince >= 3.0 |
5f1841b1 | 52 | Requires: glibmm >= 2.47.4 |
086f6619 | 53 | Requires: goocanvas2 >= 2.0.1 |
3191946c | 54 | Requires: goocanvasmm2 >= 1.90.11 |
5f1841b1 | 55 | Requires: gtkmm3 >= 3.22.0 |
3191946c | 56 | Requires: gtksourceviewmm3 >= 3.18.0 |
086f6619 JB |
57 | Requires: iso-codes |
58 | Requires: libepc >= 0.4.0 | |
5f1841b1 | 59 | Requires: libgda5 >= 5.2.9 |
3191946c | 60 | Requires: libgdamm5 >= 4.99.10 |
5f1841b1 JB |
61 | Requires: libsigc++ >= 2.9.2 |
62 | Requires: libxml++ >= 3.0.0 | |
086f6619 | 63 | Requires: libxslt >= 1.1.17 |
3191946c JB |
64 | Requires: python3-modules >= 1:3.2 |
65 | Requires: python3-pygobject3 >= 2.29.0 | |
5f1841b1 JB |
66 | Suggests: libgda5-provider-mysql >= 5.2.9 |
67 | Suggests: libgda5-provider-postgres >= 5.2.9 | |
68 | Suggests: libgda5-provider-sqlite >= 5.2.9 | |
7c214bde | 69 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
70 | ||
71 | %description | |
72 | Glom is an easy-to-use database designer and user interface. | |
73 | ||
34c48b30 JR |
74 | %description -l pl.UTF-8 |
75 | Glom jest łatwym w użyciu programem do projektowania baz danych oraz | |
76 | interfejsem użytkownika. | |
7c214bde | 77 | |
086f6619 JB |
78 | %package devel |
79 | Summary: Header files for Glom library | |
80 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Glom | |
81 | Group: Development/Libraries | |
82 | Requires: %{name} = %{version}-%{release} | |
5f1841b1 JB |
83 | Requires: glibmm-devel >= 2.47.4 |
84 | Requires: libgdamm5-devel >= 4.99.10 | |
85 | Requires: libstdc++-devel >= 6:5 | |
86 | Requires: libxml++-devel >= 3.0.0 | |
87 | Requires: libxslt-devel >= 1.1.17 | |
086f6619 JB |
88 | |
89 | %description devel | |
90 | Header files for Glom library. | |
91 | ||
92 | %description devel -l pl.UTF-8 | |
93 | Pliki nagłówkowe biblioteki Glom. | |
94 | ||
95 | %package apidocs | |
96 | Summary: API documentation for Glom library and its Python binding | |
97 | Summary(pl.UTF-8): Dokumentacja API biblioteki Glom i jej wiązań do Pythona | |
98 | Group: Documentation | |
8416cf16 | 99 | BuildArch: noarch |
086f6619 JB |
100 | |
101 | %description apidocs | |
102 | API documentation for Glom library and its Python binding. | |
103 | ||
104 | %description apidocs -l pl.UTF-8 | |
105 | Dokumentacja API biblioteki Glom i jej wiązań do Pythona. | |
106 | ||
107 | %package examples | |
108 | Summary: Examples for Glom | |
109 | Summary(pl.UTF-8): Przykłady dla Gloma | |
110 | Group: Documentation | |
111 | ||
112 | %description examples | |
113 | Examples for Glom. | |
114 | ||
115 | %description examples -l pl.UTF-8 | |
116 | Przykłady dla Gloma. | |
117 | ||
7c214bde | 118 | %prep |
119 | %setup -q | |
5f1841b1 JB |
120 | %patch0 -p1 |
121 | %patch1 -p1 | |
7c214bde | 122 | |
123 | %build | |
086f6619 | 124 | %{__gettextize} |
7c214bde | 125 | %{__intltoolize} |
126 | %{__libtoolize} | |
7c214bde | 127 | %{__aclocal} -I macros |
7c214bde | 128 | %{__autoconf} |
d6830789 | 129 | %{__autoheader} |
7c214bde | 130 | %{__automake} |
131 | %configure \ | |
3191946c | 132 | PYTHON="%{__python3}" \ |
086f6619 | 133 | --disable-silent-rules \ |
051643cb | 134 | --disable-static \ |
cd9b01bd | 135 | --disable-update-mime-database \ |
0d0d871c JB |
136 | --enable-mysql \ |
137 | --enable-sqlite \ | |
3191946c | 138 | --with-mysql-utils=%{_bindir} \ |
c0d9696b | 139 | --with-postgres-utils=%{_bindir} |
7c214bde | 140 | %{__make} |
141 | ||
142 | %install | |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
145 | %{__make} install \ | |
146 | DESTDIR=$RPM_BUILD_ROOT | |
147 | ||
086f6619 | 148 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
3191946c | 149 | %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/*.la |
7c214bde | 150 | |
4ab1b777 JB |
151 | install -d $RPM_BUILD_ROOT%{_examplesdir} |
152 | cp -pr examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
153 | ||
3191946c | 154 | %find_lang %{name} --with-gnome |
7c214bde | 155 | |
156 | %clean | |
157 | rm -rf $RPM_BUILD_ROOT | |
158 | ||
159 | %post | |
160 | /sbin/ldconfig | |
d6830789 | 161 | %update_desktop_database_post |
7c214bde | 162 | %update_mime_database |
163 | %update_icon_cache hicolor | |
164 | ||
165 | %postun | |
166 | /sbin/ldconfig | |
d6830789 | 167 | %update_desktop_database_postun |
7c214bde | 168 | %update_mime_database |
169 | %update_icon_cache hicolor | |
170 | ||
171 | %files -f %{name}.lang | |
172 | %defattr(644,root,root,755) | |
173 | %doc AUTHORS ChangeLog NEWS README TODO | |
d6830789 | 174 | %attr(755,root,root) %{_bindir}/glom |
086f6619 JB |
175 | %attr(755,root,root) %{_bindir}/glom_export_po |
176 | %attr(755,root,root) %{_bindir}/glom_export_po_all | |
177 | %attr(755,root,root) %{_bindir}/glom_import_po_all | |
178 | %attr(755,root,root) %{_bindir}/glom_test_connection | |
5f1841b1 JB |
179 | %attr(755,root,root) %{_libdir}/libglom-1.32.so.*.*.* |
180 | %attr(755,root,root) %ghost %{_libdir}/libglom-1.32.so.0 | |
181 | %attr(755,root,root) %{py3_sitedir}/glom_1_32.so | |
7c214bde | 182 | %{_datadir}/%{name} |
086f6619 | 183 | %{_datadir}/appdata/glom.appdata.xml |
d6830789 MB |
184 | %{_datadir}/mime/packages/glom.xml |
185 | %{_desktopdir}/glom.desktop | |
3191946c JB |
186 | %{_iconsdir}/hicolor/*x*/apps/glom.png |
187 | %{_iconsdir}/hicolor/scalable/apps/glom.svg | |
086f6619 JB |
188 | |
189 | %files devel | |
190 | %defattr(644,root,root,755) | |
5f1841b1 JB |
191 | %attr(755,root,root) %{_libdir}/libglom-1.32.so |
192 | %{_includedir}/glom-1.32 | |
193 | %{_pkgconfigdir}/glom-1.32.pc | |
086f6619 JB |
194 | |
195 | %files apidocs | |
196 | %defattr(644,root,root,755) | |
5f1841b1 JB |
197 | %{_docdir}/libglom-1.32 |
198 | %{_docdir}/pyglom_1_32 | |
199 | %{_datadir}/devhelp/books/libglom-1.32 | |
086f6619 JB |
200 | |
201 | %files examples | |
202 | %defattr(644,root,root,755) | |
203 | %attr(755,root,root) %{_bindir}/glom_create_from_example | |
4ab1b777 | 204 | %{_examplesdir}/%{name}-%{version} |