| 1 |
# Copyright (c) 2002-2005, Network Appliance, Inc. All rights reserved. |
| 2 |
# |
| 3 |
# This Software is licensed under one of the following licenses: |
| 4 |
# |
| 5 |
# 1) under the terms of the "Common Public License 1.0" a copy of which is |
| 6 |
# in the file LICENSE.txt in the root directory. The license is also |
| 7 |
# available from the Open Source Initiative, see |
| 8 |
# http://www.opensource.org/licenses/cpl.php. |
| 9 |
# |
| 10 |
# 2) under the terms of the "The BSD License" a copy of which is in the file |
| 11 |
# LICENSE2.txt in the root directory. The license is also available from |
| 12 |
# the Open Source Initiative, see |
| 13 |
# http://www.opensource.org/licenses/bsd-license.php. |
| 14 |
# |
| 15 |
# 3) under the terms of the "GNU General Public License (GPL) Version 2" a |
| 16 |
# copy of which is in the file LICENSE3.txt in the root directory. The |
| 17 |
# license is also available from the Open Source Initiative, see |
| 18 |
# http://www.opensource.org/licenses/gpl-license.php. |
| 19 |
# |
| 20 |
# Licensee has the right to choose one of the above licenses. |
| 21 |
# |
| 22 |
# Redistributions of source code must retain the above copyright |
| 23 |
# notice and one of the license notices. |
| 24 |
# |
| 25 |
# Redistributions in binary form must reproduce both the above copyright |
| 26 |
# notice, one of the license notices in the documentation |
| 27 |
# and/or other materials provided with the distribution. |
| 28 |
# |
| 29 |
# |
| 30 |
# DAT Registry RPM SPEC file |
| 31 |
# |
| 32 |
|
| 33 |
%define make_dir udat |
| 34 |
|
| 35 |
# Defining these to nothing overrides the stupid automatic RH9 |
| 36 |
# functionality of making "debuginfo" RPMs. |
| 37 |
|
| 38 |
%define debug_package %{nil} |
| 39 |
%define __check_files %{nil} |
| 40 |
%define dual_arch 0 |
| 41 |
|
| 42 |
%ifarch x86_64 |
| 43 |
%define dual_arch 1 |
| 44 |
%endif |
| 45 |
|
| 46 |
# |
| 47 |
# Preamble |
| 48 |
# |
| 49 |
|
| 50 |
Summary: DAT Registry |
| 51 |
Name: dat-registry |
| 52 |
Version: 1.1 |
| 53 |
Release: 0 |
| 54 |
Vendor: Dat Collaborative |
| 55 |
Exclusiveos: Linux |
| 56 |
License: BSD and CPL |
| 57 |
Group: System/Libraries |
| 58 |
Source: %{name}-%{version}.tgz |
| 59 |
URL: http://www.datcollaborative.org |
| 60 |
BuildRoot: /var/tmp/%{name}-%{version} |
| 61 |
|
| 62 |
%description |
| 63 |
This package contains the DAT Registry. |
| 64 |
|
| 65 |
# |
| 66 |
# Preparation |
| 67 |
# |
| 68 |
|
| 69 |
%prep |
| 70 |
%setup -n dat |
| 71 |
|
| 72 |
# |
| 73 |
# Build |
| 74 |
# |
| 75 |
|
| 76 |
%build |
| 77 |
cd %{make_dir} |
| 78 |
make |
| 79 |
|
| 80 |
# |
| 81 |
# Install |
| 82 |
# |
| 83 |
|
| 84 |
%install |
| 85 |
if [ -d %{buildroot} ]; then rm -rf %{buildroot}; fi |
| 86 |
mkdir -p %{buildroot}/usr/include/dat |
| 87 |
mkdir -p %{buildroot}/usr/lib |
| 88 |
%if %{dual_arch} |
| 89 |
mkdir -p %{buildroot}/usr/lib64 |
| 90 |
%endif |
| 91 |
cd %{make_dir} |
| 92 |
make install PREFIX=%{buildroot} |
| 93 |
|
| 94 |
# |
| 95 |
# Files |
| 96 |
# |
| 97 |
|
| 98 |
%files |
| 99 |
%defattr(-,root,root) |
| 100 |
/usr/include/dat |
| 101 |
/usr/lib/libdat.so |
| 102 |
/usr/lib/libdat.a |
| 103 |
%if %{dual_arch} |
| 104 |
/usr/lib64/libdat.so |
| 105 |
/usr/lib64/libdat.a |
| 106 |
%endif |