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:
parent
a90f18f516
commit
0567dd5f3e
@ -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
|
Mon Feb 29 20:01:48 UTC 2016 - qzhao@suse.com
|
||||||
|
|
||||||
|
@ -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,31 +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
|
|
||||||
install COPYING %{buildroot}%{_docdir}/%{name}
|
|
||||||
|
|
||||||
%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
|
||||||
|
Loading…
Reference in New Issue
Block a user