~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to support-files/drizzle.spec.in

  • Committer: Brian Aker
  • Date: 2011-12-27 20:30:10 UTC
  • mfrom: (2472.1.9 drizzle-build)
  • mto: This revision was merged to the branch mainline in revision 2482.
  • Revision ID: brian@tangent.org-20111227203010-1ymj1ekc2k37bu8s
Merge yacc tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Summary: Drizzle Database Server, client tools, and client libraries
 
2
Name: @PACKAGE@
 
3
Version: @PANDORA_RELEASE_VERSION@
 
4
Release: 1
 
5
License: GPL/BSD
 
6
Group: System Environment/Libraries
 
7
BuildRequires: gcc-c++
 
8
URL: http://launchpad.net/drizzle
 
9
Requires: boost-program-options >=  1.39
 
10
 
 
11
Packager: Brian Aker <brian@tangent.org>
 
12
 
 
13
Source: http://launchpad.net/drizzle/trunk/%{version}/+download/drizzle7-%{version}.tar.gz
 
14
Source1: drizzled.init
 
15
BuildRoot: %{_tmppath}/%{name}7-%{version}-%{release}-buildroot
 
16
 
 
17
%description
 
18
Drizzle Relational Database Server
 
19
 
 
20
This package provides the client utilities.
 
21
 
 
22
%package server
 
23
Summary: Drizzle Server
 
24
Group: Applications/Databases
 
25
Requires: boost-program-options >=  1.39
 
26
 
 
27
%description server
 
28
Drizzle SQL Relational Database Server
 
29
 
 
30
This package provides the Drizzle Server.
 
31
 
 
32
%package devel
 
33
Summary: Header files and development libraries for %{name}
 
34
Group: Development/Libraries
 
35
Requires: %{name} = %{version}-%{release}
 
36
 
 
37
%description devel
 
38
This package contains the header files and development libraries
 
39
for %{name}. If you like to develop programs using %{name}, 
 
40
you will need to install %{name}-devel.
 
41
 
 
42
%prep
 
43
%setup -q
 
44
 
 
45
%configure
 
46
 
 
47
 
 
48
%build
 
49
%{__make} %{_smp_mflags}
 
50
 
 
51
%install
 
52
%{__rm} -rf %{buildroot}
 
53
%{__make} install  DESTDIR="%{buildroot}" AM_INSTALL_PROGRAM_FLAGS=""
 
54
mkdir -p $RPM_BUILD_ROOT/
 
55
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
 
56
mkdir -p $RPM_BUILD_ROOT/var/log/drizzled
 
57
mkdir -p $RPM_BUILD_ROOT/var/run/drizzled
 
58
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/drizzled
 
59
 
 
60
%clean
 
61
%{__rm} -rf %{buildroot}
 
62
 
 
63
%pre server
 
64
if ! /usr/bin/id -g drizzle &>/dev/null; then
 
65
    /usr/sbin/groupadd -r drizzle
 
66
fi
 
67
if ! /usr/bin/id drizzle &>/dev/null; then
 
68
    /usr/sbin/useradd -M -r -g drizzle -d /var/lib/drizzle -s /bin/false \
 
69
        -c "Drizzle Database Server" drizzle > /dev/null 2>&1
 
70
fi
 
71
 
 
72
%post server
 
73
if test $1 = 1
 
74
then
 
75
  /sbin/chkconfig --add drizzled
 
76
fi
 
77
 
 
78
%preun server
 
79
if test $1 = 0
 
80
then
 
81
  /sbin/chkconfig --del drizzled
 
82
fi
 
83
 
 
84
%postun server
 
85
if test $1 -ge 1
 
86
then
 
87
  /sbin/service drizzled condrestart >/dev/null 2>&1 || :
 
88
fi
 
89
 
 
90
%files
 
91
%defattr(-,root,root,-)
 
92
%doc AUTHORS COPYING NEWS README
 
93
%{_bindir}/drizzle
 
94
%{_libdir}/libdrizzle.la
 
95
%{_mandir}/man1/drizzle.1.gz
 
96
%{_mandir}/man1/drizzledump.1.gz
 
97
%{_mandir}/man1/drizzleimport.1.gz
 
98
%{_mandir}/man1/drizzleslap.1.gz
 
99
 
 
100
%files server
 
101
%defattr(-,root,root,-)
 
102
%doc AUTHORS COPYING NEWS README
 
103
%{_mandir}/man8/drizzled.8.gz
 
104
%{_mandir}/man8/drizzled7.8.gz
 
105
%{_sbindir}/drizzled
 
106
/etc/rc.d/init.d/drizzled
 
107
%attr(0755,drizzle,drizzle) %dir /var/log/drizzled
 
108
%attr(0755,drizzle,drizzle) %dir /var/run/drizzled
 
109
 
 
110
%files devel
 
111
%defattr(-,root,root,-)
 
112
%doc AUTHORS COPYING NEWS README
 
113
%{_libdir}/libdrizzle.a
 
114
%{_includedir}/libdrizzle/drizzle.h
 
115
%{_includedir}/libdrizzle/drizzle_client.h
 
116
%{_includedir}/libdrizzle-1.0/column_client.h
 
117
%{_includedir}/libdrizzle-1.0/column.h
 
118
%{_includedir}/libdrizzle-1.0/column_server.h
 
119
%{_includedir}/libdrizzle-1.0/command_client.h
 
120
%{_includedir}/libdrizzle-1.0/command_server.h
 
121
%{_includedir}/libdrizzle-1.0/conn_client.h
 
122
%{_includedir}/libdrizzle-1.0/conn.h
 
123
%{_includedir}/libdrizzle-1.0/conn_server.h
 
124
%{_includedir}/libdrizzle-1.0/constants.h
 
125
%{_includedir}/libdrizzle-1.0/drizzle_client.h
 
126
%{_includedir}/libdrizzle-1.0/drizzle.h
 
127
%{_includedir}/libdrizzle-1.0/drizzle_server.h
 
128
%{_includedir}/libdrizzle-1.0/field_client.h
 
129
%{_includedir}/libdrizzle-1.0/field_server.h
 
130
%{_includedir}/libdrizzle-1.0/handshake_client.h
 
131
%{_includedir}/libdrizzle-1.0/handshake_server.h
 
132
%{_includedir}/libdrizzle-1.0/libdrizzle.h
 
133
%{_includedir}/libdrizzle-1.0/query.h
 
134
%{_includedir}/libdrizzle-1.0/result_client.h
 
135
%{_includedir}/libdrizzle-1.0/result.h
 
136
%{_includedir}/libdrizzle-1.0/result_server.h
 
137
%{_includedir}/libdrizzle-1.0/row_client.h
 
138
%{_includedir}/libdrizzle-1.0/row_server.h
 
139
%{_includedir}/libdrizzle-1.0/structs.h
 
140
%{_includedir}/libdrizzle-1.0/visibility.h
 
141
%{_libdir}/pkgconfig/drizzle.pc
 
142
%{_libdir}/libdrizzle.so
 
143
%{_mandir}/man3/drizzle_create.3.gz
 
144
 
 
145
 
 
146
%changelog
 
147
* Wed Dec 21 2012 Brian Aker <brian@tangent.org> - 0.1-1
 
148
- Initial package