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
|
Name: expat
|
||||||
Version: 2.1.1
|
Version: 2.1.1
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Group: System Environment/Libraries
|
|
||||||
Source: http://downloads.sourceforge.net/expat/expat-%{version}.tar.bz2
|
Source: http://downloads.sourceforge.net/expat/expat-%{version}.tar.bz2
|
||||||
URL: http://www.libexpat.org/
|
URL: http://www.libexpat.org/
|
||||||
License: MIT
|
License: MIT
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This is expat, the C library for parsing XML, written by James Clark. Expat
|
This is expat, the C library for parsing XML, written by James Clark. Expat
|
||||||
@ -18,7 +16,6 @@ register handlers.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Libraries and header files to develop applications using expat
|
Summary: Libraries and header files to develop applications using expat
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: expat = %{version}-%{release}
|
Requires: expat = %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
@ -27,7 +24,6 @@ to develop XML applications with expat.
|
|||||||
|
|
||||||
%package static
|
%package static
|
||||||
Summary: expat XML parser static library
|
Summary: expat XML parser static library
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: expat-devel%{?_isa} = %{version}-%{release}
|
Requires: expat-devel%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
%description static
|
%description static
|
||||||
@ -43,8 +39,6 @@ export CFLAGS="$RPM_OPT_FLAGS -fPIC"
|
|||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
|
||||||
|
|
||||||
rm -f examples/*.dsp
|
rm -f examples/*.dsp
|
||||||
chmod 644 README COPYING Changes doc/* examples/*
|
chmod 644 README COPYING Changes doc/* examples/*
|
||||||
|
|
||||||
@ -55,14 +49,10 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
|
|
||||||
%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 README
|
%doc README
|
||||||
%{!?_licensedir:%global license %%doc}
|
%{!?_licensedir:%global license %%doc}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
@ -71,14 +61,12 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc Changes doc examples
|
%doc Changes doc examples
|
||||||
%{_libdir}/lib*.so
|
%{_libdir}/lib*.so
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
%{_includedir}/*.h
|
%{_includedir}/*.h
|
||||||
|
|
||||||
%files static
|
%files static
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/lib*.a
|
%{_libdir}/lib*.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user