]>
Commit | Line | Data |
---|---|---|
8742bdd8 | 1 | Summary: Tool for creating converters from dbf files to MySQL commands |
eba335de | 2 | Summary(pl.UTF-8): Narzędzie do tworzenia konwerterów plików dbf na instrukcje MySQL |
8742bdd8 AM |
3 | Name: dbf2mysql |
4 | Version: 1.14a | |
5 | Release: 1 | |
6 | License: GPL | |
7 | Group: Applications/Databases | |
26ba9539 | 8 | Source0: http://ftp.debian.org/debian/pool/main/d/dbf2mysql/%{name}_%{version}.orig.tar.gz |
8742bdd8 AM |
9 | # Source0-md5: 381f69bf6aa5d8dbed8a4ac129d63a6c |
10 | Patch0: %{name}-debian.patch | |
11 | URL: http://dbf2mysql.sourceforge.net/ | |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %description | |
15 | dbf2mysql is a little tool that will display dBase III and IV files. | |
16 | You can also use it to convert your old .dbf files for further use | |
17 | with MySQL. | |
18 | ||
c169d403 JR |
19 | %description -l pl.UTF-8 |
20 | dbf2mysql jest małym programem wyświetlającym zawartość plików dBase | |
21 | III i IV. Można go wykorzystać do konwersji starych plików .dbf do | |
8742bdd8 AM |
22 | wykorzystania pod MySQL. |
23 | ||
24 | %prep | |
25 | %setup -q | |
26 | %patch0 -p1 | |
27 | patch -p1 < debian/patches/mysql.dpatch || exit 1 | |
28 | patch -p1 < debian/patches/05_mysql_real_connect.dpatch || exit 1 | |
29 | ||
30 | %build | |
31 | %{__make} \ | |
32 | CC="%{__cc}" \ | |
33 | CFLAGS="%{rpmcflags}" \ | |
34 | MYSQLLIB="-L%{_libdir}" | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} | |
39 | install dbf2mysql mysql2dbf $RPM_BUILD_ROOT%{_bindir} | |
40 | install debian/dbf2mysql.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
41 | ||
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %files | |
46 | %defattr(644,root,root,755) | |
47 | %doc README | |
48 | %attr(755,root,root) %{_bindir}/* | |
49 | %{_mandir}/man1/* |