spec file cleanups, Use %%license
This commit is contained in:
parent
1cd783e835
commit
a56a7ace56
@ -1,25 +1,23 @@
|
|||||||
Name: libservicelog
|
Name: libservicelog
|
||||||
Version: 1.1.16
|
Version: 1.1.16
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Servicelog Database and Library
|
Summary: Servicelog Database and Library
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
#v29_notify_gram.c v29_notify_gram.h are GPLv2+
|
#v29_notify_gram.c v29_notify_gram.h are GPLv2+
|
||||||
License: LGPLv2 and GPLv2+
|
License: LGPLv2 and GPLv2+
|
||||||
URL: http://linux-diag.sourceforge.net/libservicelog
|
URL: http://linux-diag.sourceforge.net/libservicelog
|
||||||
Source: http://downloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
|
Source: http://downloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
Requires(pre): shadow-utils
|
|
||||||
|
|
||||||
BuildRequires: sqlite-devel autoconf libtool bison librtas-devel flex
|
|
||||||
|
|
||||||
# because of librtas-devel
|
|
||||||
ExclusiveArch: ppc ppc64 ppc64le
|
|
||||||
|
|
||||||
|
|
||||||
# Link with needed libraries
|
# Link with needed libraries
|
||||||
Patch0: libservicelog-1.1.9-libs.patch
|
Patch0: libservicelog-1.1.9-libs.patch
|
||||||
|
|
||||||
|
BuildRequires: sqlite-devel autoconf libtool bison librtas-devel flex
|
||||||
|
Requires(pre): shadow-utils
|
||||||
|
|
||||||
|
# because of librtas-devel
|
||||||
|
ExclusiveArch: ppc %{power64}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The libservicelog package contains a library to create and maintain a
|
The libservicelog package contains a library to create and maintain a
|
||||||
database for storing events related to system service. This database
|
database for storing events related to system service. This database
|
||||||
@ -27,13 +25,13 @@ allows for the logging of serviceable and informational events, and for
|
|||||||
the logging of service procedures that have been performed upon the system.
|
the logging of service procedures that have been performed upon the system.
|
||||||
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
Requires: pkgconfig sqlite-devel
|
Requires: pkgconfig sqlite-devel
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Contains header files for building with libservicelog.
|
Contains header files for building with libservicelog.
|
||||||
|
|
||||||
|
|
||||||
@ -48,12 +46,12 @@ autoreconf -fiv
|
|||||||
# these errors are fixed in upstream code.
|
# these errors are fixed in upstream code.
|
||||||
CFLAGS="%{optflags} -fPIC -DPIC"
|
CFLAGS="%{optflags} -fPIC -DPIC"
|
||||||
CFLAGS=`echo $CFLAGS | sed 's/-Werror=format-security//'`
|
CFLAGS=`echo $CFLAGS | sed 's/-Werror=format-security//'`
|
||||||
%{__make} CFLAGS="$CFLAGS" %{?_smp_mflags}
|
make CFLAGS="$CFLAGS" %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__make} install DESTDIR=%{buildroot}
|
make install DESTDIR=%{buildroot}
|
||||||
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
rm -f %{buildroot}%{_libdir}/*.la
|
||||||
|
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
@ -61,11 +59,12 @@ getent group service >/dev/null || /usr/sbin/groupadd -r service
|
|||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun
|
%postun -p /sbin/ldconfig
|
||||||
/sbin/ldconfig
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc COPYING AUTHORS
|
%{!?_licensedir:%global license %%doc}
|
||||||
|
%license COPYING
|
||||||
|
%doc AUTHORS
|
||||||
%{_libdir}/libservicelog-*.so.*
|
%{_libdir}/libservicelog-*.so.*
|
||||||
%dir %attr(755, root, service) /var/lib/servicelog
|
%dir %attr(755, root, service) /var/lib/servicelog
|
||||||
%config(noreplace) %verify(not md5 size mtime) %attr(644,root,service) /var/lib/servicelog/servicelog.db
|
%config(noreplace) %verify(not md5 size mtime) %attr(644,root,service) /var/lib/servicelog/servicelog.db
|
||||||
@ -77,6 +76,10 @@ getent group service >/dev/null || /usr/sbin/groupadd -r service
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 11 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.16-3
|
||||||
|
- spec file cleanups
|
||||||
|
- Use %%license
|
||||||
|
|
||||||
* Sat Apr 9 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.16-2
|
* Sat Apr 9 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.16-2
|
||||||
- Rebuild for librtas soname bump
|
- Rebuild for librtas soname bump
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user