• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1%define	RELEASE	1
2%define rel     %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
3%define	prefix	/usr
4
5Name: %NAME
6Summary: An encoder/decoder for the VCDIFF (RFC 3284) format
7Version: %VERSION
8Release: %rel
9Group: Development/Libraries
10URL: http://code.google.com/p/open-vcdiff
11License: Apache 2.0
12Vendor: Google
13Packager: Google Inc. <opensource@google.com>
14Source: http://%{NAME}.googlecode.com/files/%{NAME}-%{VERSION}.tar.gz
15Distribution: Redhat 7 and above.
16Buildroot: %{_tmppath}/%{name}-root
17Prefix: %prefix
18
19%description
20A library that provides an encoder and decoder for the VCDIFF
21(RFC 3284) format.  Please see http://www.ietf.org/rfc/rfc3284.txt .
22
23%package devel
24Summary: An encoder/decoder for the VCDIFF (RFC 3284) format
25Group: Development/Libraries
26Requires: %{NAME} = %{VERSION}
27
28%description devel
29The %name-devel package contains static and debug libraries and header files
30for developing applications that use the %name package.
31
32%changelog
33    * Mon Jun 16 2008 <opensource@google.com>
34    - First draft
35
36%prep
37%setup
38
39%build
40./configure
41make prefix=%prefix
42
43%install
44rm -rf $RPM_BUILD_ROOT
45make prefix=$RPM_BUILD_ROOT%{prefix} install
46
47%clean
48rm -rf $RPM_BUILD_ROOT
49
50%files
51%defattr(-,root,root)
52
53## Mark all installed files within /usr/share/doc/{package name} as
54## documentation.  This depends on the following two lines appearing in
55## Makefile.am:
56##     docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
57##     dist_doc_DATA = AUTHORS COPYING ChangeLog INSTALL NEWS README
58%docdir %{prefix}/share/doc/%{NAME}-%{VERSION}
59%{prefix}/share/doc/%{NAME}-%{VERSION}/*
60
61%docdir %{prefix}/share/man/man1/vcdiff.1*
62%{prefix}/share/man/man1/vcdiff.1*
63
64%{prefix}/bin/vcdiff
65%{prefix}/lib/libvcdcom.so.0
66%{prefix}/lib/libvcdcom.so.0.0.0
67%{prefix}/lib/libvcdenc.so.0
68%{prefix}/lib/libvcdenc.so.0.0.0
69%{prefix}/lib/libvcddec.so.0
70%{prefix}/lib/libvcddec.so.0.0.0
71
72%files devel
73%defattr(-,root,root)
74
75%{prefix}/include/google
76%{prefix}/lib/libvcdcom.a
77%{prefix}/lib/libvcdcom.la
78%{prefix}/lib/libvcdcom.so
79%{prefix}/lib/libvcdenc.a
80%{prefix}/lib/libvcdenc.la
81%{prefix}/lib/libvcdenc.so
82%{prefix}/lib/libvcddec.a
83%{prefix}/lib/libvcddec.la
84%{prefix}/lib/libvcddec.so
85
86