]> git.pld-linux.org Git - packages/glog.git/blame - glog.spec
- updated to 0.4.0
[packages/glog.git] / glog.spec
CommitLineData
7c1add51
JB
1#
2# Conditional build:
b68b02ad 3%bcond_with tests # gtest/gmock based tests
c1854bdb 4
58b4ba18 5Summary: A C++ application logging library
74c045b0 6Summary(pl.UTF-8): Biblioteka do logowania dla aplikacji w C++
58b4ba18 7Name: glog
97ed79bd
JB
8Version: 0.4.0
9Release: 1
58b4ba18
ER
10License: BSD
11Group: Libraries
bdc57d3d 12#Source0Download: https://github.com/google/glog/releases
47930f1c 13Source0: https://github.com/google/glog/archive/v%{version}/%{name}-%{version}.tar.gz
97ed79bd 14# Source0-md5: 0daea8785e6df922d7887755c3d100d0
7c1add51 15Patch0: %{name}-gflags.patch
c1854bdb 16Patch1: avoid-inline-asm.patch
47930f1c 17URL: https://github.com/google/glog
74c045b0
JB
18BuildRequires: autoconf >= 2.57
19BuildRequires: automake
20BuildRequires: gflags-devel
47930f1c
ER
21BuildRequires: libstdc++-devel
22BuildRequires: libtool >= 2:1.5
23BuildRequires: pkgconfig
7c1add51
JB
24%if %{with tests}
25BuildRequires: gmock-devel
26BuildRequires: gtest-devel
54e3f726
JR
27%else
28BuildConflicts: gmock-devel
29BuildConflicts: gtest-devel
7c1add51 30%endif
97ed79bd 31%ifarch %{ix86} %{x8664} x32 %{arm} hppa ia64 mips ppc ppc64 sh
74c045b0 32BuildRequires: libunwind-devel
c1854bdb 33%endif
58b4ba18
ER
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
37Google glog is a library that implements application-level logging.
38This library provides logging APIs based on C++-style streams and
39various helper macros.
40
74c045b0
JB
41%description -l pl.UTF-8
42Google glog to biblioteka implementująca logowanie na poziomie
43aplikacji. Zapewnia API do logowania oparte na strumieniach w stylu
44C++ oraz różne makra pomocnicze
45
58b4ba18 46%package devel
74c045b0
JB
47Summary: Development files for glog library
48Summary(pl.UTF-8): Pliki programistyczne biblioteki glog
58b4ba18
ER
49Group: Development/Libraries
50Requires: %{name} = %{version}-%{release}
74c045b0
JB
51Requires: gflags-devel
52Requires: libstdc++-devel
58b4ba18
ER
53
54%description devel
74c045b0
JB
55This package contains the header files for developing applications
56that use glog library.
57
58%description devel -l pl.UTF-8
59Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
60wykorzystujących bibliotekę glog.
61
62%package static
63Summary: Static glog library
64Summary(pl.UTF-8): Statyczna biblioteka glog
65Group: Development/Libraries
66Requires: %{name}-devel = %{version}-%{release}
67
68%description static
69Static glog library.
70
71%description static -l pl.UTF-8
72Statyczna biblioteka glog.
58b4ba18
ER
73
74%prep
75%setup -q
7c1add51 76%patch0 -p1
c1854bdb 77%patch1 -p1
58b4ba18
ER
78
79%build
7c1add51
JB
80%if %{with tests}
81install -d gmock
82cd gmock
83%cmake $(pkg-config --variable=srcdir gmock) \
84 -DBUILD_SHARED_LIBS=OFF
85%{__make}
86cd ..
87LDFLAGS="%{rpmldflags} -L$(pwd)/gmock"
88%endif
74c045b0
JB
89%{__libtoolize}
90%{__aclocal} -I m4
58b4ba18 91%{__autoconf}
74c045b0
JB
92%{__autoheader}
93%{__automake}
94%configure
58b4ba18
ER
95
96%{__make}
97
7c1add51
JB
98%if %{with tests}
99%{__make} check
100%endif
101
58b4ba18
ER
102%install
103rm -rf $RPM_BUILD_ROOT
104%{__make} install \
105 DESTDIR=$RPM_BUILD_ROOT
106
107%{__rm} $RPM_BUILD_ROOT%{_libdir}/libglog.la
108%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
109
110%clean
111rm -rf $RPM_BUILD_ROOT
112
113%post -p /sbin/ldconfig
114%postun -p /sbin/ldconfig
115
116%files
117%defattr(644,root,root,755)
97ed79bd 118%doc AUTHORS COPYING ChangeLog README.md
58b4ba18 119%attr(755,root,root) %{_libdir}/libglog.so.*.*.*
74c045b0 120%attr(755,root,root) %ghost %{_libdir}/libglog.so.0
58b4ba18
ER
121
122%files devel
123%defattr(644,root,root,755)
124%doc doc/designstyle.css doc/glog.html
74c045b0
JB
125%attr(755,root,root) %{_libdir}/libglog.so
126%{_includedir}/glog
58b4ba18 127%{_pkgconfigdir}/libglog.pc
74c045b0
JB
128
129%files static
130%defattr(644,root,root,755)
131%{_libdir}/libglog.a
This page took 0.09414 seconds and 4 git commands to generate.