Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 153 lines (128 sloc) 3.953 kB
b7e15e4 @vadz 1. configre/makefiles changes
vadz authored
1 %define pref /usr
46ef9e1 @vadz Incremented the version number to 2.9.4 everywhere.
vadz authored
2 %define ver 2.9.4
59bc9b3 @RobinD42 Set version number
RobinD42 authored
3 %define ver2 2.9
1521240 @JulianSmart rel = 1
JulianSmart authored
4 %define rel 1
b7e15e4 @vadz 1. configre/makefiles changes
vadz authored
5
ee750a9 @vslavik updated the RPMs
vslavik authored
6 # Configurable settings (use --with(out) unicode on rpmbuild command line):
7 %define unicode 0
8 %{?_with_unicode: %{expand: %%define unicode 1}}
9 %{?_without_unicode: %{expand: %%define unicode 0}}
10
11 %if %{unicode}
6836e68 @vadz updates from photon3108@users.sf.net (patches 1173350, 1173440, 11734…
vadz authored
12 %define name wx-base-unicode
13 %define wxconfig base-unicode-release-%{ver2}
14 %define wxconfiglink wxbaseu-%{ver2}-config
ee750a9 @vslavik updated the RPMs
vslavik authored
15 %else
6836e68 @vadz updates from photon3108@users.sf.net (patches 1173350, 1173440, 11734…
vadz authored
16 %define name wx-base
17 %define wxconfig base-ansi-release-%{ver2}
18 %define wxconfiglink wxbase-%{ver2}-config
ee750a9 @vslavik updated the RPMs
vslavik authored
19 %endif
20
6836e68 @vadz updates from photon3108@users.sf.net (patches 1173350, 1173440, 11734…
vadz authored
21 Summary: wxBase library - non-GUI support classes of wxWidgets toolkit
22 Name: %{name}
b7e15e4 @vadz 1. configre/makefiles changes
vadz authored
23 Version: %{ver}
24 Release: %{rel}
ee750a9 @vslavik updated the RPMs
vslavik authored
25 License: wxWindows Licence
b7e15e4 @vadz 1. configre/makefiles changes
vadz authored
26 Group: Development/Libraries
89fafee @vadz 1. use tar.bz2 as sources, not tar.gz
vadz authored
27 Source: wxBase-%{ver}.tar.bz2
6836e68 @vadz updates from photon3108@users.sf.net (patches 1173350, 1173440, 11734…
vadz authored
28 URL: http://www.wxwidgets.org
b7e15e4 @vadz 1. configre/makefiles changes
vadz authored
29 Packager: Vadim Zeitlin <vadim@wxwindows.org>
2f51d03 @vadz modified make and .spec files to build distribution files names with …
vadz authored
30 Prefix: %{pref}
6836e68 @vadz updates from photon3108@users.sf.net (patches 1173350, 1173440, 11734…
vadz authored
31 BuildRoot: %{_tmppath}/%{name}-root
ee750a9 @vslavik updated the RPMs
vslavik authored
32 Provides: wxBase
b7e15e4 @vadz 1. configre/makefiles changes
vadz authored
33
34 %description
35 wxBase is a collection of C++ classes providing basic data structures (strings,
36 lists, arrays), powerful wxDateTime class for date manipulations, portable
37 wrappers around many OS-specific functions allowing to build the same program
38 under all supported folders, wxThread class for writing multithreaded programs
39 using either Win32 or POSIX threads and much more. wxBase currently supports
40 the following platforms: Win32, generic Unix (Linux, FreeBSD, Solaris, HP-UX,
41 ...) and BeOS.
42
43 %package devel
44 Summary: wxBase headers needed for developping with wxBase
45 Group: Development/Libraries
ee750a9 @vslavik updated the RPMs
vslavik authored
46 Requires: %{name} = %{ver}
47 Provides: wxBase-devel
b7e15e4 @vadz 1. configre/makefiles changes
vadz authored
48
49 %description devel
50 Header files for wxBase. You need them to develop programs using wxBase.
51
bb4ed26 @vslavik added -static packages to specfiles
vslavik authored
52 %package static
53 Summary: wxBase static libraries
54 Group: Development/Libraries
6836e68 @vadz updates from photon3108@users.sf.net (patches 1173350, 1173440, 11734…
vadz authored
55 Requires: %{name}-devel = %{ver}
bb4ed26 @vslavik added -static packages to specfiles
vslavik authored
56
57 %description static
58 Static libraries for wxBase. You need them if you want to link statically against wxBase.
59
b7e15e4 @vadz 1. configre/makefiles changes
vadz authored
60 %prep
ee750a9 @vslavik updated the RPMs
vslavik authored
61 %setup -q -n wxBase-%{ver}
b7e15e4 @vadz 1. configre/makefiles changes
vadz authored
62
63 %build
64 if [ "$SMP" != "" ]; then
6836e68 @vadz updates from photon3108@users.sf.net (patches 1173350, 1173440, 11734…
vadz authored
65 export MAKE="make -j$SMP"
b7e15e4 @vadz 1. configre/makefiles changes
vadz authored
66 else
6836e68 @vadz updates from photon3108@users.sf.net (patches 1173350, 1173440, 11734…
vadz authored
67 export MAKE="make"
b7e15e4 @vadz 1. configre/makefiles changes
vadz authored
68 fi
bb4ed26 @vslavik added -static packages to specfiles
vslavik authored
69
70 mkdir obj-shared
71 cd obj-shared
ee750a9 @vslavik updated the RPMs
vslavik authored
72 ../configure --prefix=%{pref} --disable-gui \
73 %if %{unicode}
6836e68 @vadz updates from photon3108@users.sf.net (patches 1173350, 1173440, 11734…
vadz authored
74 --enable-unicode
ee750a9 @vslavik updated the RPMs
vslavik authored
75 %else
767e881 @vadz remove ODBC and DBgrid libraries
vadz authored
76 --disable-unicode \
ee750a9 @vslavik updated the RPMs
vslavik authored
77 %endif
bb4ed26 @vslavik added -static packages to specfiles
vslavik authored
78 $MAKE
79 cd ..
80
81 mkdir obj-static
82 cd obj-static
6836e68 @vadz updates from photon3108@users.sf.net (patches 1173350, 1173440, 11734…
vadz authored
83 ../configure --prefix=%{pref} --disable-gui --disable-shared \
ee750a9 @vslavik updated the RPMs
vslavik authored
84 %if %{unicode}
6836e68 @vadz updates from photon3108@users.sf.net (patches 1173350, 1173440, 11734…
vadz authored
85 --enable-unicode
ee750a9 @vslavik updated the RPMs
vslavik authored
86 %else
767e881 @vadz remove ODBC and DBgrid libraries
vadz authored
87 --disable-unicode \
ee750a9 @vslavik updated the RPMs
vslavik authored
88 %endif
bb4ed26 @vslavik added -static packages to specfiles
vslavik authored
89 $MAKE
90 cd ..
91
b7e15e4 @vadz 1. configre/makefiles changes
vadz authored
92 %install
93 rm -rf $RPM_BUILD_ROOT
5fa970d @vadz make message catalogs before installing them
vadz authored
94 make -C locale allmo
95 make -C obj-static DESTDIR=$RPM_BUILD_ROOT prefix=%{pref} install
96 make -C obj-shared DESTDIR=$RPM_BUILD_ROOT prefix=%{pref} install
b7e15e4 @vadz 1. configre/makefiles changes
vadz authored
97
dc35212 @vadz convert wx-config link created by make install to use relative path, …
vadz authored
98 # we need to modify the absolute wx-config link to be relative or rpm complains
99 # (and our package wouldn't be relocatable)
100 ln -sf ../lib/wx/config/%{wxconfig} $RPM_BUILD_ROOT/%{pref}/bin/wx-config
101
731865e @vslavik mo files are now with lang directive
vslavik authored
102 %find_lang wxstd
103
b7e15e4 @vadz 1. configre/makefiles changes
vadz authored
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %post
108 /sbin/ldconfig
109
110 %postun
111 /sbin/ldconfig
112
a8f9beb @vadz fixes after wx-config changes (patch 1076155)
vadz authored
113 %post devel
114 # link wx-config when you install RPM.
6836e68 @vadz updates from photon3108@users.sf.net (patches 1173350, 1173440, 11734…
vadz authored
115 ln -sf %{_libdir}/wx/config/%{wxconfig} %{_bindir}/wx-config
a8f9beb @vadz fixes after wx-config changes (patch 1076155)
vadz authored
116 # link wx-config with explicit name.
6836e68 @vadz updates from photon3108@users.sf.net (patches 1173350, 1173440, 11734…
vadz authored
117 ln -sf %{_libdir}/wx/config/%{wxconfig} %{_bindir}/%{wxconfiglink}
118 /sbin/ldconfig
119
120 %postun devel
121 /sbin/ldconfig
122
a8f9beb @vadz fixes after wx-config changes (patch 1076155)
vadz authored
123 %preun devel
124 if test -f %{_bindir}/wx-config -a -f /usr/bin/md5sum ; then
6836e68 @vadz updates from photon3108@users.sf.net (patches 1173350, 1173440, 11734…
vadz authored
125 SUM1=`md5sum %{_libdir}/wx/config/%{wxconfig} | cut -c 0-32`
126 SUM2=`md5sum %{_bindir}/wx-config | cut -c 0-32`
127 if test "x$SUM1" = "x$SUM2" ; then
128 rm -f %{_bindir}/wx-config
129 fi
a8f9beb @vadz fixes after wx-config changes (patch 1076155)
vadz authored
130 fi
6836e68 @vadz updates from photon3108@users.sf.net (patches 1173350, 1173440, 11734…
vadz authored
131 rm -f %{_bindir}/%{wxconfiglink}
a8f9beb @vadz fixes after wx-config changes (patch 1076155)
vadz authored
132
731865e @vslavik mo files are now with lang directive
vslavik authored
133 %files -f wxstd.lang
6e4661c @vslavik fixes for wxBase RPM
vslavik authored
134 %defattr (-,root,root)
135 %doc COPYING.LIB *.txt
6836e68 @vadz updates from photon3108@users.sf.net (patches 1173350, 1173440, 11734…
vadz authored
136 %{_libdir}/libwx_base*-%{ver2}.so.*
1c00cb7 @vadz added missing files to the RPM
vadz authored
137
6e4661c @vslavik fixes for wxBase RPM
vslavik authored
138 %files devel
139 %defattr (-,root,root)
8fb8adf @vadz add some more files to fix rpmbuild errors (parts of patch 1533296)
vadz authored
140 %{_bindir}/wx-config
6836e68 @vadz updates from photon3108@users.sf.net (patches 1173350, 1173440, 11734…
vadz authored
141 %dir %{_includedir}/wx-%{ver2}
142 %{_includedir}/wx-%{ver2}/*
143 %{_libdir}/libwx_base*-%{ver2}.so
6e4661c @vslavik fixes for wxBase RPM
vslavik authored
144 %dir %{_libdir}/wx
145 %{_libdir}/wx/*
9cae3b0 @vslavik added AM_PATH_WXCONFIG macro and its installation
vslavik authored
146 %{_datadir}/aclocal/*.m4
8fb8adf @vadz add some more files to fix rpmbuild errors (parts of patch 1533296)
vadz authored
147 %{_datadir}/bakefile/presets/*
148 %{_datadir}/locale/*/LC_MESSAGES/*.mo
b7e15e4 @vadz 1. configre/makefiles changes
vadz authored
149
bb4ed26 @vslavik added -static packages to specfiles
vslavik authored
150 %files static
151 %defattr (-,root,root)
152 %{_libdir}/lib*.a
Something went wrong with that request. Please try again.