summaryrefslogtreecommitdiffstats
path: root/dhash/contrib/libdhash.spec.in
blob: 04089795105396f6706664f6ba8c8c7fe1b45295 (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
85
86
87
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Release: 0%{?dist}
Group: Development/Libraries
Summary: Dynamic hash table
License: LGPLv3+
URL: http://fedorahosted.org/sssd/
Source0: %{name}-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

### Patches ###

### Dependencies ###

### Build Dependencies ###

BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: m4

%description
A hash table which will dynamically resize to achieve optimal storage & access
time properties

%package devel
Summary: Development files for libdhash
Group: Development/Libraries
Requires: libdhash = %{version}-%{release}
License: LGPLv3+

%description devel
A hash table which will dynamically resize to achieve optimal storage & access
time properties

%prep
%setup -q

%build
%configure \
    --disable-static \
    --disable-rpath

make %{?_smp_mflags}

%check
make %{?_smp_mflags} check

%install
rm -rf $RPM_BUILD_ROOT

make install DESTDIR=$RPM_BUILD_ROOT

# Remove the example files from the output directory
# We will copy them directly from the source directory
# for packaging
rm -f \
    $RPM_BUILD_ROOT/usr/share/doc/libdhash/README \
    $RPM_BUILD_ROOT/usr/share/doc/libdhash/examples/dhash_example.c \
    $RPM_BUILD_ROOT/usr/share/doc/libdhash/examples/dhash_test.c

# Remove .la files created by libtool
rm -f $RPM_BUILD_ROOT/%{_libdir}/libdhash.la

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc COPYING COPYING.LESSER
%{_libdir}/libdhash.so.1
%{_libdir}/libdhash.so.1.0.0

%files devel
%defattr(-,root,root,-)
%{_includedir}/dhash.h
%{_libdir}/libdhash.so
%{_libdir}/pkgconfig/dhash.pc
%doc README examples/

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%changelog
* Mon Mar 15 2010 Stephen Gallagher <sgallagh@redhat.com> - @PACKAGE_VERSION@-0
- Automated build of libdhash