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