]>
Commit | Line | Data |
---|---|---|
b074a322 | 1 | Summary: Data With Interaction |
40b82732 | 2 | Summary(pl.UTF-8): Data With Interaction - biblioteka do pracy z danymi |
b074a322 | 3 | Name: dwi |
33d26283 JB |
4 | Version: 0.6.2 |
5 | Release: 0.1 | |
b074a322 JB |
6 | License: LGPL v2.1+ |
7 | Group: Libraries | |
8 | Source0: http://dl.sourceforge.net/dwi/%{name}-%{version}.tar.gz | |
33d26283 | 9 | # Source0-md5: 23ca8f91c771a0f7264801a66d3adaec |
b074a322 | 10 | Patch0: %{name}-libpq.patch |
33d26283 JB |
11 | Patch1: %{name}-qof.patch |
12 | Patch2: %{name}-link.patch | |
b074a322 JB |
13 | URL: http://dwi.sourceforge.net/ |
14 | BuildRequires: autoconf | |
15 | BuildRequires: automake | |
16 | BuildRequires: glib2-devel >= 2.0.0 | |
33d26283 | 17 | BuildRequires: gtk+2-devel >= 1:2.0 |
b074a322 | 18 | BuildRequires: libdbi-devel |
33d26283 | 19 | BuildRequires: libglade2-devel >= 1:2.0 |
b074a322 JB |
20 | BuildRequires: libgnomeui-devel >= 2.0 |
21 | BuildRequires: libtool | |
22 | BuildRequires: libxml2-devel >= 2.0.0 | |
23 | BuildRequires: pkgconfig | |
24 | BuildRequires: postgresql-devel | |
1e0dee62 | 25 | BuildRequires: qof-devel >= 0.7.2 |
b074a322 | 26 | BuildRequires: unixODBC-devel |
b074a322 JB |
27 | BuildConflicts: libiodbc-devel |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | DWI is a fairly simple environment for quickly creating data-driven | |
32 | applications, that is, graphical applications that manipulate and show | |
33 | info from a database. | |
34 | ||
f1870787 JR |
35 | %description -l pl.UTF-8 |
36 | DWI to w miarę proste środowisko do szybkiego tworzenia aplikacji | |
37 | pracujących z danymi, czyli graficznych aplikacji obrabiających i | |
38 | wyświetlających informacje z bazy danych. | |
b074a322 JB |
39 | |
40 | %package devel | |
41 | Summary: Header files for DWI library | |
40b82732 | 42 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki DWI |
b074a322 JB |
43 | Group: Development/Libraries |
44 | Requires: %{name} = %{version}-%{release} | |
45 | Requires: glib2-devel >= 2.0.0 | |
46 | Requires: libxml2-devel >= 2.0.0 | |
47 | ||
48 | %description devel | |
49 | Header files for DWI library. | |
50 | ||
f1870787 JR |
51 | %description devel -l pl.UTF-8 |
52 | Pliki nagłówkowe biblioteki DWI. | |
b074a322 JB |
53 | |
54 | %package static | |
55 | Summary: Static DWI library | |
40b82732 | 56 | Summary(pl.UTF-8): Statyczna biblioteka DWI |
b074a322 JB |
57 | Group: Development/Libraries |
58 | Requires: %{name}-devel = %{version}-%{release} | |
59 | ||
60 | %description static | |
61 | Static DWI library. | |
62 | ||
f1870787 | 63 | %description static -l pl.UTF-8 |
b074a322 JB |
64 | Statyczna biblioteka DWI. |
65 | ||
66 | %prep | |
67 | %setup -q | |
68 | %patch0 -p1 | |
69 | %patch1 -p1 | |
1e0dee62 | 70 | %patch2 -p1 |
b074a322 JB |
71 | |
72 | %build | |
73 | %{__libtoolize} | |
74 | %{__aclocal} | |
75 | %{__autoconf} | |
76 | %{__autoheader} | |
77 | %{__automake} | |
78 | %configure | |
79 | %{__make} | |
80 | ||
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %{__make} install \ | |
85 | DESTDIR=$RPM_BUILD_ROOT | |
86 | ||
87 | rm -f $RPM_BUILD_ROOT%{_libdir}/libdwi-db-*.{la,a} | |
88 | ||
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %post -p /sbin/ldconfig | |
93 | %postun -p /sbin/ldconfig | |
94 | ||
95 | %files | |
96 | %defattr(644,root,root,755) | |
97 | %doc AUTHORS NEWS README TODO | |
98 | %attr(755,root,root) %{_bindir}/dwi-run | |
99 | %attr(755,root,root) %{_libdir}/libdwi.so.*.*.* | |
b074a322 | 100 | %attr(755,root,root) %{_libdir}/libdwi-dbdrivers.so.*.*.* |
1e0dee62 JB |
101 | %attr(755,root,root) %{_libdir}/libdwi-parse.so.*.*.* |
102 | # | |
b074a322 | 103 | %attr(755,root,root) %{_libdir}/libdwi-gtk.so.*.*.* |
1e0dee62 | 104 | %attr(755,root,root) %{_libdir}/libdwi-qof.so.*.*.* |
b074a322 JB |
105 | # drivers |
106 | %attr(755,root,root) %{_libdir}/libdwi-db-libdbi.so | |
107 | %attr(755,root,root) %{_libdir}/libdwi-db-libpg.so | |
108 | %attr(755,root,root) %{_libdir}/libdwi-db-odbc.so | |
109 | ||
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
112 | %attr(755,root,root) %{_libdir}/libdwi.so | |
b074a322 | 113 | %attr(755,root,root) %{_libdir}/libdwi-dbdrivers.so |
1e0dee62 JB |
114 | %attr(755,root,root) %{_libdir}/libdwi-parse.so |
115 | # | |
b074a322 | 116 | %attr(755,root,root) %{_libdir}/libdwi-gtk.so |
1e0dee62 | 117 | %attr(755,root,root) %{_libdir}/libdwi-qof.so |
b074a322 | 118 | %{_libdir}/libdwi.la |
b074a322 | 119 | %{_libdir}/libdwi-dbdrivers.la |
1e0dee62 JB |
120 | %{_libdir}/libdwi-parse.la |
121 | # | |
b074a322 | 122 | %{_libdir}/libdwi-gtk.la |
1e0dee62 | 123 | %{_libdir}/libdwi-qof.la |
b074a322 JB |
124 | %{_includedir}/dwi |
125 | %{_pkgconfigdir}/dwi-0.pc | |
126 | ||
127 | %files static | |
128 | %defattr(644,root,root,755) | |
129 | %{_libdir}/libdwi.a | |
b074a322 | 130 | %{_libdir}/libdwi-dbdrivers.a |
1e0dee62 JB |
131 | %{_libdir}/libdwi-parse.a |
132 | # | |
b074a322 | 133 | %{_libdir}/libdwi-gtk.a |
1e0dee62 | 134 | %{_libdir}/libdwi-qof.a |