From 5278bb95cf02312ab5ddc233a100eefab9a0b569 Mon Sep 17 00:00:00 2001 From: zbyniu Date: Mon, 30 Oct 2006 20:20:12 +0000 Subject: [PATCH] - new Changed files: carob.spec -> 1.1 --- carob.spec | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 carob.spec diff --git a/carob.spec b/carob.spec new file mode 100644 index 0000000..b789887 --- /dev/null +++ b/carob.spec @@ -0,0 +1,93 @@ +Summary: Carob library +Summary(pl): Biblioteka carob +Name: carob +Version: 0.6.2 +%define _ver 0_6_2 +Release: 0.1 +License: Apache License v2.0 +Group: Development/Libraries +Source0: https://forge.continuent.org/frs/download.php/182/%{name}-r%{_ver}.tar.gz +# Source0-md5: 6969f74fa9f4c19c434b68d29590eb3a +URL: http://carob.continuent.org/HomePage +BuildRequires: gmp-devel +BuildRequires: libstdc++-devel +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Bringing Sequoia technology to the C/C++ world. + +Carob's base is a C++ port of the JDBC driver code. It offers to +developpers the same access as in Java. Connections, Requests, +ResultSets and all necessary C++ classes can be used transparently and +directly in any C++ enabled application. + +%package libs +Summary: - +Summary(pl): - +Group: Libraries + +%description libs + +%description libs -l pl + +%package devel +Summary: Header files for carob library +Summary(pl): Pliki nag³ówkowe biblioteki carob +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +This is the package containing the header files for carob library. + +%description devel -l pl +Ten pakiet zawiera pliki nag³ówkowe biblioteki carob. + +%package static +Summary: Static carob library +Summary(pl): Statyczna biblioteka carob +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} + +%description static +Static carob library. + +%description static -l pl +Statyczna biblioteka carob. + +%prep +%setup -q -n %{name}-r%{_ver} + +%build +%{__make} \ + CXX="%{__cxx}" \ + CXXFLAGS="%{rpmcflags} -fPIC" \ + LDFLAGS="%{rpmldflags}" + +%install +rm -rf $RPM_BUILD_ROOT + +install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir}}/carob +install libcarob.so* $RPM_BUILD_ROOT%{_libdir}/carob +install libcarob.a $RPM_BUILD_ROOT%{_libdir} +install include/*.hpp $RPM_BUILD_ROOT%{_includedir}/carob + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc README +%dir %{_libdir}/carob +%attr(755,root,root) %{_libdir}/carob/libcarob.so.1 + +%files devel +%defattr(644,root,root,755) +%{_includedir}/carob + +%files static +%defattr(644,root,root,755) +%{_libdir}/carob/libcarob.so +%{_libdir}/libcarob.a -- 2.43.0