]> git.pld-linux.org Git - packages/glom.git/blob - glom.spec
56ceb065cc947ac7f73713356d932108d744abdf
[packages/glom.git] / glom.spec
1 Summary:        A user-friendly database environment
2 Summary(pl.UTF-8):      Przyjazne użytkownikowi środowisko bazodanowe
3 Name:           glom
4 Version:        1.30.4
5 Release:        6
6 License:        GPL v2
7 Group:          X11/Applications
8 Source0:        http://ftp.gnome.org/pub/GNOME/sources/glom/1.30/%{name}-%{version}.tar.xz
9 # Source0-md5:  6f4d3b906e6563798c199517e78edaf7
10 URL:            http://www.glom.org/
11 BuildRequires:  autoconf >= 2.63
12 BuildRequires:  automake >= 1:1.10
13 BuildRequires:  boost-devel
14 BuildRequires:  boost-python3-devel
15 BuildRequires:  evince-devel >= 3.0
16 BuildRequires:  gettext-tools >= 0.17
17 BuildRequires:  glibmm-devel >= 2.46.1
18 BuildRequires:  goocanvas2-devel >= 2.0.1
19 BuildRequires:  goocanvasmm2-devel >= 1.90.11
20 BuildRequires:  gtkmm3-devel >= 3.18.0
21 BuildRequires:  gtksourceviewmm3-devel >= 3.18.0
22 BuildRequires:  intltool >= 0.36.0
23 BuildRequires:  iso-codes
24 BuildRequires:  libarchive-devel >= 3.0
25 BuildRequires:  libepc-devel >= 0.4.0
26 BuildRequires:  libgda5-devel >= 5.2.1
27 BuildRequires:  libgdamm5-devel >= 4.99.10
28 BuildRequires:  libstdc++-devel
29 BuildRequires:  libtool >= 2:2.2.0
30 BuildRequires:  libxml++2-devel >= 2.24.0
31 BuildRequires:  libxslt-devel >= 1.1.17
32 BuildRequires:  mm-common >= 0.9.5
33 BuildRequires:  pkgconfig
34 BuildRequires:  pkgconfig(libgda-mysql-5.0)
35 BuildRequires:  pkgconfig(libgda-postgres-5.0)
36 BuildRequires:  pkgconfig(libgda-sqlite-5.0)
37 BuildRequires:  python3-devel >= 1:3.2
38 BuildRequires:  python3-pygobject3-devel >= 2.29.0
39 BuildRequires:  rpmbuild(find_lang) >= 1.23
40 BuildRequires:  rpmbuild(macros) >= 1.311
41 BuildRequires:  sphinx-pdg
42 BuildRequires:  tar >= 1:1.22
43 BuildRequires:  xz
44 Requires(post,postun):  desktop-file-utils
45 Requires(post,postun):  gtk-update-icon-cache
46 Requires(post,postun):  hicolor-icon-theme
47 Requires(post,postun):  shared-mime-info
48 Requires:       evince >= 3.0
49 Requires:       glibmm >= 2.46.1
50 Requires:       goocanvas2 >= 2.0.1
51 Requires:       goocanvasmm2 >= 1.90.11
52 Requires:       gtkmm3 >= 3.18.0
53 Requires:       gtksourceviewmm3 >= 3.18.0
54 Requires:       iso-codes
55 Requires:       libepc >= 0.4.0
56 Requires:       libgda5 >= 5.2.1
57 Requires:       libgdamm5 >= 4.99.10
58 Requires:       libxml++2 >= 2.24.0
59 Requires:       libxslt >= 1.1.17
60 Requires:       python3-modules >= 1:3.2
61 Requires:       python3-pygobject3 >= 2.29.0
62 Suggests:       libgda5-provider-mysql >= 5.2.1
63 Suggests:       libgda5-provider-postgres >= 5.2.1
64 Suggests:       libgda5-provider-sqlite >= 5.2.1
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
70 %description -l pl.UTF-8
71 Glom jest łatwym w użyciu programem do projektowania baz danych oraz
72 interfejsem użytkownika.
73
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
90 %if "%{_rpmversion}" >= "5"
91 BuildArch:      noarch
92 %endif
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
111 %prep
112 %setup -q
113
114 %build
115 %{__gettextize}
116 %{__intltoolize}
117 %{__libtoolize}
118 %{__aclocal} -I macros
119 %{__autoconf}
120 %{__autoheader}
121 %{__automake}
122 %configure \
123         PYTHON="%{__python3}" \
124         --disable-silent-rules \
125         --disable-static \
126         --disable-update-mime-database \
127         --enable-mysql \
128         --enable-sqlite \
129         --with-mysql-utils=%{_bindir} \
130         --with-postgres-utils=%{_bindir}
131 %{__make}
132
133 %install
134 rm -rf $RPM_BUILD_ROOT
135
136 %{__make} install \
137         DESTDIR=$RPM_BUILD_ROOT
138
139 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
140 %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/*.la
141
142 install -d $RPM_BUILD_ROOT%{_examplesdir}
143 cp -pr examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
144
145 %find_lang %{name} --with-gnome
146
147 %clean
148 rm -rf $RPM_BUILD_ROOT
149
150 %post
151 /sbin/ldconfig
152 %update_desktop_database_post
153 %update_mime_database
154 %update_icon_cache hicolor
155
156 %postun
157 /sbin/ldconfig
158 %update_desktop_database_postun
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
165 %attr(755,root,root) %{_bindir}/glom
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
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
173 %{_datadir}/%{name}
174 %{_datadir}/appdata/glom.appdata.xml
175 %{_datadir}/mime/packages/glom.xml
176 %{_desktopdir}/glom.desktop
177 %{_iconsdir}/hicolor/*x*/apps/glom.png
178 %{_iconsdir}/hicolor/scalable/apps/glom.svg
179
180 %files devel
181 %defattr(644,root,root,755)
182 %attr(755,root,root) %{_libdir}/libglom-1.30.so
183 %{_includedir}/glom-1.30
184 %{_pkgconfigdir}/glom-1.30.pc
185
186 %files apidocs
187 %defattr(644,root,root,755)
188 %{_docdir}/libglom-1.30
189 %{_docdir}/pyglom_1_30
190 %{_datadir}/devhelp/books/libglom-1.30
191
192 %files examples
193 %defattr(644,root,root,755)
194 %attr(755,root,root) %{_bindir}/glom_create_from_example
195 %{_examplesdir}/%{name}-%{version}
This page took 0.081028 seconds and 2 git commands to generate.