]>
Commit | Line | Data |
---|---|---|
50125d42 JB |
1 | Summary: VirtualPostgres driver for SQLite DBMS |
2 | Summary(pl.UTF-8): Sterownik VirtualPostgres dla systemu baz danych SQLite | |
3 | Name: virtualpg | |
4587fc3e | 4 | Version: 2.0.1 |
50125d42 JB |
5 | Release: 1 |
6 | License: MPL v1.1 or GPL v2+ or LGPL v2.1+ | |
7 | Group: Libraries | |
8 | Source0: http://www.gaia-gis.it/gaia-sins/virtualpg-sources/%{name}-%{version}.tar.gz | |
4587fc3e | 9 | # Source0-md5: c90fc631ba99a64a6f225b31172d6b5d |
50125d42 JB |
10 | URL: https://www.gaia-gis.it/fossil/virtualpg |
11 | BuildRequires: postgresql-devel | |
12 | BuildRequires: sqlite3-devel >= 3 | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | virtualpg is a dynamic extension for the SQLite DBMS. It implements | |
17 | the VirtualPostgres driver, allowing to directly exchange data between | |
18 | SQLite and PostgreSQL; if SpatiaLite is available even PostGIS | |
19 | geometries can ben exchanged from one Spatial DBMS and the other. | |
20 | ||
21 | %description -l pl.UTF-8 | |
22 | virtualpg to dynamiczne rozszerzenie dla systemu baz danych SQLite. | |
23 | Implementuje sterownik VirtualPostgres, pozwalający bezpośrednio | |
24 | wymieniać dane między bazami SQLite a PostgreSQL; jeśli dostępne jest | |
25 | SpatiaLite, można wymieniać także geometrie PostGIS-a. | |
26 | ||
4587fc3e JB |
27 | %package devel |
28 | Summary: Header file for VirtualPG library | |
29 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki VirtualPG | |
30 | Group: Development/Libraries | |
31 | Requires: %{name} = %{version}-%{release} | |
32 | Requires: postgresql-devel | |
33 | ||
34 | %description devel | |
35 | Header file for VirtualPG library. | |
36 | ||
37 | %description devel -l pl.UTF-8 | |
38 | Plik nagłówkowy biblioteki VirtualPG. | |
39 | ||
40 | %package static | |
41 | Summary: Static VirtualPG library | |
42 | Summary(pl.UTF-8): Statyczna biblioteka VirtualPG | |
43 | Group: Development/Libraries | |
44 | Requires: %{name}-devel = %{version}-%{release} | |
45 | ||
46 | %description static | |
47 | Static VirtualPG library. | |
48 | ||
49 | %description static -l pl.UTF-8 | |
50 | Statyczna biblioteka VirtualPG. | |
51 | ||
50125d42 JB |
52 | %prep |
53 | %setup -q | |
54 | ||
55 | %build | |
56 | %configure | |
57 | ||
58 | %{__make} | |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %{__make} install \ | |
64 | DESTDIR=$RPM_BUILD_ROOT | |
65 | ||
4587fc3e | 66 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvirtualpg.la |
f834732f | 67 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/mod_virtualpg.la |
50125d42 JB |
68 | |
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
4587fc3e JB |
72 | %post -p /sbin/ldconfig |
73 | %postun -p /sbin/ldconfig | |
74 | ||
50125d42 JB |
75 | %files |
76 | %defattr(644,root,root,755) | |
77 | %doc AUTHORS README | |
4587fc3e JB |
78 | %attr(755,root,root) %{_libdir}/libvirtualpg.so.*.*.* |
79 | %attr(755,root,root) %ghost %{_libdir}/libvirtualpg.so.0 | |
f834732f | 80 | %attr(755,root,root) %{_libdir}/mod_virtualpg.so* |
4587fc3e JB |
81 | |
82 | %files devel | |
83 | %defattr(644,root,root,755) | |
84 | %attr(755,root,root) %{_libdir}/libvirtualpg.so | |
85 | %{_includedir}/virtualpg.h | |
86 | %{_pkgconfigdir}/virtualpg.pc | |
87 | ||
88 | %files static | |
89 | %defattr(644,root,root,755) | |
90 | %{_libdir}/libvirtualpg.a |