summaryrefslogtreecommitdiffstats
path: root/mysql55/mysql-connector-c++.spec.diff
blob: a9dfb47846aaa1b11ddaa4a587f4d36ef944ab76 (plain)
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
--- mysql-connector-c++.spec.nodsc	2012-01-14 14:25:23.000000000 +0100
+++ mysql-connector-c++.spec	2012-05-22 13:50:29.409053710 +0200
@@ -1,8 +1,10 @@
+%{?scl:%scl_package mysql}
+
 %global bzr 895
 
 
 Summary:    MySQL database connector for C++
-Name:       mysql-connector-c++
+Name:       %{?scl_prefix}mysql-connector-c++
 Version:    1.1.0
 %if 0%{?bzr}
 Release:    0.8.bzr%{?bzr}%{?dist}
@@ -21,7 +23,7 @@ URL:        http://forge.mysql.com/wiki/
 # check getDriverMajorVersion / getDriverMinorVersion / getDriverPatchVersion
 # tar czf mysql-connector-c++-bzr895.tgz --exclude .bzr mysql-connector-c++-1.1.0
 # rm -rf mysql-connector-c++-1.1.0
-Source0:    %{name}-bzr%{bzr}.tgz
+Source0:    mysql-connector-c++-bzr%{bzr}.tgz
 %else
 # Upstream has a mirror redirector for downloads, so the URL is hard to
 # represent statically.  You can get the tarball by following a link from
@@ -30,8 +32,9 @@ Source0:    %{name}-%{version}.tar.gz
 %endif
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
-BuildRequires: cmake mysql-devel boost-devel
+BuildRequires: cmake %{?scl_prefix}mysql-devel boost-devel
 
+%{?scl:Requires:%scl_runtime}
 
 %description
 MySQL Connector/C++ is a MySQL database connector for C++. 
@@ -53,15 +56,15 @@ The Connector/C++ preview features the f
 %package devel
 Summary:   MySQL Connector/C++ developer files (headers, examples, etc.)
 Group:     Development/Libraries
-Requires:  mysql-connector-c++ = %{version}-%{release}
-Requires:  mysql-devel
+Requires:  %{?scl_prefix}mysql-connector-c++ = %{version}-%{release}
+Requires:  %{?scl_prefix}mysql-devel
 
 %description devel
 These are the files needed to compile programs using MySQL Connector/C++.
 
 
 %prep
-%setup -q
+%setup -q -n mysql-connector-c++-%{version}
 
 %{__sed} -i -e 's/lib$/%{_lib}/' driver/CMakeLists.txt
 %{__chmod} -x examples/*.cpp examples/*.txt