-
Notifications
You must be signed in to change notification settings - Fork 3
/
libqt3-qdataschema-fedora.spec
142 lines (109 loc) · 3.67 KB
/
libqt3-qdataschema-fedora.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# trade equipment project
# Spec file for building rpm and rpms under Fedora
# $Id: libqt3-qdataschema-fedora.spec,v 1.2 2008/11/09 20:03:16 leader Exp $
# $Name: $
#
%define ShortName qdataschema
%define _qtdir %(echo $QTDIR)
Name: libqt3-qdataschema
Version: 1.2.0
Release: alt0
Buildroot: %{_tmppath}/%{name}-%{version}-root
Summary: QT Data schema library
License: GPL
Group: Office
Url: http://www.leaderit.ru/
Vendor: Leader InfoTech
Source: %name-%version.tar.bz2
Requires: qt3 >= 3.2
BuildRequires: gcc-c++ libstdc++-devel
BuildRequires: qt3-devel doxygen tetex-latex tetex-dvips
%description
QT Data Schema library
Provide Application to database server
structure verification and syncronysation.
Support MySQL, PostgreSQL, SQLite.
Developers
---------------
Valery Grazhdankin <vg at leaderit dot ru>
#==============================================================
%package -n libqt3-qdataschema-devel
Summary: QT Data Schema library
Group: Office
Requires: libqt3-qdataschema
%description -n libqt3-qdataschema-devel
QT Data Schema library headers
Provide Application to database server
structure verification and syncronysation.
Support MySQL, PostgreSQL, SQLite.
Developers
---------------
Valery Grazhdankin <vg at leaderit dot ru>
#==============================================================
%package -n libqt3-qdataschema-utils
Summary: QT Data Schema administrator
Group: Office
Requires: libqt3-qdataschema
%description -n libqt3-qdataschema-utils
QT Data Schema administrator
QT Data Schema library
Provide Application to database server
structure verification and syncronysation.
Support MySQL, PostgreSQL, SQLite.
Developers
---------------
Valery Grazhdankin <vg at leaderit dot ru>
#==============================================================
%package -n libqt3-qdataschema-doc
Summary: QT Data Schema library documentation
Group: Office
#Requires:
%description -n libqt3-qdataschema-doc
QT Data Schema library documentation
QT Data Schema library
Provide Application to database server
structure verification and syncronysation.
Support MySQL, PostgreSQL, SQLite.
Developers
---------------
Valery Grazhdankin <vg at leaderit dot ru>
%prep
%setup
%build
export QTDIR=/usr/lib/qt3
export PATH=${PATH}:$QTDIR/bin
make -e QT_VER=3
%install
export QTDIR=/usr/lib/qt3
export PATH=${PATH}:$QTDIR/bin
make doc && make install INSTALL_ROOT="$RPM_BUILD_ROOT" LIBDIR=%_libdir BINDIR=%_bindir DOCDIR=%_docdir/%name-%version INCLUDEDIR=%_includedir/%name
%__mkdir_p %buildroot/%_bindir
%__mkdir_p %buildroot/$QTDIR/lib
%__mkdir_p %buildroot/$QTDIR/bin
%__mkdir_p %buildroot/$QTDIR/include/%ShortName
%__mkdir_p %buildroot/%_docdir/%name-%version/html
%__mkdir_p %buildroot/%_docdir/%name-%version/html-ru
%__mkdir_p %buildroot/%_docdir/%name-%version/example
cp -df %_builddir/%name-%version/lib/* %buildroot/$QTDIR/lib/
cp -df %_builddir/%name-%version/bin/* %buildroot$QTDIR/bin/
cp -f %_builddir/%name-%version/src/lib/*.h %buildroot/$QTDIR/include/%ShortName
cp -f %_builddir/%name-%version/doc/html/* %buildroot%_docdir/%name-%version/html/
cp -f %_builddir/%name-%version/doc/html-ru/* %buildroot%_docdir/%name-%version/html-ru/
cp -Rdf %_builddir/%name-%version/src/example/* %buildroot%_docdir/%name-%version/example/
cd %buildroot%_libdir/ && ln -s qt3/lib/* ./
%post
%postun
%clean
%files
%_libdir/*
%files -n libqt3-qdataschema-utils
%_libdir/qt3/bin/*
%files -n libqt3-qdataschema-doc
%_docdir/%name-%version/*
%files -n libqt3-qdataschema-devel
%_libdir/qt3/include/%ShortName/*.h
%changelog
* Sun Nov 09 2008 Valeriy Grazhdankin <[email protected]> 1.2.0-alt0
+ Correct updates for SQLite, MySQL
* Sat Mar 19 2005 Valery Grazdankin <[email protected]> 1.0.0-alt0
+ init