Accepting request 378555 from M17N

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/378555
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/google-glog?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2016-04-22 14:23:17 +00:00 committed by Git OBS Bridge
commit 0cbd816e97
2 changed files with 25 additions and 16 deletions

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Wed Mar 16 08:14:42 UTC 2016 - mpluskal@suse.com
- Install documentation in default location with correct
permissions
- Use macro for configure
- Cleanup spec file with spec-cleaner
-------------------------------------------------------------------
Mon Feb 29 20:01:48 UTC 2016 - qzhao@suse.com
- Make sure source code's COPYING file install by default.
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jun 29 18:05:14 UTC 2013 - i@marguerite.su Sat Jun 29 18:05:14 UTC 2013 - i@marguerite.su

View File

@ -1,7 +1,7 @@
# #
# spec file for package google-glog # spec file for package google-glog
# #
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -29,8 +29,8 @@ BuildRequires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
The glog library implements application-level logging. The glog library implements application-level logging.
This library provides logging APIs based on C++-style This library provides logging APIs based on C++-style
streams and various helper macros. streams and various helper macros.
%package -n libglog0 %package -n libglog0
@ -38,8 +38,8 @@ Summary: Logging library for C++
Group: System/Libraries Group: System/Libraries
%description -n libglog0 %description -n libglog0
The glog library implements application-level logging. The glog library implements application-level logging.
This library provides logging APIs based on C++-style This library provides logging APIs based on C++-style
streams and various helper macros. streams and various helper macros.
%package -n glog-devel %package -n glog-devel
@ -48,8 +48,8 @@ Group: Development/Libraries/C and C++
Requires: libglog0 = %{version} Requires: libglog0 = %{version}
%description -n glog-devel %description -n glog-devel
The glog library implements application-level logging. The glog library implements application-level logging.
This library provides logging APIs based on C++-style This library provides logging APIs based on C++-style
streams and various helper macros. streams and various helper macros.
This package provides development files for libglog0. This package provides development files for libglog0.
@ -58,30 +58,26 @@ This package provides development files for libglog0.
%setup -q -n glog-%{version} %setup -q -n glog-%{version}
%build %build
./configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_docdir} %configure
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make DESTDIR=%{buildroot} install make %{?_smp_mflags} DESTDIR=%{buildroot} install
rm -rf %{buildroot}%{_libdir}/*.{a,la} rm -rf %{buildroot}%{_libdir}/*.{a,la}
rm -rf %{buildroot}%{_datadir}/doc/glog-*
mkdir -p %{buildroot}%{_docdir}/%{name}
mv %{buildroot}%{_datadir}/doc/glog-%{version}/* %{buildroot}%{_docdir}/%{name}/
rm -rf %{buildroot}%{_docdir}/%{name}/INSTALL
%post -n libglog0 -p /sbin/ldconfig %post -n libglog0 -p /sbin/ldconfig
%postun -n libglog0 -p /sbin/ldconfig %postun -n libglog0 -p /sbin/ldconfig
%files -n libglog0 %files -n libglog0
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING
%{_libdir}/libglog.so.0 %{_libdir}/libglog.so.0
%{_libdir}/libglog.so.0.0.0 %{_libdir}/libglog.so.0.0.0
%doc %{_docdir}/%{name}
%files -n glog-devel %files -n glog-devel
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING AUTHORS ChangeLog README
%{_includedir}/glog/ %{_includedir}/glog/
%{_libdir}/libglog.so %{_libdir}/libglog.so
%{_libdir}/pkgconfig/libglog.pc %{_libdir}/pkgconfig/libglog.pc