-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlbdmf-debug.spec
93 lines (75 loc) · 3.26 KB
/
lbdmf-debug.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
Name: lbdmf
Summary: Distributed Multiplatform Framework
Version: 1.1.1_debug
Release: 1
License: LGPL
Group: Development/Tools
Source: %{name}-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
Packager: Lothar Behrens <[email protected]>
Distribution: SUSE
Prefix: /usr
Url: http://www.lollisoft.de
Autoreqprov: on
Provides: lbdmf
%if %suse_version <= 910
BuildRequires: libxslt-devel libxml2-devel wxGTK-devel >= 2.6.2 unixODBC-devel >= 2.2.11 update-desktop-files
Requires: unixODBC >= 2.2.11 desktop-file-utils
%else
BuildRequires: libxslt-devel libxml2-devel wxGTK >= 2.6.2 desktop-file-utils unixODBC-devel >= 2.2.11
Requires: unixODBC >= 2.2.11 desktop-file-utils
%endif
%description
This is a framework to develop software. It's origin goal was to make me independent from other
(commercial) frameworks and development tools.
This release also is tested to build properly on SuSE Linux 9.1, openSuSE 10.1 and 11.1.
You will need to install the following packages when building on 10.1:
* GTK+-devel from DVD/CD
* latest wxGTK version in src tgz from www.wxwidgets.org
* pkgconfig from your install DVD/CD
* unixODBC from the vendor at www.unixodbc.org and compile it.
* pgsqlodbc.so in version 07.03.0200 from www.postgresql.org
%prep
rm -rf $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT
%setup -q
%build
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \
./configure --prefix=$RPM_BUILD_ROOT%{prefix}
if [ "$SMP" != "" ]; then
make -j 2
else
make
fi
%install
make DESTDIR="%{buildroot}" install
cd $RPM_BUILD_ROOT
find . -type d -fprint $RPM_BUILD_DIR/file.list.%{name}.dirs
find . -type f -fprint $RPM_BUILD_DIR/file.list.%{name}.files.tmp
sed '/\/man\//s/$/.gz/g' $RPM_BUILD_DIR/file.list.%{name}.files.tmp > $RPM_BUILD_DIR/file.list.%{name}.files
find . -type l -fprint $RPM_BUILD_DIR/file.list.%{name}.libs
sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' $RPM_BUILD_DIR/file.list.%{name}.dirs > $RPM_BUILD_DIR/file.list.%{name}
sed 's,^\.,\%attr(-\,root\,root) ,' $RPM_BUILD_DIR/file.list.%{name}.files >> $RPM_BUILD_DIR/file.list.%{name}
sed 's,^\.,\%attr(-\,root\,root) ,' $RPM_BUILD_DIR/file.list.%{name}.libs >> $RPM_BUILD_DIR/file.list.%{name}
%post
echo "[Desktop Entry]" > "%{prefix}/share/applications/wxWrapper.desktop"
echo "Encoding=UTF-8" >> "%{prefix}/share/applications/wxWrapper.desktop"
echo "Name=Rapid Database GUI Designer" >> "%{prefix}/share/applications/wxWrapper.desktop"
echo "Type=Application" >> "%{prefix}/share/applications/wxWrapper.desktop"
echo "Comment=Database designer based on wxWrapper" >> "%{prefix}/share/applications/wxWrapper.desktop"
echo "Exec=wxWrapper" >> "%{prefix}/share/applications/wxWrapper.desktop"
echo "TryExec=wxWrapper" >> "%{prefix}/share/applications/wxWrapper.desktop"
echo "Icon=%{prefix}/share/lbdmf/lbdmf.png" >> "%{prefix}/share/applications/wxWrapper.desktop"
echo "Categories=Development;" >> "%{prefix}/share/applications/wxWrapper.desktop"
ldconfig
%postun
rm %{prefix}/share/applications/wxWrapper.desktop
%clean
rm -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_DIR/file.list.%{name}
rm -rf $RPM_BUILD_DIR/file.list.%{name}.libs
rm -rf $RPM_BUILD_DIR/file.list.%{name}.files
rm -rf $RPM_BUILD_DIR/file.list.%{name}.files.tmp
rm -rf $RPM_BUILD_DIR/file.list.%{name}.dirs
%files -f ../file.list.%{name}
%defattr(-,root,root,0755)