summaryrefslogtreecommitdiff
path: root/binary/redhat/odb.spec
blob: 5f9d3509fb34eecf241f4c8423717fc48087e991 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
%ifarch i686
%define arch i686
%endif

%ifarch x86_64
%define arch x86_64
%endif

Summary: ORM for C++
Name: odb
Version: 2.4.0.a4
Release: 1
License: GPLv2, GPLv3, LGPLv3
Group: Development/Tools
URL: http://www.codesynthesis.com/products/odb/
Source: %{name}-%{version}-%{arch}-linux-gnu.tar.bz2
Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-root
AutoReqProv: no

%description
ODB is an object-relational mapping (ORM) system for C++. It provides
tools, APIs, and library support that allow you to persist C++ objects
to a relational database (RDBMS) without having to deal with tables,
columns, or SQL and without manually writing any of the mapping code.

%prep
%setup -q -n %{name}-%{version}-%{arch}-linux-gnu

%build

# We don't want the binaries to be stripped.
#
%ifarch x86_64
%define __os_install_post /usr/lib/rpm/brp-compress
%endif

%install

rm -rf ${RPM_BUILD_ROOT}

mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_docdir}/odb
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/odb
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}

cp -rL bin/* $RPM_BUILD_ROOT%{_bindir}/
cp -rL doc/* $RPM_BUILD_ROOT%{_docdir}/odb/
cp -rL libexec/* $RPM_BUILD_ROOT%{_libexecdir}/
cp -rL man/* $RPM_BUILD_ROOT%{_mandir}/
cp -rL README $RPM_BUILD_ROOT%{_docdir}/odb/

# Remove Debian-specific options.
#
head --lines=-6 etc/odb/default.options >$RPM_BUILD_ROOT%{_sysconfdir}/odb/default.options

%clean
rm -rf ${RPM_BUILD_ROOT}

%post

%preun

%files
%defattr(-,root,root)
%{_bindir}/odb
%{_libexecdir}/odb
%{_mandir}/man1/odb.1.gz
%doc %{_docdir}/odb/*
%config %{_sysconfdir}/odb/default.options

%changelog
* Wed Dec 10 2014 Boris Kolpackov <boris@codesynthesis.com>
  - new pre-release

* Thu Oct 24 2013 Boris Kolpackov <boris@codesynthesis.com>
  - new major release

* Fri Jun 21 2013 Boris Kolpackov <boris@codesynthesis.com>
  - new bugfix release

* Fri Feb 22 2013 Boris Kolpackov <boris@codesynthesis.com>
  - spec file written for odb binary package