modernize spec
This commit is contained in:
parent
0b90d8d4ef
commit
fca928ab7f
12
expat.spec
12
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
|
||||
|
Loading…
Reference in New Issue
Block a user