PageRenderTime 26ms CodeModel.GetById 14ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 0ms

/thirdparty/breakpad/third_party/glog/packages/rpm/rpm.spec

http://github.com/tomahawk-player/tomahawk
Unknown | 72 lines | 58 code | 14 blank | 0 comment | 0 complexity | 70a0eac4b89ffd3c8a8a301e115b8e7d MD5 | raw file
 1%define	RELEASE	1
 2%define rel     %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
 3%define	prefix	/usr
 4
 5Name: %NAME
 6Summary: A C++ application logging library
 7Version: %VERSION
 8Release: %rel
 9Group: Development/Libraries
10URL: http://code.google.com/p/google-glog
11License: BSD
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
20The %name package contains a library that implements application-level
21logging.  This library provides logging APIs based on C++-style
22streams and various helper macros.
23
24%package devel
25Summary: A C++ application logging library
26Group: Development/Libraries
27Requires: %{NAME} = %{VERSION}
28
29%description devel
30The %name-devel package contains static and debug libraries and header
31files for developing applications that use the %name package.
32
33%changelog
34    * Wed Mar 26 2008 <opensource@google.com>
35    - First draft
36
37%prep
38%setup
39
40%build
41./configure
42make prefix=%prefix
43
44%install
45rm -rf $RPM_BUILD_ROOT
46make prefix=$RPM_BUILD_ROOT%{prefix} install
47
48%clean
49rm -rf $RPM_BUILD_ROOT
50
51%files
52%defattr(-,root,root)
53
54## Mark all installed files within /usr/share/doc/{package name} as
55## documentation.  This depends on the following two lines appearing in
56## Makefile.am:
57##     docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
58##     dist_doc_DATA = AUTHORS COPYING ChangeLog INSTALL NEWS README
59%docdir %{prefix}/share/doc/%{NAME}-%{VERSION}
60%{prefix}/share/doc/%{NAME}-%{VERSION}/*
61
62%{prefix}/lib/libglog.so.0
63%{prefix}/lib/libglog.so.0.0.0
64
65%files devel
66%defattr(-,root,root)
67
68%{prefix}/include/glog
69%{prefix}/lib/libglog.a
70%{prefix}/lib/libglog.la
71%{prefix}/lib/libglog.so
72%{prefix}/lib/pkgconfig/libglog.pc