summaryrefslogtreecommitdiff
path: root/chromium/sdch/open-vcdiff/packages/rpm/rpm.spec
blob: 2b3cc40a5f22d83f80a75fa78dc295cff1d8aaa8 (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
%define	RELEASE	1
%define rel     %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
%define	prefix	/usr

Name: %NAME
Summary: An encoder/decoder for the VCDIFF (RFC 3284) format
Version: %VERSION
Release: %rel
Group: Development/Libraries
URL: http://code.google.com/p/open-vcdiff
License: Apache 2.0
Vendor: Google
Packager: Google Inc. <opensource@google.com>
Source: http://%{NAME}.googlecode.com/files/%{NAME}-%{VERSION}.tar.gz
Distribution: Redhat 7 and above.
Buildroot: %{_tmppath}/%{name}-root
Prefix: %prefix

%description
A library that provides an encoder and decoder for the VCDIFF
(RFC 3284) format.  Please see http://www.ietf.org/rfc/rfc3284.txt .

%package devel
Summary: An encoder/decoder for the VCDIFF (RFC 3284) format
Group: Development/Libraries
Requires: %{NAME} = %{VERSION}

%description devel
The %name-devel package contains static and debug libraries and header files
for developing applications that use the %name package.

%changelog
    * Mon Jun 16 2008 <opensource@google.com>
    - First draft

%prep
%setup

%build
./configure
make prefix=%prefix

%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{prefix} install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)

## Mark all installed files within /usr/share/doc/{package name} as
## documentation.  This depends on the following two lines appearing in
## Makefile.am:
##     docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
##     dist_doc_DATA = AUTHORS COPYING ChangeLog INSTALL NEWS README
%docdir %{prefix}/share/doc/%{NAME}-%{VERSION}
%{prefix}/share/doc/%{NAME}-%{VERSION}/*

%docdir %{prefix}/share/man/man1/vcdiff.1*
%{prefix}/share/man/man1/vcdiff.1*

%{prefix}/bin/vcdiff
%{prefix}/lib/libvcdcom.so.0
%{prefix}/lib/libvcdcom.so.0.0.0
%{prefix}/lib/libvcdenc.so.0
%{prefix}/lib/libvcdenc.so.0.0.0
%{prefix}/lib/libvcddec.so.0
%{prefix}/lib/libvcddec.so.0.0.0

%files devel
%defattr(-,root,root)

%{prefix}/include/google
%{prefix}/lib/libvcdcom.a
%{prefix}/lib/libvcdcom.la
%{prefix}/lib/libvcdcom.so
%{prefix}/lib/libvcdenc.a
%{prefix}/lib/libvcdenc.la
%{prefix}/lib/libvcdenc.so
%{prefix}/lib/libvcddec.a
%{prefix}/lib/libvcddec.la
%{prefix}/lib/libvcddec.so