From fca928ab7fee8af51b2c6005c4c31a59afc3aa4e Mon Sep 17 00:00:00 2001 From: David Tardon Date: Apr 18 2016 07:20:14 +0000 Subject: modernize spec --- diff --git a/expat.spec b/expat.spec index f1df57b..b428424 100644 --- a/expat.spec +++ b/expat.spec @@ -2,11 +2,9 @@ Summary: An XML parser library Name: expat Version: 2.1.1 Release: 1%{?dist} -Group: System Environment/Libraries Source: http://downloads.sourceforge.net/expat/expat-%{version}.tar.bz2 URL: http://www.libexpat.org/ License: MIT -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description This is expat, the C library for parsing XML, written by James Clark. Expat @@ -18,7 +16,6 @@ register handlers. %package devel Summary: Libraries and header files to develop applications using expat -Group: Development/Libraries Requires: expat = %{version}-%{release} %description devel @@ -27,7 +24,6 @@ to develop XML applications with expat. %package static Summary: expat XML parser static library -Group: Development/Libraries Requires: expat-devel%{?_isa} = %{version}-%{release} %description static @@ -43,8 +39,6 @@ export CFLAGS="$RPM_OPT_FLAGS -fPIC" make %{?_smp_mflags} %install -rm -rf ${RPM_BUILD_ROOT} - rm -f examples/*.dsp chmod 644 README COPYING Changes doc/* examples/* @@ -55,14 +49,10 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la %check make check -%clean -rm -rf ${RPM_BUILD_ROOT} - %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -%defattr(-,root,root) %doc README %{!?_licensedir:%global license %%doc} %license COPYING @@ -71,14 +61,12 @@ rm -rf ${RPM_BUILD_ROOT} %{_mandir}/*/* %files devel -%defattr(-,root,root) %doc Changes doc examples %{_libdir}/lib*.so %{_libdir}/pkgconfig/*.pc %{_includedir}/*.h %files static -%defattr(-,root,root) %{_libdir}/lib*.a %changelog