- Spec cleanup

This commit is contained in:
Filipe Rosset 2017-06-18 23:40:41 -03:00
parent 2d322234fa
commit 83662e935b

View File

@ -1,15 +1,12 @@
Name: glog Name: glog
Version: 0.3.3 Version: 0.3.3
Release: 13%{?dist} Release: 14%{?dist}
Summary: A C++ application logging library Summary: A C++ application logging library
Group: System Environment/Libraries Group: System Environment/Libraries
License: BSD License: BSD
URL: http://code.google.com/p/google-glog URL: http://code.google.com/p/google-glog
Source0: http://google-glog.googlecode.com/files/%{name}-%{version}.tar.gz Source0: http://google-glog.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) Patch0: glog-0.3.3-gflags-namespace.patch
Patch0: glog-0.3.3-gflags-namespace.patch
BuildRequires: autoconf, gflags-devel >= 2.1.0 BuildRequires: autoconf, gflags-devel >= 2.1.0
Requires: gflags Requires: gflags
@ -41,28 +38,21 @@ make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
rm -rf $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version} rm -rf $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files %files
%defattr(-,root,root,-)
%doc ChangeLog COPYING README %doc ChangeLog COPYING README
%{_libdir}/libglog.so.* %{_libdir}/libglog.so.*
%files devel %files devel
%defattr(-,root,root,-)
%doc doc/designstyle.css doc/glog.html %doc doc/designstyle.css doc/glog.html
%{_libdir}/libglog.so %{_libdir}/libglog.so
%{_libdir}/pkgconfig/libglog.pc %{_libdir}/pkgconfig/libglog.pc
@ -71,6 +61,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Mon Jun 19 2017 Filipe Rosset <rosset.filipe@gmail.com> - 0.3.3-14
- Spec cleanup
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.3-13 * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.3-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild