]>
Commit | Line | Data |
---|---|---|
f1e09220 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library build | |
4 | # | |
7678dad9 | 5 | Summary: Well designed C++ sqlite 3.x wrapper library |
f1e09220 | 6 | Summary(pl.UTF-8): Dobrze zaprojektowana biblioteka obudowująca C++ dla sqlite 3.x |
7678dad9 ER |
7 | Name: libvsqlitepp |
8 | Version: 0.3.13 | |
9 | Release: 1 | |
10 | License: BSD | |
f1e09220 | 11 | Group: Libraries |
7678dad9 ER |
12 | Source0: http://evilissimo.fedorapeople.org/releases/vsqlite--/%{version}/vsqlite++-%{version}.tar.xz |
13 | # Source0-md5: f0616fd2680e0c78e50f78f6b869c0ba | |
14 | URL: https://github.com/vinzenz/vsqlite-- | |
15 | BuildRequires: boost-devel >= 1.33 | |
16 | BuildRequires: doxygen | |
17 | BuildRequires: graphviz | |
f1e09220 JB |
18 | BuildRequires: libstdc++-devel |
19 | BuildRequires: sqlite3-devel >= 3 | |
7678dad9 ER |
20 | BuildRequires: tar >= 1:1.22 |
21 | BuildRequires: xz | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | VSQLite++ is a C++ wrapper for sqlite3 using the C++ standard library | |
f1e09220 | 26 | and Boost. VSQLite++ is designed to be easy to use and focuses on |
7678dad9 ER |
27 | simplicity. |
28 | ||
f1e09220 JB |
29 | %description -l pl.UTF-8 |
30 | VSQLite++ to obudowanie C++ dla sqlite3 przy użyciu biblioteki | |
31 | standardowej C++ oraz Boosta. Jest zaprojektowane z myślą o łatwym | |
32 | użyciu, skupia się na prostocie. | |
33 | ||
7678dad9 | 34 | %package devel |
f1e09220 JB |
35 | Summary: Development files for VSQLite++ library |
36 | Summary(pl.UTF-8): Pliki programistyczne biblioteki VSQLite++ | |
7678dad9 ER |
37 | Group: Development/Libraries |
38 | Requires: %{name} = %{version}-%{release} | |
f1e09220 JB |
39 | Requires: boost-devel >= 1.33 |
40 | Requires: libstdc++-devel | |
7678dad9 ER |
41 | |
42 | %description devel | |
f1e09220 | 43 | This package contains development files for VSQLite++ library. |
7678dad9 | 44 | |
f1e09220 JB |
45 | %description devel -l pl.UTF-8 |
46 | Ten pakiet zawiera pliki programistyczne biblioteki VSQLite++. | |
47 | ||
48 | %package static | |
49 | Summary: Static VSQLite++ library | |
50 | Summary(pl.UTF-8): Statyczna biblioteka VSQLite++ | |
7678dad9 | 51 | Group: Development/Libraries |
f1e09220 JB |
52 | Requires: %{name}-devel = %{version}-%{release} |
53 | ||
54 | %description static | |
55 | Static VSQLite++ library. | |
56 | ||
57 | %description static -l pl.UTF-8 | |
58 | Statyczna biblioteka VSQLite++. | |
59 | ||
60 | %package doc | |
61 | Summary: Development documentation for VSQLite++ library | |
62 | Summary(pl.UTF-8): Dokumentacja programisty do biblioteki VSQLite++ | |
63 | Group: Documentation | |
7678dad9 ER |
64 | # noarch subpackages only when building with rpm5 |
65 | %if "%{_rpmversion}" >= "5" | |
66 | BuildArch: noarch | |
67 | %endif | |
68 | ||
69 | %description doc | |
f1e09220 JB |
70 | This package contains development documentation files for VSQLite++. |
71 | ||
72 | %description doc -l pl.UTF-8 | |
73 | Ten pakiet zawiera dokumentację programisty do biblioteki VSQLite++. | |
7678dad9 ER |
74 | |
75 | %prep | |
76 | %setup -q -n vsqlite++-%{version} | |
77 | ||
78 | %build | |
79 | %configure \ | |
f1e09220 | 80 | %{!?with_static_libs:--disable-static} |
7678dad9 ER |
81 | %{__make} |
82 | doxygen Doxyfile | |
83 | ||
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | %{__make} install \ | |
87 | DESTDIR=$RPM_BUILD_ROOT | |
88 | ||
89 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvsqlitepp.la | |
90 | ||
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %post -p /sbin/ldconfig | |
95 | %postun -p /sbin/ldconfig | |
96 | ||
97 | %files | |
98 | %defattr(644,root,root,755) | |
f1e09220 JB |
99 | %doc AUTHORS COPYING ChangeLog README TODO |
100 | %attr(755,root,root) %{_libdir}/libvsqlitepp.so.*.*.* | |
101 | %attr(755,root,root) %ghost %{_libdir}/libvsqlitepp.so.3 | |
7678dad9 ER |
102 | |
103 | %files devel | |
104 | %defattr(644,root,root,755) | |
105 | %doc examples/sqlite_wrapper.cpp | |
f1e09220 | 106 | %attr(755,root,root) %{_libdir}/libvsqlitepp.so |
7678dad9 ER |
107 | %{_includedir}/sqlite |
108 | ||
f1e09220 JB |
109 | %if %{with static_libs} |
110 | %files static | |
111 | %defattr(644,root,root,755) | |
112 | %{_libdir}/libvsqlitepp.a | |
113 | %endif | |
114 | ||
7678dad9 ER |
115 | %files doc |
116 | %defattr(644,root,root,755) | |
117 | %doc html/* |