modernise spec

epel9
Peter Robinson 10 years ago
parent 6acb59d674
commit 078c914830

@ -4,7 +4,7 @@
Name: uriparser Name: uriparser
Version: 0.8.1 Version: 0.8.1
Release: 3%{?dist} Release: 4%{?dist}
Summary: URI parsing library - RFC 3986 Summary: URI parsing library - RFC 3986
Group: System Environment/Libraries Group: System Environment/Libraries
@ -12,7 +12,6 @@ License: BSD
URL: http://%{name}.sourceforge.net/ URL: http://%{name}.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Patch0: uriparser-bug24.patch Patch0: uriparser-bug24.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: doxygen, graphviz, cpptest-devel BuildRequires: doxygen, graphviz, cpptest-devel
Requires: cpptest Requires: cpptest
@ -61,36 +60,35 @@ make %{?_smp_mflags}
LD_LIBRARY_PATH=".libs" make check LD_LIBRARY_PATH=".libs" make check
%install %install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' find $RPM_BUILD_ROOT -name '*.la' -delete
# fcami - update for https://fedoraproject.org/wiki/Changes/UnversionedDocdirs # fcami - update for https://fedoraproject.org/wiki/Changes/UnversionedDocdirs
if [ ${RPM_BUILD_ROOT}%{_datadir}/doc/%{name} != ${RPM_BUILD_ROOT}%{_pkgdocdir} ] if [ ${RPM_BUILD_ROOT}%{_datadir}/doc/%{name} != ${RPM_BUILD_ROOT}%{_pkgdocdir} ]
then mv ${RPM_BUILD_ROOT}%{_datadir}/doc/%{name}/html ${RPM_BUILD_ROOT}%{_pkgdocdir} then mv ${RPM_BUILD_ROOT}%{_datadir}/doc/%{name}/html ${RPM_BUILD_ROOT}%{_pkgdocdir}
fi fi
%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 THANKS AUTHORS COPYING ChangeLog %doc THANKS AUTHORS COPYING ChangeLog
%{_bindir}/uriparse %{_bindir}/uriparse
%{_libdir}/*.so.* %{_libdir}/*.so.*
%files devel %files devel
%defattr(-,root,root,-)
%doc doc/html %doc doc/html
%{_includedir}/* %{_includedir}/*
%{_libdir}/*.so %{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc
%changelog %changelog
* Thu Jan 29 2015 Peter Robinson <pbrobinson@fedoraproject.org> 0.8.1-4
- Modernise spec
* Wed Jan 28 2015 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 0.8.1-3 * Wed Jan 28 2015 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 0.8.1-3
- Make uriCompareRangeA() return -1/0/1 like tests assume it does - Make uriCompareRangeA() return -1/0/1 like tests assume it does
so package will build on aarch64. so package will build on aarch64.

Loading…
Cancel
Save