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