1 |
< |
### RPM external sigcpp 2.2.3 |
1 |
> |
### RPM external sigcpp 2.2.10 |
2 |
|
%define majorv %(echo %realversion | cut -d. -f1,2) |
3 |
< |
Source: http://ftp.gnome.org/pub/GNOME/sources/libsigc++/%{majorv}/libsigc++-%{realversion}.tar.gz |
4 |
< |
#Patch0: sigcpp-2.0.18-gcc42 |
5 |
< |
|
3 |
> |
Source: http://ftp.gnome.org/pub/GNOME/sources/libsigc++/%{majorv}/libsigc++-%{realversion}.tar.bz2 |
4 |
|
%prep |
5 |
|
%setup -q -n libsigc++-%{realversion} |
6 |
< |
#case %gccver in |
9 |
< |
# 4.3.*) |
10 |
< |
#%patch0 -p2 |
11 |
< |
# ;; |
12 |
< |
#esac |
13 |
< |
./configure --prefix=%{i} |
6 |
> |
./configure --prefix=%{i} --disable-static |
7 |
|
|
8 |
|
%build |
9 |
|
make %makeprocesses |
10 |
|
%install |
11 |
|
make install |
12 |
+ |
# We remove pkg-config files for two reasons: |
13 |
+ |
# * it's actually not required (macosx does not even have it). |
14 |
+ |
# * rpm 4.8 adds a dependency on the system /usr/bin/pkg-config |
15 |
+ |
# on linux. |
16 |
+ |
# In the case at some point we build a package that can be build |
17 |
+ |
# only via pkg-config we have to think on how to ship our own |
18 |
+ |
# version. |
19 |
+ |
rm -rf %i/lib/pkgconfig |
20 |
+ |
# Read documentation online. |
21 |
+ |
%define drop_files %i/share |
22 |
|
cp %i/lib/sigc++-2.0/include/sigc++config.h %i/include/sigc++-2.0/ |
20 |
– |
# SCRAM ToolBox toolfile |
21 |
– |
mkdir -p %i/etc/scram.d |
22 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n.xml |
23 |
– |
<tool name="%n" version="%v"> |
24 |
– |
<lib name="sigc-2.0"/> |
25 |
– |
<client> |
26 |
– |
<environment name="SIGCPP_BASE" default="%i"/> |
27 |
– |
<environment name="LIBDIR" default="$SIGCPP_BASE/lib"/> |
28 |
– |
<environment name="INCLUDE" default="$SIGCPP_BASE/include/sigc++-2.0"/> |
29 |
– |
</client> |
30 |
– |
</tool> |
31 |
– |
EOF_TOOLFILE |
32 |
– |
|
33 |
– |
%post |
34 |
– |
%{relocateConfig}etc/scram.d/%n.xml |