%define project uriparser Name: liburiparser Version: 0.7.1 Release: 3%{?dist} Summary: URI parsing library - RFC 3986 Group: Development/Libraries License: BSD URL: http://%{project}.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{project}/%{project}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: doxygen, graphviz %description Uriparser is a strictly RFC 3986 compliant URI parsing library written in C. uriparser is cross-platform, fast, supports Unicode and is licensed under the New BSD license. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q -n %{project}-%{version} sed -i 's/\r//' THANKS sed -i 's/\r//' COPYING iconv -f iso-8859-1 -t utf-8 -o THANKS{.utf8,} mv THANKS{.utf8,} %build %configure --disable-static make %{?_smp_mflags} # doc folder has separate configure file cd doc; %configure; make %{?_smp_mflags}; %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT # doc folder make install does nothing install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html/ install -p -m 0644 doc/html/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html/ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files devel %defattr(-,root,root,-) %doc doc/html/* %{_includedir}/* %{_libdir}/*.so %files %defattr(-,root,root,-) %doc THANKS AUTHORS COPYING %{_libdir}/*.so.* %changelog * Sat Aug 23 2008 Rakesh Pandit 0.7.1-3 - fixed buildrequires tag * Sun Aug 10 2008 Rakesh Pandit 0.7.1-2 - added documentation * Sat Aug 9 2008 Rakesh Pandit 0.7.1-1 - Initial build