]> git.pld-linux.org Git - SPECS.git/blob - unixODBC-GUI-Qt.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / unixODBC-GUI-Qt.spec
1 Summary:        Qt-based GUIs for unixODBC
2 Summary(pl.UTF-8):      Oparte na Qt graficzne interfejsy dla unixODBC
3 Name:           unixODBC-GUI-Qt
4 Version:        2.3.0
5 %define snap    r92
6 Release:        0.%{snap}.1
7 License:        LGPL v2+ (libraries), GPL v2+ (applications)
8 Group:          X11/Applications
9 # svn co https://unixodbc-gui-qt.svn.sourceforge.net/svnroot/unixodbc-gui-qt
10 Source0:        %{name}-%{version}-%{snap}.tar.bz2
11 # Source0-md5:  102927d027e15dd7335eff9bed7213cd
12 Source1:        unixODBC.png
13 Source2:        ODBCDataManagerQ4.desktop
14 Source3:        ODBCManageDataSourcesQ4.desktop
15 Source4:        ODBCTestQ4.desktop
16 Patch0:         %{name}-qt4.patch
17 Patch1:         link.patch
18 URL:            http://sourceforge.net/projects/unixodbc-gui-qt/
19 BuildRequires:  QtGui-devel >= 4.0
20 BuildRequires:  QtNetwork-devel >= 4.0
21 BuildRequires:  autoconf
22 BuildRequires:  automake
23 BuildRequires:  flex
24 BuildRequires:  libltdl-devel
25 BuildRequires:  libstdc++-devel
26 BuildRequires:  libtool >= 1:1.4.2-9
27 BuildRequires:  qt4-build >= 4.0
28 BuildRequires:  readline-devel >= 4.2
29 BuildRequires:  unixODBC-devel >= 2.3.0
30 Requires:       unixODBC >= 2.3.0
31 Suggests:       qt4-assisant >= 4.0
32 Obsoletes:      unixODBC-qt
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 Qt-based GUIs for unixODBC - libodbcinstQ plugin for libodbcinst
37 library and applications: DataManager, DataManagerII, ODBCConfig,
38 odbctest.
39
40 %description -l pl.UTF-8
41 Oparte na Qt graficzne interfejsy użytkownika do unixODBC - wtyczka
42 libodbcinstQ dla biblioteki libodbcinst oraz aplikacje: DataManager,
43 DataManagerII, ODBCConfig, odbctest.
44
45 %prep
46 %setup -q -n %{name}
47 %patch0 -p1
48 %patch1 -p1
49
50 %build
51 %{__libtoolize}
52 %{__aclocal}
53 %{__autoconf}
54 %{__automake}
55 %configure \
56         --disable-static \
57         --enable-ltdllib \
58         --with-qt-dir-bin=%{_libdir}/qt4/bin \
59         --with-qt-dir-include=/usr/include/qt4 \
60         --with-qt-dir-lib=%{_libdir}
61
62 %{__make}
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66
67 %{__make} install \
68         DESTDIR=$RPM_BUILD_ROOT
69
70 # libodbcinstQ.so.1 is lt_dlopened
71 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib{gtrtstQ4,odbcinstQ4}.la
72
73 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
74 install %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}
75 # acc. to README ODBCDataManagerQ4 is not done yet
76 #install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
77 install %{SOURCE3} %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %post   -p /sbin/ldconfig
83 %postun -p /sbin/ldconfig
84
85 %files
86 %defattr(644,root,root,755)
87 %doc AUTHORS COPYING ChangeLog NEWS README
88 %attr(755,root,root) %{_bindir}/ODBCCreateDataSourceQ4
89 %attr(755,root,root) %{_bindir}/ODBCManageDataSourcesQ4
90 %attr(755,root,root) %{_bindir}/ODBCTestQ4
91 %attr(755,root,root) %{_libdir}/libgtrtstQ4.so.*.*.*
92 %attr(755,root,root) %ghost %{_libdir}/libgtrtstQ4.so.1
93 %attr(755,root,root) %{_libdir}/libodbcinstQ4.so.*.*.*
94 %attr(755,root,root) %ghost %{_libdir}/libodbcinstQ4.so.1
95 # for dlopen
96 %attr(755,root,root) %{_libdir}/libgtrtstQ4.so
97 %attr(755,root,root) %{_libdir}/libodbcinstQ4.so
98 %{_pixmapsdir}/unixODBC.png
99 %{_desktopdir}/ODBCTestQ4.desktop
100 %{_desktopdir}/ODBCManageDataSourcesQ4.desktop
This page took 1.010694 seconds and 3 git commands to generate.