Accepting request 373620 from home:pluskalm:branches:M17N

- Install documentation in default location with correct 
  permissions
- Use macro for configure
- Cleanup spec file with spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/373620
OBS-URL: https://build.opensuse.org/package/show/M17N/google-glog?expand=0&rev=7
This commit is contained in:
Marguerite Su 2016-03-16 10:29:49 +00:00 committed by Git OBS Bridge
parent a90f18f516
commit 0567dd5f3e
2 changed files with 19 additions and 16 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
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

View File

@ -29,8 +29,8 @@ BuildRequires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The glog library implements application-level logging.
This library provides logging APIs based on C++-style
The glog library implements application-level logging.
This library provides logging APIs based on C++-style
streams and various helper macros.
%package -n libglog0
@ -38,8 +38,8 @@ Summary: Logging library for C++
Group: System/Libraries
%description -n libglog0
The glog library implements application-level logging.
This library provides logging APIs based on C++-style
The glog library implements application-level logging.
This library provides logging APIs based on C++-style
streams and various helper macros.
%package -n glog-devel
@ -48,8 +48,8 @@ Group: Development/Libraries/C and C++
Requires: libglog0 = %{version}
%description -n glog-devel
The glog library implements application-level logging.
This library provides logging APIs based on C++-style
The glog library implements application-level logging.
This library provides logging APIs based on C++-style
streams and various helper macros.
This package provides development files for libglog0.
@ -58,31 +58,26 @@ This package provides development files for libglog0.
%setup -q -n glog-%{version}
%build
./configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_docdir}
%configure
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
rm -rf %{buildroot}%{_libdir}/*.{a,la}
mkdir -p %{buildroot}%{_docdir}/%{name}
mv %{buildroot}%{_datadir}/doc/glog-%{version}/* %{buildroot}%{_docdir}/%{name}/
rm -rf %{buildroot}%{_docdir}/%{name}/INSTALL
install COPYING %{buildroot}%{_docdir}/%{name}
rm -rf %{buildroot}%{_datadir}/doc/glog-*
%post -n libglog0 -p /sbin/ldconfig
%postun -n libglog0 -p /sbin/ldconfig
%files -n libglog0
%defattr(-,root,root)
%doc COPYING
%{_libdir}/libglog.so.0
%{_libdir}/libglog.so.0.0.0
%doc %{_docdir}/%{name}
%files -n glog-devel
%defattr(-,root,root)
%doc COPYING AUTHORS ChangeLog README
%{_includedir}/glog/
%{_libdir}/libglog.so
%{_libdir}/pkgconfig/libglog.pc